Health Block help!
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; } |
| All times are GMT -4. The time now is 21:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.