21.09.2010, 02:36
(
Последний раз редактировалось Kitten; 24.11.2013 в 05:20.
)
Solved
myFunc()
{
new
allZombie = 1;
for (new i; i < MAX_PLAYERS; ++i)
{
if (!IsPlayerConnected(i)) continue;
if (GetPlayerTeam(i) != TEAM_ZOMBIE) allZombie = 0, break;
}
if (allZombie)
{
// everyone is a zombie
}
else
{
// at least 1 non-zombie
}
}