PHP Code:
public OnTraceAttack(iVictim, iAttacker, Float:flDamage, Float:vecDirection[3], iTrHandle, bitsDamageType)
{
if(bitsDamageType == (DMG_BULLET|DMG_NEVERGIB) // specific knife damage mask
&& is_user_alive(iAttacker) // some dmgs can be done while user is dead, so you are checking if attacker it's player also
&& get_user_weapon(iAttacker) == CSW_KNIFE
&& flDamage == 192.0)
{
client_print(0, print_chat, "Hey! I've attacked you from behind 6969")
}
}
__________________