SA-MP Forums Archive
Set player team help - 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: Set player team help (/showthread.php?tid=408550)



Set player team help - Sellize - 18.01.2013

How can i set the players team when he spawns with a certain class


Re: Set player team help - azzerking - 18.01.2013

Follow this:

http://forum.sa-mp.com/showthread.ph...=setting+teams


Re: Set player team help - Mr.Faqahat - 18.01.2013

For Example:-

Onplayerspawn

PHP код:
    if(gTeam[playerid] == TEAM_GROVE)
    {
        new 
Float:XFloat:YFloat:Z;
        
GetPlayerPos(playeridXYZ);
        
SetPlayerColor(playeridCOLOR_GREEN);
        
GivePlayerWeapon(playerid2460);
           
SetPlayerPos(playerid2511.9458,-1686.4894,13.5711); 
Or you can only use
PHP код:
            SetPlayerTeam(playeridTEAM_GROVE); 
Onplayerspawn


Re: Set player team help - Sellize - 19.01.2013

That didnt really answer my question