So, Something like this will be good ?
PHP Code:
public fwTakeDamagePre( victim, inflictor, attacker, Float:damage, damage_bits )
{
if ( IsPlayer( attacker ) && g_bHasSuperKnife[ attacker ] && is_user_alive( attacker ) && inflictor == attacker && get_user_weapon( attacker ) == CSW_KNIFE )
{
if( pev( iAttacker, pev_button ) & IN_ATTACK )
{
SetHamParamFloat( 4, damage + 15 );
}
else
{
SetHamParamFloat( 4, damage + 100 );
}
}
}