native

user_has_weapon

Syntax

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

Description

Returns if the player has the weapon or not in their pev->weapons field.
set "setweapon" to 0 to turn the bit off, set to 1 to turn it on.