Guys what does this all mean??
Code:
static Float:lastTouched[33];
GetObjectProperty(ent, 1, szProperty1);
GetObjectProperty(ent, 2, szProperty2);
new Float:fHeal = str_to_float(szProperty1);
new Float:fInterval = str_to_float(szProperty2);
if ( get_gametime() - lastTouched[plr] > fInterval )
{
new Float:health;
pev(plr, pev_health, health);
if ( health + fHeal < 100.0 )
{
set_pev(plr, pev_health, health + fHeal);
}
else
{
set_pev(plr, pev_health, 100.0);
}
lastTouched[plr] = get_gametime();
}
}