#include <amxmodx>
#include <reapi>
new g_iHudSync, g_Kills[33];
public plugin_init()
{
RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed_Post", true);
RegisterHookChain(RG_CSGameRules_RestartRound, "CSGameRules_RestartRound_Pre", false);
g_iHudSync = CreateHudSyncObj();
}
public CSGameRules_RestartRound_Pre()
arrayset(g_Kills, 0, sizeof g_Kills);
public CBasePlayer_Killed_Post(const victim, id)
{
if(!is_user_connected(id) || id == victim) return;
if(++g_Kills[id] == 5)
{
client_cmd(id, "spk sound/papka/sound.wav");
set_hudmessage(255, 255, 255, -1.0, 0.30, .holdtime = 6.0, .channel = -1);
ShowSyncHudMsg(id, g_iHudSync, "Вы убили 5х игроков. Ееебой");
}
}
public plugin_precache()
precache_generic("sound/papka/sound.wav");