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