10.01.2012, 12:53
PHP код:
public OnGameModeInit()
{
SetTimer("LifeCheck", 30000, true);
return 1;
}
public LifeCheck()
{
for(new i; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
new Float:health;
GetPlayerHealth(i, health);
SetPlayerHealth(i, health-1);
}
}
return 1;
}