GivePlayerWeapon

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:39, 23 August 2013
Smithy (Talk | contribs)

← Previous diff
Revision as of 22:11, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 1: Line 1:
{{Scripting}} {{Scripting}}
 +
{{Description|Give a player a weapon with a specified amount of ammo.}} {{Description|Give a player a weapon with a specified amount of ammo.}}
Line 18: Line 19:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:GivePlayerWeapon]]

Revision as of 22:11, 1 February 2014



Description:

Give a player a weapon with a specified amount of ammo.


Parameters:
(playerid, weaponid, ammo)
playeridThe ID of the player to give a weapon to.
weaponidThe ID of the weapon to give to the player.
ammoThe amount of ammo to give to the player.


Return Values:

This function does not return any specific values.


GivePlayerWeapon(playerid, 26, 64); // Give playerid a sawn-off shotgun with 64 ammo

Related Functions

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

In other languages