SA-MP Forums Archive
Anti TeamKill Help [Dr.Lozer] - 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: Anti TeamKill Help [Dr.Lozer] (/showthread.php?tid=385674)



Anti TeamKill Help [Dr.Lozer] - dr.lozer - 17.10.2012

Hi,, Can Any one help me how to make Anti Team Kill ??

Exmple: If i shot on my Teammate so my Teammate Wont take damage

I tried this But its Slow
pawn
Код:
OnPlayerTakeDamage
OnPlayerGiveDamage



AW: Anti TeamKill Help [Dr.Lozer] - BiosMarcel - 17.10.2012

Use OnPlayerShootPlayer from wups(Its faster) theres a link in my LogFilterscript


Re: Anti TeamKill Help [Dr.Lozer] - dr.lozer - 17.10.2012

Thanks


Re: Anti TeamKill Help [Dr.Lozer] - Spookie98 - 17.10.2012

Or, you can try to put the players on the connect/spawn in the same team using SetPlayerTeam and the anti team kill will be enabled by the script, no need for OPSP.