/changeteam command - 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: /changeteam command (
/showthread.php?tid=386535)
/changeteam command -
HyDrAtIc - 20.10.2012
Hey everyone
could someone make a /changeteam command that forces you to team selection?
Thanks all!
Re: /changeteam command -
Riddick94 - 20.10.2012
Any commands, functions, name of variables? ANYTHING?
Re: /changeteam command -
HyDrAtIc - 20.10.2012
Not really,I just need a /changeteam command that force you to skin selection,nothing else.
Re: /changeteam command -
KevinPRINCE - 20.10.2012
Quote:
Originally Posted by James_Nick
Hey everyone
could someone make a /changeteam command that forces you to team selection?
Thanks all!
|
Umm for you yes but I need your varibles
Edit: SO its an admin command? and to force to skin selection?
Re: /changeteam command -
Youice - 20.10.2012
Hints (may help you)
PHP код:
//if the variable is gTeam for example (which defines the player on which troop)
CMD:changeteam(playerid, params[])
{
if(gTeam[playerid] == 1 /*TEAM 1*/)
{
//YOUR CODE
gTeam[playerid] = 2; /*TEAM 2*/
}
else if(gTeam[playerid] == 2 /*TEAM 1*/)
{
//YOUR CODE
gTeam[playerid] = 1; /*TEAM 2*/
}
//and so on if you want
return 1;
}
Re: /changeteam command -
mincer - 20.10.2012
https://sampwiki.blast.hk/wiki/ForceClassSelection
use that to force them to class selection in your command.
Re: /changeteam command -
HyDrAtIc - 20.10.2012
Thanks everyone!
Re: /changeteam command -
Riddick94 - 20.10.2012
ForceClassSelection function works only after player death. You should use y_groups include to get a function Group_ReturnToClassSelection to do this automaticly.