Hello,
Problem is with blockmaker heal block:
If I have 255 hp and I go on heal block it goes back 100, I tried everything, I even changed it all to 255 to see if it will heal to 255, still 100.
Code:
actionHeal(id)
{
if (halflife_time() >= gfNextHealTime[id])
{
new szPlayerName[32];
get_user_name(id, szPlayerName, 32);
new hp = get_user_health(id);
new amount = floatround(get_cvar_float("bm_healamount"), floatround_floor);
new sum = (hp + amount);
if (sum < 100)
{
set_user_health(id, sum);
}
else
{
set_user_health(id, 100);
}
gfNextHealTime[id] = halflife_time() + 0.5;
}
}
I need it so if you have less then 100hp it will heal to 100. If you have like 101 it will heal to 255.
__________________