SA-MP Forums Archive
Get weapon slot - 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: Get weapon slot (/showthread.php?tid=564571)



Get weapon slot - Supermaxultraswag - 22.02.2015

I want to check if player had a gun in slot 3. How does code should look like?


Re: Get weapon slot - ATGOggy - 22.02.2015

PHP код:
new ammoweapon;
GetPlayerWeaponData(playerid3weaponammo);
if(
weapon== //you weapon and code