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



Player Weapon - RenovanZ - 25.12.2012

Hey, I've make weapon saving system with ammo, I using enum WeaponInfo weapon1 ammo1, etc.
I want to make if the player want deposit they weapon on trunk/house they must holding that weapon, how to do that ?


Re: Player Weapon - mineralo - 25.12.2012

GetPlayerWeapon(playerid)
this funtion return id of weapon which he holding

an exemple https://sampwiki.blast.hk/wiki/GetPlayerWeapon