SA-MP Forums Archive
i need - OnPlayerShootObject help please ? - 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: i need - OnPlayerShootObject help please ? (/showthread.php?tid=462418)



i need - OnPlayerShootObject help please ? - _Application_ - 06.09.2013

hello samp,

i need function or public "OnPlayerShootObject"
this checks if a player hit the object

Thanks in advance...


Re: i need - OnPlayerShootObject help please ? - bensmart469 - 07.09.2013

Just get the player's looking position, check their animation index (or check if they have a firearm in hand, which is simpler), and check if they pressed KEY_FIRE.


Re: i need - OnPlayerShootObject help please ? - _Application_ - 07.09.2013

Public or function can be
please


Re: i need - OnPlayerShootObject help please ? - _Application_ - 08.09.2013

helppp ??