native
cs_get_weapon_ammo
Syntax
native cs_get_weapon_ammo(index);
Description
Returns the amount of ammo in weapon's magazine.
Parameters
| index | Weapon entity index |
|---|
Note
This native does not verify that the provided entity is a weapon
entity. It will return incorrect values for non-weapon entities.
Return
Amount of ammo in magazine
Error
If an invalid entity index or a client index is provided,
an error will be thrown.