SA-MP Forums Archive
Detect when shooting - 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: Detect when shooting (/showthread.php?tid=617561)



Detect when shooting - MerryDeer - 23.09.2016

Hi,

How to check if player shooting now?


Re: Detect when shooting - GuyB790 - 23.09.2016

OnPlayerWeaponShot

Please be aware that: "This callback is only called when lag compensation is enabled."


Re: Detect when shooting - SickAttack - 23.09.2016

^ or: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange, https://sampwiki.blast.hk/wiki/Keys