The problem with death and spawn.
#5

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()
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;
}
Reply


Messages In This Thread
The problem with death and spawn. - by Vladok - 05.09.2014, 15:49
Re: The problem with death and spawn. - by Eth - 05.09.2014, 16:06
Re: The problem with death and spawn. - by Vladok - 06.09.2014, 05:34
Re: The problem with death and spawn. - by Vladok - 16.09.2014, 15:40
Re: The problem with death and spawn. - by biker122 - 16.09.2014, 17:36
Re: The problem with death and spawn. - by SnG.Scot_MisCuDI - 17.09.2014, 00:51
Re: The problem with death and spawn. (The problem, which has never had, and no one knows the solution.) - by Vladok - 17.10.2014, 12:18

Forum Jump:


Users browsing this thread: 2 Guest(s)