native

get_weaponid

Syntax

native get_weaponid(const name[]);

Description

Returns the weapon id, otherwise 0 when no id found.
The weapon name is case sensitive, and has the weapon_* form.