26.07.2009, 17:21
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...
}