22.09.2012, 14:47
pawn Код:
forward DeadTimer();
public DeadTimer()
{
for(new i=0;i < MAX_PLAYERS; i++) // foreach(Player, i) - if using foreach (Recommended)
{
if(GetPlayerHealth(i) < 1 && IsPlayerConnected(i) == 1)
{
SpawnPlayer(i);
}
}
}
SOURCE: https://sampforum.blast.hk/showthread.php?tid=245683
PS: If your english sucks post it here: http://forum.sa-mp.com/forumdisplay.php?f=28