This one works fine for me
PHP Code:
public fw_HamTakeDamage( iVictim , iInflictor , iAttacker , Float: fDamage , iBitDamage )
{
if ( ( iVictim != iAttacker ) || !iInflictor || !( iBitDamage & DMG_GRENADE ) )
{
return HAM_IGNORED;
}
new Float: fHealth;
pev( iVictim , pev_health , fHealth );
return ( fDamage >= fHealth ) ? HAM_SUPERCEDE : HAM_IGNORED;
}