Teambalance help.
#1

pawn Код:
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_SERVER, "[SERVER]: Choose another team to keep the teams even!");
        SetPlayerHealth(playerid,100.0);
        return 0;
    }
    else if ((count2 > count1) && gTeam[playerid] == TEAM_RICH)
    {
        SendClientMessage(playerid, COLOR_SERVER, "[SERVER]: Choose another team to keep the teams even!");
        SetPlayerHealth(playerid,100.0);
        return 0;
    }
    return 1;
}
Alright, so that's my team balancer but it's not working properly.

I can only select 1 class at the beginning :S

And I am only capeable to select 1 team.

Help please
Reply


Messages In This Thread
Teambalance help. - by [dN]Eagle - 29.01.2010, 14:38
Re: Teambalance help. - by [dN]Eagle - 29.01.2010, 16:36
Re: Teambalance help. - by [dN]Eagle - 29.01.2010, 21:22
Re: Teambalance help. - by [dN]Eagle - 30.01.2010, 07:00
Re: Teambalance help. - by MaykoX - 30.01.2010, 07:39

Forum Jump:


Users browsing this thread: 1 Guest(s)