11.03.2017, 13:22
PHP код:
IsTeamFull(TeamID)
{
new Teams[MAX_TEAMS],i,k;
for(i =0; i< MAX_PLAYERS; i++)
for(k = 0; k < MAX_TEAMS; k++)
if((GetPlayerTeam(i) == k)
Teams[k]++;
for(i = 0; i< MAX_TEAMS; i++)
if(Teams[i] < Teams[TeamID])
return true;
return false;
}