Signature
native cs_get_weapon_id(index);
Description
Returns the weapon id of an entity.
Notes
-
For a list of possible weapon ids see the CSW_* constants in
amxconst.inc
-
This native does not verify that the provided entity is a weapon
entity. It will return incorrect values for non-weapon entities.
Parameters
- index — Weapon entity index
Returns
Weapon id
Errors
-
If an invalid entity index or a client index is provided,
an error will be thrown.