SA-MP Forums Archive
onplayerweaponshoot - 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: onplayerweaponshoot (/showthread.php?tid=617718)



onplayerweaponshoot - MerryDeer - 25.09.2016

Hi,

Can i OnPlayerWeaponShoot, when with return 0;, never calls onplayertakedamage, onplayergivedamage ?


Re: onplayerweaponshoot - Gotham - 25.09.2016

It is OnPlayerWeaponShot
See https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot for goddamn's sake


Re: onplayerweaponshoot - GoldenLion - 25.09.2016

If you return 0 under OnPlayerWeaponShot, then the bullet won't damage anything, but OnPlayerGiveDamage will still be called.