Quote:
Originally Posted by CrazY.
|
Works:
HTML Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
const m_bOwnsShield = 2043;
public plugin_init()
{
RegisterHam(Ham_Item_Deploy, "weapon_knife", "Item_Deploy_Post", 1)
}
public Item_Deploy_Post(weapon)
{
new id = get_pdata_cbase(weapon, 41, 4)
client_print(id, print_chat, "You changed your weapon for a knife!")
if(get_pdata_bool(id, m_bOwnsShield) && get_pdata_cbase(weapon, 41, 4))
{
engclient_cmd(id, "drop", "weapon_shield")
}
return HAM_IGNORED
}
But I need the command not "drop", but the command strip_user_weapons (id, "weapon_shield") or ham_strip_weapon(id, "weapon_shield") or fm_strip_user_gun(id,"weapon_shield")
How do i do this?