GetPlayerAmmo
From SA-MP Wiki
GetPlayerAmmo
Returns the amount of ammunition the player has in his active weapon slot.
(playerid)
| playerid | ID of the player |
| Returns | The amount of ammunition the player has in his active weapon slot. |
new ammo = GetPlayerAmmo(playerid);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- SetPlayerAmmo: Set the ammo of a specific player's weapon.
- GetPlayerWeaponData: Find out information about weapons a player has.
