native

get_weaponid

Syntax

native get_weaponid(const name[]);

Description

Returns the weapon id associated with a weapon name.

Parameters

name Weapon name

Note

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

Return

Weapon id, or 0 if no id was found