Hey, i just found out that on my SCM the healer wont heal to more than 100, and if ppl got 125 hp with CashMod for an example, healer will just heal to 100, so ive tried if i can make it heal to the right hp (125)
for that ive tried with this:
PHP 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 < playerHealth[id] );
{
static property[5];
GetProperty(ent, 1, property);
health += str_to_num(property);
set_user_health(id, min(playerHealth[id], health));
GetProperty(ent, 2, property);
g_next_heal_time[id] = gametime + str_to_float(property);
}
return PLUGIN_HANDLED;
}
and then i get the errors:
could some1 help me? :S
__________________