SA-MP Forums Archive
Function to check player holding weapon? - 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: Function to check player holding weapon? (/showthread.php?tid=454512)



Function to check player holding weapon? - RALL0 - 29.07.2013

Hey, I've been searching for a while now but I couldn't really find a function to see if the player is holding a certain weapon ID, any help is appreciated.


Re: Function to check player holding weapon? - DemCaribous - 29.07.2013

https://sampwiki.blast.hk/wiki/GetPlayerWeapon
must not have searched for that long


Re: Function to check player holding weapon? - dEcooR - 29.07.2013

i think it is getplayerweapon(playerid)


Re: Function to check player holding weapon? - Threshold - 29.07.2013

Check if a player is currently holding/has equipped a certain weapon: GetPlayerWeapon
Check if a player has a weapon in their inventory (Doesn't have to be equipped): GetPlayerWeaponData