Teambalance?
#6

Try this.
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(GetPlayerSkin(playerid) == *) // Replace * with the skin you entered at the first AddPlayerClass
    {
        if(Team1Count > Team2Count)
        {
            SendClientMessage(playerid, COLOR_RED, "Please, join the other team to balance the teams.");
            GameTextForPlayer(playerid,"~r~RED ~w~TEAM",1000,5);
        }
    }
    else if(GetPlayerSkin(playerid) == *) // Replace * with the skin you entered at the second AddPlayerClass
    {
        if(Team2Count  > Team1Count)
        {
            GameTextForPlayer(playerid,"~b~BLUE ~w~TEAM",1000,5);
            SendClientMessage(playerid, COLOR_RED, "Please, join the other team to balance the teams.");
        }
    }
    return 1;
}
Reply


Messages In This Thread
Teambalance? - by geerdinho8 - 31.05.2011, 20:43
Re: Teambalance? - by SpiderWalk - 31.05.2011, 20:49
Re: Teambalance? - by geerdinho8 - 31.05.2011, 21:44
Re: Teambalance? - by Joe Staff - 31.05.2011, 22:18
Re: Teambalance? - by geerdinho8 - 01.06.2011, 09:23
Re: Teambalance? - by Biesmen - 01.06.2011, 09:27
Re: Teambalance? - by geerdinho8 - 01.06.2011, 09:52
Re: Teambalance? - by geerdinho8 - 01.06.2011, 12:23
Re: Teambalance? - by Raimis_R - 01.06.2011, 12:27

Forum Jump:


Users browsing this thread: 1 Guest(s)