28.10.2012, 07:54
Shit. Try this:
pawn Код:
stock NewRound()
{
new count, count2;
for (new i = 0; i < MAX_PLAYERS; i ++)
{
if (IsPlayerConnected(i) && gTeam[i] != TEAM_ZOMBIE) count++;
}
for (new i = 0; i < MAX_PLAYERS; i ++)
{
if (IsPlayerConnected(i) && gTeam[i] == TEAM_ZOMBIE) count2++;
}
if (count == count2)
{
SendRconCommand("gmx");
}
return 1;
}