SetPlayerAmmo
From SA-MP Wiki
SetPlayerAmmo
Set the ammo the given player has in the given weapon slot
(playerid, weaponid, ammo)
| playerid | The ID of the player to set the weapon ammo of |
| weaponid | Weapon ID to change the ammo of |
| ammo | Amount of ammunition to set |
This function does not return a specific value.
SetPlayerAmmo(playerid,3,1000);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- GetPlayerAmmo: Check how much ammo a player has in the specified slot.
- GivePlayerWeapon: Give a player a weapon.
