ham_strip_user_weapon

Синтаксис

stock ham_strip_user_weapon(id, iCswId, iSlot = 0, bool:bSwitchIfActive = true)

Употреба

id:
Player id
iCswId:
Weapon CSW_* index
iSlot:
Inventory slot (Leave 0 if not sure)
bSwitchIfActive:
Switch weapon if currently deployed

Описание

ConnorMcLeod
http://forums.alliedmods.net/showpost.php?p=1109747&postcount=42

Strips a player's weapon based on weapon index.

Връщаща стойност

: 1 on success, otherwise 0

Ex:  ham_strip_user_weapon(id, CSW_M4A1);    // Strips m4a1 if user has one.
     ham_strip_user_weapon(id, CSW_HEGRENADE, _, false);     // Strips HE grenade if user has one
                                                      // without switching weapons.