custom_weapon_add

Синтаксис

native custom_weapon_add(const wpnname[], melee = 0, const logname[] = "");

Употреба

wpnname
Full weapon name
melee
If nonzero the weapon will be considered a melee weapon
logname
Weapon short name

Описание

Adds a custom weapon to the stats system.

Забележка

The weapon name should be the full display name of the gun such as
"Desert Eagle" while the logname should be "weapon_deagle".

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

Cusom weapon id (>0) on success, 0 if no more custom weapons
can be added