Team Balancer
#3

Quote:
Originally Posted by Mean
Посмотреть сообщение
I don't know how to make that, try to search -.-'
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;
}
does this work?
Reply


Messages In This Thread
Team Balancer - by Saurik - 02.11.2010, 16:59
Re: Team Balancer - by Mean - 02.11.2010, 18:51
Re: Team Balancer - by [SFA]SpiRRiT - 06.03.2011, 11:00
Re: Team Balancer - by alpha500delta - 06.03.2011, 12:00

Forum Jump:


Users browsing this thread: 1 Guest(s)