24.09.2013, 13:30
GetPlayerWeaponData passes the weapon and ammo from each slot by reference.
Fist is by default, so no need to give it.
pawn Код:
new
weaponid,
ammo
;
GetPlayerWeaponData( playerid, 7, weaponid, ammo );
if( weaponid == 36 ) ResetPlayerWeapons( playerid );