16.09.2014, 17:36
Pretty sure that this is not the way to solve it; But if I've got this problem, and didn't get/have a solution, I might use it like this:
Inside OnGameModeInit()
Anywhere in your script
Inside OnGameModeInit()
pawn Код:
SetTimer("CheckHP", 1000, 1);
Anywhere in your script
pawn Код:
forward CheckHP();
public CheckHP()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(GetPlayerHealth(i) <= 0)
{
SpawnPlayer(i);
}
}
return 1;
}