Вот код
Код
#include <sourcemod>
#include <sdktools>
public OnPluginStart()
{
HookEvent("player_hurt", Hurt);
}
public Hurt(Handle:event, const String:name[], bool:dontBroadcast)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
if(attacker && attacker != GetClientOfUserId(GetEventInt(event, "userid")))
{
new dmg = GetEventInt(event, "dmg_health"),
hp = GetEventInt(event, "health");
if (dmg < hp) PrintCenterText(attacker, "Ник: %N\n-%i : %i", client, dmg, hp);
if (hp == 0) PrintCenterText(attacker, "-%i : УБИТ", dmg);
}
}
Сам плагин