Try this.. If you don't want knife to count either, change "( DMG_BULLET | DMG_SLASH )" to just "DMG_BULLET"
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
const m_LastHitGroup = 75;
public plugin_init()
{
RegisterHam( Ham_TakeDamage , "player" , "HamTakeDamage" );
}
public HamTakeDamage( victim , inflictor , attacker , Float:fDamage , bitDamage )
{
if ( ( get_pdata_int( victim , m_LastHitGroup ) == HIT_HEAD ) && ( bitDamage & ( DMG_BULLET | DMG_SLASH ) ) )
{
SetHamParamFloat( 4 , 999.0 );
return HAM_HANDLED;
}
return HAM_IGNORED;
}
__________________