Quote:
|
Originally Posted by James_Alex(Coder)
try this
pawn Код:
// put this in the to of the script new teamMembers[15];
// put this is OnGameModeInit SetTimer("CheckTeams", 100, true);
// put this anywhere in the script forward CheckTeams(); public CheckTeams() { for(new i = 0; i < MAX_PLAYERS; i ++) { teamMembers[gTeam[i]] += 1; } }
// then use this in your command if(teamMembers[1] > 3) // the [1] is the team id { // bla bla bla... }

|
OH MY GOD?
100 Ms Timer + a MAX_PLAYER Loop? Bad shizzle..