Scripting/Squirrel/Functions/Player.SetWeapon: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with " == Syntax == <pre>player.SetWeapon( weaponID, Ammo );</pre> == Example == <pre>if (cmd == "gimmeaweapon") { player.SetWeapon( 24, 999 ); MessagePlayer("you recieved a free...")
(No difference)

Revision as of 11:53, 13 February 2016

Syntax

player.SetWeapon( weaponID, Ammo );


Example

if (cmd == "gimmeaweapon")
{
player.SetWeapon( 24, 999 );
MessagePlayer("you recieved a free m4!", player);
}