/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#define PLUGIN "JayModSound"
#define AUTHOR "ReX"
#define VERSION "1.1"
#define prefix [JayMod]
new gSpree[33], gOFFT[33];
new gType, gFF, gType2;
new sounds[10][] =
{
"hon/cherrypopper.wav",
"hon/magical.wav",
"hon/hattrick.wav",
"hon/quadkill.wav",
"hon/bitchslapped.wav",
"hon/nemesis.wav",
"hon/ooohnooo.wav",
"hon/unicornstampede.wav",
"hon/annihilation.wav",
"hon/immortal.wav"
}
new spree[11] =
{
1,
2,
3,
4,
6,
8,
10,
12,
13,
15
}
new tSpree[10][] =
{
"CHERRY POPPER",
"MAGICAL",
"HAT TRICK",
"QUAD KILL",
"BITCH SLAPPED",
"NEMESIS",
"OOOH NOOO!",
"UNICORN STAMPEDE",
"ANNIHILATION",
"IMMORTAL"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg", "DeathMsg", "a");
register_logevent("new_round",2,"1=Round_Start")
register_cvar("jay_style","1");
register_cvar("jay_type","1");
register_cvar("jay_ff","0");
register_cvar("jay_off","1");
gType2 = get_cvar_num("jay_type");
gFF = get_cvar_num("jay_ff");
gType = get_cvar_num("jay_style");
}
public client_connect(id)
{
gOFFT[id] = 1;
}
public new_round()
{
if(gType)
{
for(new i=1; i <= get_maxplayers(); i++)
gSpree[i] = 0
}
}
public DeathMsg()
{
new kid = read_data(1);
new vid = read_data(2);
gSpree[vid] = 0;
if(get_user_team(kid) == get_user_team(vid) && gFF)
gSpree[kid] += 1;
if(get_user_team(kid) != get_user_team(vid))
gSpree[kid] += 1;
for(new i=0; i<6; i++)
{
if(gSpree[kid] == spree[i])
{
new name[32];
get_user_name(kid, name, 31);
client_cmd(0, "stopsound");
client_cmd(0, "mp3 stop");
if(gOFFT[kid])
client_cmd(0, "spk %s", sounds[i]);
switch(gType2)
{
case 0:
{
ColorChat(0, BLUE, "++++++++ ^x01 %s ^x03 ++++++++", tSpree[i]);
ColorChat(0, BLUE, "+++++++ ^x04 %s ^x03 +++++++", name, tSpree[i]);
ColorChat(0, BLUE, "++++++++ ^x04 %s ^x03 ++++++++", tSpree[i]);
}
case 1:
{
ColorChat(0, BLUE, "+++++++ ^x04 %s : %s ^x03 +++++++", name, tSpree[i]);
}
case 2:
{
ColorChat(0, GREEN, " %s %s!!!!", name, tSpree[i]);
}
}
}
}
}
public plugin_precache()
{
for(new i=0; i<6; i++)
{
precache_sound(sounds[i])
}
}