#include <sdkhooks>
public void OnPluginStart()
{
for(int i = 1; i <= MaxClients; i++) if(IsClientInGame(i)) OnClientPutInServer(i);
}
public void OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
if(damage > 65.0 && victim != attacker && 0 < victim <= MaxClients && 0 < attacker <= MaxClients)
{
static char weapon[64];
GetClientWeapon(attacker, weapon, sizeof(weapon));
if(StrEqual(weapon, "weapon_knife", false))
{
damage = 65.0;
return Plugin_Changed;
}
}
return Plugin_Continue;
}