Quote:
Originally Posted by Randomize
Iceshot, no, I just want to set the user health to 120 if I enable health_enable to 1, else of 1, it will be set to 100.
|
So with 'if' you check the cvar status, if it is 1 health sets to 120, if not it will be 100.
Quote:
Originally Posted by Randomize
!is_user_alive is the condition when the player is dead, isn't it? So I guess if alive, it will always set to 120. I am right, aren't I?
|
Here you should check, because sometimes it can cause problems/errors because you setting health to dead player
Use my code and you'll see..