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:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerColor(playerid, COLOR_GREEN);
GivePlayerWeapon(playerid, 24, 60);
SetPlayerPos(playerid, 2511.9458,-1686.4894,13.5711);
Or you can only use
PHP код:
SetPlayerTeam(playerid, TEAM_GROVE);
Onplayerspawn
Re: Set player team help -
Sellize - 19.01.2013
That didnt really answer my question