SetPlayerAmmo

From SA-MP Wiki

Jump to: navigation, search

SetPlayerAmmo


Set the ammo the given player has in the given weapon slot


Parameters:
(playerid, weaponid, ammo)
playeridThe ID of the player to set the weapon ammo of
weaponidWeapon ID to change the ammo of
ammoAmount 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.
Personal tools
In other languages