user_has_weapon

Синтаксис

native user_has_weapon(index, weapon, setweapon = -1);

Употреба

index
Client index
weapon
Weapon index
setweapon
If zero the weapon bit will be removed from the client's
inventory, if 1 it will be set

Описание

Returns if the client has the specified weapon in their inventory.

Връщаща стойност

1 if the weapon is present, 0 if it is not

Грешка

If the client index is not within the range of 1 to
MaxClients, an error will be thrown.