xmod_is_melee_wpn
- Синтаксис
-
native xmod_is_melee_wpn(wpnindex);
Переменная | Описание |
---|---|
wpnindex |
Weapon id |
- Описание
- Returns if the weapon is considered a melee weapon.
- Пометка
-
For a list of default CS weapon ids see the CSW_* constants in amxconst.inc, this function also works on custom weapons.
- Пометка
-
For the default CS weapons this obviously returns true only for CSW_KNIFE.
- Возвращает
- 1 if weapon is a melee weapon, 0