11.07.2016, 14:27
Quote:
Код:
if(GetPlayerWeapon(playerid) != yourweaponid) { ...here do your stuff } |
Quote:
Use this function:
Код:
stock IsPlayerUsingWeapon(playerid, _weaponid) { // Author: VVWVV const MAX_WEAPONS_SLOTS = 13; static ammo, weaponid; for (new i; i != MAX_WEAPONS_SLOTS; i++) { if (GetPlayerWeaponData(playerid, i, weaponid, ammo) == 0) return 0; if (weaponid == _weaponid) return 1; } return 0; } |