18.09.2010, 12:26
pawn Code:
new TeamCount[2];
public OnPlayerRequestSpawn(playerid)
{
if((gTeam[playerid] == TEAM_CT) ? (TeamCount[0] > TeamCount[1]+3) : (TeamCount[0] < TeamCount[1]+3))
{
SendClientMessage(playerid, 0x00ff00ff, "Unable to spawn, the teams aren't balanced!");
return 0;
}
TeamCount[(gTeam[playerid] == TEAM_CT) ? (0) : (1)]++;
}
Also, this is just a crappy example. I guess it's best to make your own system