How to check if all players are dead?
#7

Well obviously you have to add
Code:
new cantspawn[MAX_PLAYERS];
to the top of the script and if you want a timer just try this (untested ofc):

Code:
forward DeadTimer();
public DeadTimer()
{
for(new i=0;i < MAX_PLAYERS; i++)
{
if(GetPlayerHealth(i) < 1 && IsPlayerConnected(i) == 1)
{
cantspawn[i] = 1;
}
}
}
Didn't indent.
Reply


Messages In This Thread
How to check if all players are dead? - by BlackWolf120 - 01.04.2011, 14:24
Re: How to check if all players are dead? - by JamesC - 01.04.2011, 14:43
Re: How to check if all players are dead? - by BlackWolf120 - 01.04.2011, 21:36
Re: How to check if all players are dead? - by BlackWolf120 - 01.04.2011, 23:30
AW: Re: How to check if all players are dead? - by Manuel1948 - 01.04.2011, 23:32
Re: How to check if all players are dead? - by BlackWolf120 - 02.04.2011, 13:53
Re: How to check if all players are dead? - by coole210 - 02.04.2011, 14:49
Re: How to check if all players are dead? - by BlackWolf120 - 02.04.2011, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)