RemovePlayerItem Function

Removes a player's item.

bool RemovePlayerItem(int client, int item)

Parameters

int client

Client index.

int item

CBaseCombatWeapon entity index.

Return Value

True on success, false otherwise.

Errors

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