#include "amxmodx.inc"
#include "hamsandwich.inc"
new g_killsCounter[MAX_PLAYERS + 1][MAX_PLAYERS + 1]
public plugin_init() {
register_plugin("Kill announce", "1.0.0", "Dev-CS.ru")
RegisterHamPlayer(Ham_Killed, "CBasePlayer_Killed", .Post = true)
}
public client_putinserver(id) {
arrayset(g_killsCounter[id], 0, sizeof(g_killsCounter[]))
}
public CBasePlayer_Killed(const id, const attacker, const gib) {
if(id == attacker || ExecuteHam(Ham_IsPlayer, attacker) == false) {
return
}
g_killsCounter[attacker][id]++
client_print(0, print_chat, "%n killed %n (%i times)",
attacker, id, g_killsCounter[attacker][id]
)
}