Weapon entity index
Returns the weapon id of an entity.
For a list of possible weapon ids see the CSW_* constants in amxconst.inc
This native does not check that the provided entity is actually a weapon entity. It will return incorrect values for non-weapon entities.
If an invalid entity index or a client index is provided, an error will be thrown.