SA-MP Forums Archive
If two players are on the same team, does their shots still register on OnPlayerTakeDamage? - 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: If two players are on the same team, does their shots still register on OnPlayerTakeDamage? (/showthread.php?tid=660240)



If two players are on the same team, does their shots still register on OnPlayerTakeDamage? - SeanDenZYR - 28.10.2018

No cause i've set everyone's team to the same team to disable damage, so what i'm trying to ask here is if they shoot each other, does it still register on OnPlayerTakeDamage? cause what im trying to do here is give custom damage.


Re: If two players are on the same team, does their shots still register on OnPlayerTakeDamage? - v1k1nG - 28.10.2018

Shots are registered, damage is not delivered


Re: If two players are on the same team, does their shots still register on OnPlayerTakeDamage? - SeanDenZYR - 28.10.2018

ok thanks.


Re: If two players are on the same team, does their shots still register on OnPlayerTakeDamage? - v1k1nG - 28.10.2018

However to prevent bullet weapons to give damage you need to use OnPlayerWeaponShot rather than OnPlayerTakeDamage.