SA-MP Forums Archive
How to make anti team fire ? - 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: How to make anti team fire ? (/showthread.php?tid=494662)



How to make anti team fire ? - barts - 14.02.2014

I mean when a player shoot player and theya re in the same team to dont kill him him(Anti Team Fire)


Re: How to make anti team fire ? - CuervO - 14.02.2014

https://sampwiki.blast.hk/wiki/SetPlayerTeam

Investigate around that function, which disables damage for players on the same team.


Re: How to make anti team fire ? - barts - 15.02.2014

Can you explain


Re: How to make anti team fire ? - Avi Raj - 15.02.2014

https://sampforum.blast.hk/showthread.php?pid=937824#pid937824
Check if the shooter and target in same team, then send the message like "No teamkilling allowed."


Re: How to make anti team fire ? - Twizted - 15.02.2014

https://sampforum.blast.hk/showthread.php?tid=278006

Follow this tutorial and modify it to fit your needs.


Re: How to make anti team fire ? - blackeagle1122 - 15.02.2014

If you set players team they can't kill each other.