19.10.2013, 15:11
Use the function GetPlayerWeapon Link: https://sampwiki.blast.hk/wiki/GetPlayerWeapon
for example
for example
pawn Код:
if(GetPlayerWeapon(playerid) != 25) return SendClientMessage(playerid, -1, "You must be holding a shot gun to rob this store!"); //if player is not holding that weapon, it will show the error.