// Original by Kia Armani, added cvar for enable/disable by Jhob94
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ACE"
#define VERSION "1.0"
#define AUTHOR "amxmodx.lt"
new g_iKills[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "Event_DeathMsg", "a")
register_event("HLTV", "Event_HLTV_New_Round", "a", "1=0", "2=0")
}
public client_putinserver(id)
{
g_iKills[id] = 0
}
public Event_DeathMsg()
{
new iKiller = read_data(1)
g_iKills[iKiller] ++
if (g_iKills[iKiller] < 4)
return PLUGIN_CONTINUE;
new szName[32]
get_user_name(iKiller, szName, charsmax(szName))
if(g_iKills[iKiller] == 4)
{
set_hudmessage(255, 255, 255, 0.04, 0.45, 0, 6.0, 6.0)
show_hudmessage(0, "%s padare mini ACE!", szName)
}
if(g_iKills[iKiller] == 5)
{
set_hudmessage(255, 255, 255, 0.04, 0.55, 0, 6.0, 6.0)
show_hudmessage(0, "%s padare ACE!", szName)
}
return PLUGIN_CONTINUE;
}
public Event_HLTV_New_Round()
{
arrayset(g_iKills, 0, 33)
}
Norėdamas rašyti pranešimą privalai prisijungti arba užsiregistruoti!
Šita tema neturi atsakymų! Būk pirmas!