SA-MP Forums Archive
Setplayerteam - 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 (/showthread.php?tid=207270)



Setplayerteam - gereter - 05.01.2011

hello all,

I use in my GM Setplayerteam for anti teamkill
But I want keep a team(civilian) without anti team kill so I dont use "setplayerteam" for this one only...
But sometimes If for example a cop want kill a civilian he can't It looks like there is the anti team kill but they are not in same team so... (civilian can kill each other everytime never bugged)
I have a team police and a team swat it is a different gteam[...] but the same setplayer team : seplayerteam(playerid,1) for the two. I don't know if this is doing that bug or ...

I hope you can help and explain me how can I do it thanks


Re: Setplayerteam - Sascha - 05.01.2011

set a team for civilians, too...
then just check whether the player is in the civil team and disable the anit team kill function for this team / for players that kill this team...


Re: Setplayerteam - gereter - 06.01.2011

thanks for reply but if i set a team for them then they can't kill each other civilian vs civilian right ?