Quantcast

Jump to content

» «
Photo

Server Sided Health

1 reply to this topic
Lawd
  • Lawd

    Player Hater

  • New Members
  • Joined: 2 weeks ago
  • Norfolk-Island

#1

Posted 2 weeks ago

Hey guys, I play on a GTA SAMP server that has server sided-HP.

I'm trying to re-create a cleo that people use to show their HP/Armor in digits.

 

This is the cleo I am trying to create (They play on the server as me):

https://i.imgur.com/ozTqRfZ.png

 

It looks like a regular cleo that displays health and armor but on this server, there's server sided health so the health is getting messed up.

https://i.imgur.com/IYUNphc.png

 

The health is like 500000032 (green number is my health that keeps bugging out in the screenshot, ignore the numbers in the right hand corner, that's an in-game command /chud)

 

I think some code or something needs to be changed, any digital informer I use keeps messing up on this particular server.

 

 

// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

{$CLEO .cs}
 
//-------------MAIN---------------
0000: NOP 
03F0: enable_text_draw 1 
 
:NONAME_6
wait 0 
[email protected] = Actor.Health($PLAYER_ACTOR)
03E4: enable_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 0.8 
0340: set_text_draw_RGBA 102 255 51 255 
081C: draw_text_outline 1 RGBA 0 0 0 55 
045A: draw_text_1number 566.0 66.0 GXT 'NUMBER' number [email protected]  // ~1~
04DD: [email protected] = actor $PLAYER_ACTOR armour 
if 
jump @NONAME_115 
jump @NONAME_6 
 
:NONAME_115
03E4: enable_text_draw_align_right 1 
033F: set_text_draw_letter_size 0.5 0.8 
081C: draw_text_outline 1 RGBA 0 0 0 55 
045A: draw_text_1number 566.0 76.0 GXT 'NUMBER' number [email protected]  // ~1~
jump @NONAME_6 
 
It's just a simple cleo that displays health / armor.

 


Gian_Yagami
  • Gian_Yagami

    Punk-ass Bitch

  • Members
  • Joined: 08 Nov 2011

#2

Posted 2 weeks ago Edited by Gian_Yagami, 2 weeks ago.

Because Health and armor is always update, try using dynamic GXT, see this post

 

EDIT: I am already tried your script, can't compiled to me. So I changed [email protected] to global variable, compiled succesfuly but then the game crashed.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users