Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,690 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
Lawd

Server Sided Health

Recommended Posts

Lawd

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.com/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.

 

Share this post


Link to post
Share on other sites
Gian_Yagami

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.

Edited by Gian_Yagami

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.