03.04.2011, 16:38
pawn Код:
stock GetLowestCountTeam()
{
new c0, c1;
for (new i = 0; i < MAX_PLAYERS; i ++)
{
if (Team[i] == Team0) { c0 += 1; }
else if (Team[i] == Team1) { c1 += 1; }
}
if (c0 < c1) return Team0;
else if (c0 > c1) return Team1;
}