Teambalancer & NextMap help.
#7

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    for(new p = 0; p < GetMaxPlayers(); p++)
    {
        if(IsPlayerConnected(p))
        {
            if (gTeam[p] == TEAM_HOBO)
            {
                count1++;
            }
            else if (gTeam[p] == TEAM_RICH)
            {
                count2++;
            }
        }
    }
    if ((count1 > count2) && gTeam[playerid] == TEAM_HOBO)
    {
        SendClientMessage(playerid, COLOR_RED, "Choose another team to keep the teams even!");
        return 0;
    }
    else if ((count2 > count1) && gTeam[playerid] == TEAM_RICH)
    {
        SendClientMessage(playerid, COLOR_RED, "Choose another team to keep the teams even!");
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Teambalancer & NextMap help. - by [dN]Eagle - 23.01.2010, 19:33
Re: Teambalancer & NextMap help. - by [dN]Eagle - 23.01.2010, 22:18
Re: Teambalancer & NextMap help. - by [dN]Eagle - 24.01.2010, 11:26
Re: Teambalancer & NextMap help. - by mansonh - 24.01.2010, 11:31
Re: Teambalancer & NextMap help. - by [dN]Eagle - 24.01.2010, 11:36
Re: Teambalancer & NextMap help. - by [dN]Eagle - 24.01.2010, 14:04
Re: Teambalancer & NextMap help. - by MadeMan - 24.01.2010, 14:21
Re: Teambalancer & NextMap help. - by [dN]Eagle - 24.01.2010, 14:26
Re: Teambalancer & NextMap help. - by MadeMan - 24.01.2010, 14:28
Re: Teambalancer & NextMap help. - by [dN]Eagle - 24.01.2010, 14:29

Forum Jump:


Users browsing this thread: 2 Guest(s)