GivePlayerWeapon

From SA-MP Wiki

Jump to: navigation, search


Give a player a weapon


Parameters:
(playerid, weaponid, ammo)
playeridThe ID of the player to give the weapon to
weaponidThe ID of the weapon you want to give the player
ammoHow much ammo to give to the player


ReturnsThis function doesn't return a specific value


GivePlayerWeapon(playerid, 26, 500); //Give playerid sawnoff shotgun with 500 ammo

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools