xmod_get_wpnname

Синтаксис

native xmod_get_wpnname(wpnindex, name[], len);

Употреба

wpnindex
Weapon id
name
Buffer to copy weapon name to
len
Maximmum buffer size

Описание

Retrieves the full weapon name of a weapon id.

Забележка

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.

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

Number of cells written to buffer

Грешка

If an invalid weapon id is provided an error will be thrown.