Teams. - 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: Teams. (
/showthread.php?tid=471795)
Teams. -
Kyance - 25.10.2013
So, i followed a tutorial, on how to make teams.
It's all working, but i can't get it to switch from one team, to another(in the class selection "zone")
(It basically only shows the USA Army..)
Some stuff that i suppose will be needed
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0:
{
SetPlayerSkin(playerid, 287);
SetPlayerPos(playerid, 268.5824,1884.6180,-30.0938);
SetPlayerCameraPos(playerid, 268.4520,1886.7498,-29.5313);
SetPlayerCameraLookAt(playerid, 268.5824,1884.6180,-30.0938);
SetPlayerTeam(playerid, USA_Army);
GameTextForPlayer(playerid, "~b~USA Army", 500, 0);
}
case 1:
{
SetPlayerSkin(playerid, 112);
SetPlayerPos(playerid, -1335.3473,493.4825,61.2008);
SetPlayerCameraPos(playerid,-1335.3473,493.4825,61.2008);
SetPlayerCameraLookAt(playerid, -1335.3473,493.4825,61.2008);
SetPlayerTeam(playerid, Russian_Spetsnaz);
GameTextForPlayer(playerid, "~r~Russian Spetsnaz", 500, 0);
}
}
return 1;
}
Ask if you will need anything else.. xd
VIDEO:
[ame]http://www.youtube.com/watch?v=KG9coqiIq2c[/ame]
Re: Teams. -
Kyance - 26.10.2013
/Bump, went to 3rd page D:
EDIT:
Tried using "gTeam" , but then it messed up completely.
Any help?..