Raised This Month: $ Target: $400
 0% 

Something wrong with set_user_health?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 07-12-2013 , 09:39   Re: Something wrong with set_user_health?
Reply With Quote #7

Quote:
Originally Posted by Randomize View Post
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 View Post
!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..

Last edited by ~Ice*shOt; 07-12-2013 at 09:40.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode