CS_DropWeapon

Last Updated2016-05-21
Created At2011-06-26

Forces a player to drop or toss their weapon

native void CS_DropWeapon(int client, int weaponIndex, bool toss, bool blockhook = false)

Parameters

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

Return Value

void

Error

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