public fw_takedamage(iClient, iInflictor, iAttacker, Float:fDamage, m_Damagebits) { if(~m_Damagebits & (DMG_BULLET | DMG_NEVERGIB )) return HAM_IGNORED; // if not knife attack return; //some yours conditions here // no needs to checking on attacker becouse it's knife attack. No needs to check victim if (!you_condition) return HAM_IGNORED;