SA-MP Forums Archive
Team balancer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Team balancer (/showthread.php?tid=249069)



nvm - Unknown123 - 17.04.2011

nvm

nvm


Re: Team balancer - (SF)Noobanatior - 17.04.2011

something like?
pawn Код:
switch(PlayerTeam[playerid]){
        case TEAM_POLICE:{
           if(Police > Terrorist)return !GameTextForPlayer(playerid, "~r~You must join Terrorist's", 3000, 5);
            else if(Police >= 10)return !GameTextForPlayer(playerid, "~r~Terrorist's is full", 3000, 5);
        }
        case TEAM_TERRORIST:{
            if(Terrorist > Police)return !GameTextForPlayer(playerid, "~r~You must join the Police", 3000, 5);
            else if(Terrorist >= 10)return !GameTextForPlayer(playerid, "~r~Terrorist's is full", 3000, 5);
        }
    }