SA-MP Forums Archive
How to make team balance - 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)
+--- Thread: How to make team balance (/showthread.php?tid=284913)



How to make team balance - MA_proking - 21.09.2011

Please tell me how to make team balance for two teams. only


Re: How to make team balance - Stigg - 21.09.2011

Found this with a little SEARCH:

https://sampforum.blast.hk/showthread.php?tid=224853

Should help you get started.


Re: How to make team balance - aRoach - 21.09.2011

Deleted.... WTF?!?!?


Re: How to make team balance - MA_proking - 21.09.2011

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerPos(playerid, 1380.6447,-1753.0427,13.5469);
    SetPlayerFacingAngle(playerid, 269.6420);
    SetPlayerCameraPos(playerid, 1387.2906,-1752.8887,13.3828);
    SetPlayerCameraLookAt(playerid, 1380.6447,-1753.0427,13.5469);
    TextDrawShowForPlayer(playerid, CBox);
    TextDrawShowForPlayer(playerid, CBox2);
    TextDrawShowForPlayer(playerid, InfoC);
    TextDrawShowForPlayer(playerid, SkinC);
    if(classid == 0)
    {
        //GameTextForPlayer(playerid,"~b~Human ~n~~w~ Powers: None",5000,4);
        TextDrawHideForPlayer(playerid,SkinC);
        TextDrawShowForPlayer(playerid,SkinC);
        TextDrawSetString(SkinC,"Human");
        PlayerTeam[playerid] = 0;
        SetPlayerTeam(playerid,0);
    }
    else if(classid == 1)
    {
        //GameTextForPlayer(playerid,"~r~Zombie ~n~~w~ Powers: Infection Virus",5000,4);
        TextDrawHideForPlayer(playerid,SkinC);
        TextDrawShowForPlayer(playerid,SkinC);
        TextDrawSetString(SkinC,"Zombie");
        PlayerTeam[playerid] = 1;
        SetPlayerTeam(playerid,1);
    }
    return 1;
}
I m using this code can you help please