Difference between revisions of "0113"

From GTAMods Wiki
Jump to navigation Jump to search
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|3}} '''ADD_AMMO_TO_PLAYER'''
+
{{OpCode
<hr />
+
| games      = {{Icon|3}}
'''Description'''
+
| command    = ADD_AMMO_TO_PLAYER
: Adds ammo to the player's weapon
+
| description = Adds ammo to the player's weapon
'''Syntax'''
+
| syntax1    = 0113: add_ammo_to_player [''player handle''] weapon [''int1''] rounds [''int2'']
: 0113: add_ammo_to_player [''player handle''] weapon [''int1''] rounds [''int2'']
+
| p1t        = [''player handle'']
'''Parameter'''
+
| p1d        = The [[0053|handle of the player]]
: [''player handle'']
+
| p2t        = [''int1'']
:: The [[0053|handle of the player]]
+
| p2d        = [[Weapon#GTA III|Weapon type]]
: [''int1'']
+
| p3t        = [''int2'']
:: [[Weapon#Lists of Weapons|Weapon number]]
+
| p3d        = Ammo
: [''int2'']
+
}}
:: Ammo
 
  
 
This opcode adds ammo to your weapon. If you do not have the weapon, the weapon will be given to you along with ammo. This opcode was never called in the [[Main.scm|original script]] of GTA III.
 
This opcode adds ammo to your weapon. If you do not have the weapon, the weapon will be given to you along with ammo. This opcode was never called in the [[Main.scm|original script]] of GTA III.
Line 19: Line 18:
  
 
== See also ==
 
== See also ==
* [[0114]], adds ammo to the character's weapon
+
* {{Icon|t}} [[0114]], adds ammo to the character's weapon
* [[017A]], sets ammo to the player's weapon
 
 
 
[[Category:OpCodes]]
 

Latest revision as of 04:25, 7 July 2017

GTA III ADD_AMMO_TO_PLAYER


Description
Adds ammo to the player's weapon
Syntax
0113: add_ammo_to_player [player handle] weapon [int1] rounds [int2]
Parameter
[player handle]
The handle of the player
[int1]
Weapon type
[int2]
Ammo

This opcode adds ammo to your weapon. If you do not have the weapon, the weapon will be given to you along with ammo. This opcode was never called in the original script of GTA III.

Keywords

add, player, weapon, ammo

See also

  • GTA III Vice City San Andreas 0114, adds ammo to the character's weapon