SA-MP Forums Archive
How I can Use Anti Team Kill - 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: How I can Use Anti Team Kill (/showthread.php?tid=163204)



How I can Use Anti Team Kill - waim - 26.07.2010

Hello Can you give me a tutorial or filterscript for Anti Team Kill and thank you


Re: How I can Use Anti Team Kill - Vince - 26.07.2010

SetPlayerTeam


Re: How I can Use Anti Team Kill - Jeffry - 26.07.2010

SetPlayerTeam

Same number of team cannot kill each others. Thats all to do.


Re: How I can Use Anti Team Kill - waim - 26.07.2010

Can you give me an example ?


Re: How I can Use Anti Team Kill - DJDhan - 26.07.2010

If you use gTeam to store your team player ids, then all you need to do is add:
Код:
SetPlayerTeam(playerid,gTeam[playerid]);
under OnPlayerSpawn. I prefer OnPlayerSpawn yes.


Re: How I can Use Anti Team Kill - iggy1 - 26.07.2010

pawn Код:
SetPlayerTeam(1,0);//set id 1 to team 0
SetPlayerTeam(2,0);//id 2 in same team as id 1
id's 1 and 2 wont be able to kill eachother because they both in team 0


Re: How I can Use Anti Team Kill - waim - 26.07.2010

Okй thanks i'll use it