Scripting/Server/Classes/Player/SetWeapon

Gives a weapon (WEP_*, ids 0-12) and ammo, and makes it the active weapon.

Syntax

player.SetWeapon(weapon, ammo)

Arguments

Example

function onPlayerSpawn( player, classID )
{
	player.SetWeapon( WEP_AK47, 250 );
}

Section: Player

Categories: Server methods | Player