25.03.2010, 15:47
Hello.
I had searched this, but don't get working team balance..
I would like that a team (example the usa) maximum 2 more players as the other teams have..
my try with one team:
but doesn't work.
I had searched this, but don't get working team balance..
I would like that a team (example the usa) maximum 2 more players as the other teams have..
my try with one team:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
for(new p = 0; p < GetMaxPlayers(); p++)
{
if(2 > gTeam[p] == TEAM_USA > gTeam[p] == TEAM_EUROPE > gTeam[p] == TEAM_TALIBAN > gTeam[p] == TEAM_RUSSIA > gTeam[p] == TEAM_ASIA)
{
SendClientMessage(playerid,0xFFFFFFAA, "Team USA is full.");
return 0;
}
}
return 1;
}