Signature
native cs_get_weapon_ammo(index);
Description
Returns the amount of ammo in weapon's magazine.
Notes
-
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
Amount of ammo in magazine
Errors
-
If an invalid entity index or a client index is provided,
an error will be thrown.