public plugin_init()
RegisterHookChain(RG_CBasePlayer_Killed, "EVENT_Killed_Pre", false);
public EVENT_Killed_Pre(iVictim, iAttacker, Corpse){ //
if(!isPlayer(iVictim) || !isPlayer(iAttacker))
return HC_IGNORED;
if(get_member(iVictim, m_LastHitGroup) != HITGROUP_HEAD)
return HC_IGNORED;
new Inflictor = get_entvar(iVictim, var_dmg_inflictor);
new ActiveItem = get_member(Inflictor, m_pActiveItem);
if(ActiveItem != -1) {
new wID = get_member(ActiveItem, m_iId);
if(wID ==WEAPON_AWP || wID ==WEAPON_DEAGLE)
SetHookChainArg(3, ATYPE_INTEGER, GIB_ALWAYS);
}
return HC_IGNORED;
}