SetPlayerTeam prob - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerTeam prob (
/showthread.php?tid=163024)
SetPlayerTeam prob -
iggy1 - 25.07.2010
hi i have a filterscript that has two teams however when they leave the area (dmzone) they will still be in the team and wont be able to kill eachother, is there a way to reset the players team like pass -1 in SetPlayerTeam maybe? or even a simpler way?
I need them taking out of all teams(when they leave the area).
hope u understand im shit at explaining things lol
Edit: lol i thought of a way might not work as long as i use team ids 501+ we'll see

its probably not necesary as theres probably a better way.
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerTeam(playerid,playerid);
return 1;
}
lol that made me laugh but will probably work (i hope) then on the exit command i add SetPlayerTeam(playerid,playerid);
If anyone knows a better way plz tell me.
Thanks in advance
Re: SetPlayerTeam prob -
PotH3Ad - 25.07.2010
I use this in my gang system, works good, give it a try. Found the define in one of the SA-MP includes. (-1 works also...)
pawn Код:
SetPlayerTeam(playerid, NO_TEAM);
Re: SetPlayerTeam prob -
iggy1 - 25.07.2010
Nice1 m8 doesn't give erors should b good alot better than my shyte