can you read player hp from his HUD?
so here's the deal
there's this really annoying and weird bug where for example if a player has more than 255hp, let's give an example of 500, if his hp keeps dropping and reaches 0 on his screen(not real value of hp, just on his screen) he can't move his mouse and move buttons are inversed I've searched and couldn't find anything related to this, what I'd like to do is check player's screen and remove 1hp if he's bugged register_event("Health", "EventHealth", "be", "1>0"); this event is called when the user hp changes in the hud, can I retrieve info from it? |
Re: can you read player hp from his HUD?
if (!(get_user_health(id) % 256))
// HUD is displaying 0 |
Re: can you read player hp from his HUD?
Quote:
it's the same thing as if((get_user_health(id) % 256) == 0) right? easier to read for me thanks for the reply edit:: will this fix my problem? Code:
|
Re: can you read player hp from his HUD?
Try it and see
|
Re: can you read player hp from his HUD?
Quote:
please tell me how I can refresh an user's HUD if using this forward register_event("Health", "EventHealth", "be", "1>0"); which is called when user hp changes on screen but even after I set_user_health to value-1 it still won't refresh the info from the hud until he takes damage so it's useless |
Re: can you read player hp from his HUD?
Quote:
why you cant talk normaly ? He mean the HP SPRITE is bugged when you have more than 255 hp. Why you dont create an HUD for showing the player hp? |
Re: can you read player hp from his HUD?
|
Re: can you read player hp from his HUD?
Quote:
|
| All times are GMT -4. The time now is 18:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.