Raised This Month: $ Target: $400
 0% 

[HELP] Last Problem! =]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
malec321
Senior Member
Join Date: May 2009
Location: Los Angeles
Old 06-11-2009 , 19:37   [HELP] Last Problem! =]
Reply With Quote #1

Code:
        if (sum < 100)
        {
            set_user_health(id, sum);
        }
            else
        {
             set_user_health(id, 100);
         }
             gfNextHealTime[id] = halflife_time() + 0.5;

How can you make it so when you touch the heal block n u got over 100 hp it doesnt just set it to 100 again.


And I have a 2nd block called SuperHeal making it go from 0-220 HP

but when i go in it, it just sets it down to 100 please help!
malec321 is offline
 



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 13:49.


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