SA-MP Forums Archive
Team Kill [Event] - 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: Team Kill [Event] (/showthread.php?tid=549267)



Team Kill [Event] - davidstyle1125 - 05.12.2014

Hello, I wanted to ask how do I set that in Team Death Match Event players from the same team won't be able to kill each other.
Because now, when i set Team Death Match Event.. people in the same team.. with same colors.. may kill each other.


Re: Team Kill [Event] - UltraScripter - 05.12.2014

if u set them as a team they could not kill each other


Re: Team Kill [Event] - davidstyle1125 - 05.12.2014

The problem is that They can....
even if they are in the same TEAM.


Re: Team Kill [Event] - UltraScripter - 05.12.2014

did you make teams or just colors?


Re: Team Kill [Event] - Beckett - 05.12.2014

OnPlayerTakeDamage. Check if the issuer's damage team is the playerid's (issued player) team. If yes then do no damage, can't write an example right now on phone.


Re: Team Kill [Event] - MohanedZzZ - 05.12.2014

Use this one https://sampwiki.blast.hk/wiki/SetPlayerTeam
and change the player colors (no needed at all)