get_weaponid

Syntax

native get_weaponid(const name[]);

Usage

name
Weapon name

Description

Returns the weapon id associated with a weapon name.

Note

The weapon name is case sensitive and has the weapon_* form.

Return

Weapon id, or 0 if no id was found