Update the code with that one and recompile :
PHP Code:
actionHeal(id)
{
new Float:fGameTime = get_gametime()
if(fGameTime > gfNextHealTime[id])
{
new iHealth = get_user_health(id);
if( iHealth < 100 )
{
static pCvarBmHealAmount;
if( !pCvarBmHealAmount )
{
pCvarBmHealAmount = get_cvar_pointer("bm_healamount");
}
iHealth += get_pcvar_num(pCvarBmHealAmount);
if( iHealth > 100 )
{
iHealth = 100;
}
set_user_health(id, iHealth);
gfNextHealTime[id] = fGameTime + 0.5;
}
}
}
__________________