02.11.2010, 18:51
I don't know how to make that, try to search -.-'
EDIT: Found it
EDIT: Found it
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new maxteamplayers[10]; // Put how much players you want max in the team
for(new i, m = GetMaxPlayers(); i < m; i++)
if(IsPlayerConnected(i))
maxteamplayers[gTeam[playerid]]++;
if(maxteamplayers[gTeam[playerid]] > maxteamplayers[!gTeam[playerid]])
SendClientMessage(playerid, COLOR_BRIGHTRED, "Team full, choose other team to keep the game balanced");
return 1;
}