Quote:
Originally Posted by ]Rafaellos[
Why not?
PHP код:
new
healTimer
;
public OnGameModeInit()
{
healTimer = SetTimer("healHealers", 5000, true);
return 1;
}
forward healHealers();
public healHealers()
{
foreach (new i : Player)
{
if(PlayerSkill[i] == Healer)
{
new
Float:playerHealth
;
GetPlayerHealth(i, playerHealth);
if((playerHealth + 5) < 100)
{
SetPlayerHealth(i, playerHealth + 5);
}
}
}
return 1;
}
|
That seems way more efficient thank you.