native

custom_weapon_add

Syntax

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

Description

Adds a custom weapon to the stats system.

Parameters

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

Note

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

Return

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