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



OnPlayerWeaponShot (DUDE) - NullBot - 19.08.2015

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{

this work for all weapons ??


if the player shoot with Rocket launcher or grenades Not detected!

PD: i need detect when shoot this weapons WeaponID: 16-17-18 and 35-36-37-38


Re: OnPlayerWeaponShot (DUDE) - Threshold - 20.08.2015

OnPlayerWeaponShot only refers to weapons that use bullets. Weapons such as fire extinguisher, rocket launcher etc. will not be called. The only real alternative you can use is to detect when they press or hold Left Mouse Button and track their ammo.