Auto team balance
#7

Here you go, Using zcmd
pawn Код:
CMD:balanceteams(playerid, params[])
{
    new TotalPlayers = 0;
    new A=0, B=1;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            switch (i)
            {
                case A: SetPlayerTeam(playerid, 1); // First team
                case B: SetPlayerTeam(playerid, 2); // Second team
            }
        }
        A += 2;
        B += 2;
    }
    return 1;
}
player with Id 0 = team 0
Id 1 = team 1
id 2 = team 0
id 3 = team 1 and so on
Reply


Messages In This Thread
Auto team balance - by GwENiko - 24.11.2013, 14:55
Re: Auto team balance - by Pottus - 24.11.2013, 14:59
Re: Auto team balance - by GwENiko - 24.11.2013, 15:17
Re: Auto team balance - by Zues - 24.11.2013, 15:32
Re: Auto team balance - by GwENiko - 26.11.2013, 19:26
Re: Auto team balance - by GwENiko - 29.11.2013, 17:32
Re: Auto team balance - by xVIP3Rx - 29.11.2013, 17:49
Re: Auto team balance - by Konstantinos - 29.11.2013, 17:57
AW: Auto team balance - by Nero_3D - 29.11.2013, 18:49
Re: Auto team balance - by Konstantinos - 29.11.2013, 18:59

Forum Jump:


Users browsing this thread: 4 Guest(s)