EquipPlayerWeapon Function

Equip's a player's weapon.

void EquipPlayerWeapon(int client, int weapon)

Parameters

int client

Client index.

int weapon

CBaseCombatWeapon entity index.

Errors

Invalid client or entity, lack of mod support, or client not in game.