cs_get_item_id

Синтаксис

native any:cs_get_item_id(const name[], &CsWeaponClassType:classid = CS_WEAPONCLASS_NONE);

Употреба

name
Alias or classname
classid
If item is a weapon, variable to store the associated
weapon class id in (CS_WEAPONCLASS_* constants)

Описание

Returns the item id associated with an item name and its aliases.

Забележка

The item name is case sensitive an can be with or without
weapon_ and item_ prefixes. This can be a command alias as well.
Values examples: ak47, weapon_ak47, kevlar, item_kevlar, vest, bullpup, ...

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

Item id (CSI_* constants)