09.04.2011, 05:21
try this
pawn Код:
public pAliveChecker()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if((chainsawed[i] == 0))pLiving++;
}
if(pLiving > 1)pLiving = -1;//reset the variable
else 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;
for(new i=0; i < MAX_PLAYERS; i++)chainsawed[i] = 0;
}
}
return 1;
}