SA-MP Forums Archive
IMPORTANT small question! - 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: IMPORTANT small question! (/showthread.php?tid=224987)



IMPORTANT small question! - BlackWolf120 - 12.02.2011

hi,
i use teams on my server but in some rounds i have to "reset" the teams cause i dont want to have no teams there.
So i need to know how to resolve the teams.
I use SetPlayerTeam (gTeams) and i tried it like in the following but it doesnt work!
pawn Код:
SetPlayerTeam(playerid,-1);
I need help fast!


Re: IMPORTANT small question! - Hiddos - 12.02.2011

From a_samp.inc:
pawn Код:
#define NO_TEAM                                 (255)
Enjoy.


Re: IMPORTANT small question! - BlackWolf120 - 12.02.2011

So i just have to put 255 into SetPlayerTeam instead of the -1?


Re: IMPORTANT small question! - Lorenc_ - 12.02.2011

Either that or NO_TEAM


Re: IMPORTANT small question! - BlackWolf120 - 12.02.2011

ok thank you both soooo much!!