AMX Mod X API Documentation

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

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

Notes
  • 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, ...

Parameters
  • name Alias or classname
  • classid If item is a weapon, variable to store the associated

    weapon class id in (CS_WEAPONCLASS_* constants)

Returns

Item id (CSI_* constants)

Назад
Верх