09.04.2011, 05:13
Код:
forward pAliveChecker();//this is a timer checking how many players are still alive...
public pAliveChecker()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if((chainsawed[i] == 0))//if player is still in game
{
pLiving++;
}
if(pLiving > 1)//if there are more than 1 players alive
{
pLiving = -1;//reset the variable
}
if(pLiving == 1 || pLiving == 0)//if only 1 player is alive or if server is empty
{
ChainsawEnder();//this is a stock that ends the round and changes the map...
KillTimer(pAliveTimerKill);
pLiving = 0;
chainsawed[i] = 0;
break;
}
}
return 1;
}

