CS_DropWeapon Function

Forces a player to drop or toss their weapon

void CS_DropWeapon(int client, int weaponIndex, bool toss, bool blockhook)


int client

Player's index.

int weaponIndex

Index of weapon to drop.

bool toss

True to toss weapon (with velocity) or false to just drop weapon

bool blockhook

Set to true to stop the corresponding CS_OnCSWeaponDrop


Invalid client index, client not in game, or invalid weapon index.