22.09.2012, 15:26
pawn Код:
forward DeadTimer();
public DeadTimer()
{
for(new i=0;i < MAX_PLAYERS; i++) // foreach(Player, i) - if using foreach (Recommended)
{
new Float:health;
GetPlayerHealth(i, health);
if(health < 1 && IsPlayerConnected(i))
{
SpawnPlayer(i);
}
}
}