Raised This Month: $ Target: $400
 0% 

Health Block help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Qvantry
Junior Member
Join Date: Aug 2012
Old 03-01-2013 , 21:42   Health Block help!
Reply With Quote #1

Hey, im using cashmod (v007). I have coded max health to be 200 hp. But my HP block only heals to 100. I dont know how to change this, thats why im asking for help. Here's my Hp block code:

ActionHeal(id, ent)
{
new Float:gametime = get_gametime();
if ( !( gametime >= g_next_heal_time[id] ) ) return PLUGIN_HANDLED;

new health = get_user_health(id);
if ( health >= 100 ) return PLUGIN_HANDLED;

static property[5];

GetProperty(ent, 1, property);
health += str_to_num(property);
set_user_health(id, min(100, health));

GetProperty(ent, 2, property);
g_next_heal_time[id] = gametime + str_to_float(property);

return PLUGIN_HANDLED;
}
Qvantry is offline
Old 03-02-2013, 21:49
Qvantry
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Reply



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 21:36.


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