12.07.2015, 10:09
(
Последний раз редактировалось Pawnify; 12.07.2015 в 10:13.
Причина: Mistake when coding at 2am
)
<What coding at 2am does to you (removed)>
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;
}
Why not?
PHP код:
|