#include <amxmodx>
#include <fun>
#define KILL_GLOW 30
#define COLOR_GLOW random_num(0, 255), random_num(0, 255), random_num(0, 255)
#define is_sound_wav(%1) equali( %1[strlen( %1 ) - 4 ], ".wav" )
new g_Kills[33];
new const Sound[]="carpeta/sonido.wav" //TAMBIEN SIRVE PARA MP3
public plugin_init()
{
register_plugin("Glow 30k", "0.1", "Ale-.")
register_event("DeathMsg", "DeathMsg", "a")
}
public DeathMsg()
{
new Atacante = read_data(1)
new Victima = read_data(2)
if(Victima == Atacante || !is_user_connected(Victima) || !is_user_connected(Atacante))
return;
g_Kills[Atacante]++
g_Kills[Victima]=0
Chequeo(Atacante)
}
Chequeo(id)
{
if(g_Kills[id] >= 30)
{
g_Kills[id] = 0 //REINICIAMOS LA VARIABLE DE LOS KILLS A 0 DE NUEVO.
set_user_rendering(id, kRenderFxNone, COLOR_GLOW, kRenderNormal, 0) //LE DAMOS GLOW
if(is_sound_wav(Sound)) client_cmd(id, "spk %s", Sound) //HACEMOS
else client_cmd(id, "mp3 play sound/%s", Sound) //QUE SUENE
}
}