#include <amxmodx>
#include <cstrike>
#include <colorchat>
new bool:roundsound[33];
new maxPlayers;
new szPrefix[64] = "[GODLIKE]";
new const muzyka_tt[7][] = {
"None",
"sound/godlike/TT/1.mp3",
"sound/godlike/TT/2.mp3",
"sound/godlike/TT/3.mp3",
"sound/godlike/TT/4.mp3",
"sound/godlike/TT/5.mp3",
"sound/godlike/TT/6.mp3"
}
new const utwory_tt[7][] = {
"None",
"Aero Chord - Surface",
"Rammstein - Du Hast",
"Szanty - 24 Lutego Bijatyka",
"TAITO - Bounce! (Original Mix)",
"The Mavrik - Ya Blew It",
"Foo Fighters - The Pretender"
}
new const muzyka_ct[7][] = {
"None",
"sound/godlike/CT/1.mp3",
"sound/godlike/CT/2.mp3",
"sound/godlike/CT/3.mp3",
"sound/godlike/CT/4.mp3",
"sound/godlike/CT/5.mp3",
"sound/godlike/CT/6.mp3"
}
new const utwory_ct[7][] = {
"None",
"Disturbed - Down with the sickness",
"Imagine Dragons - Warriors",
"Martin Garri - Animals (Botnek Edit)",
"Showtek Ft. We Are Loud & Sonny Wilson - Booyah",
"Thirty seconds to Mars - This is war",
"Roy Jones jr - Cant Be Touched"
}
new ostatni_rs = 1;
new ostatni_rs_ct = 1;
public plugin_init()
{
register_plugin("RoundSound","1.0","oeN.")
register_event("SendAudio", "TT_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "CT_win", "a", "2&%!MRAD_ctwin");
register_clcmd("say /roundsound", "rs");
maxPlayers = get_maxplayers();
}
public client_connect( id ){
roundsound[ id ] = true;
}
public rs(id)
{
if(!roundsound[id]){
ColorChat(id, RED, "%s^x01 Roundsound^x04 wlaczony.", szPrefix);
roundsound[id] = true;
}
else if(roundsound[id]){
ColorChat(id, RED, "%s^x01 Roundsound^x04 wylaczony.", szPrefix);
roundsound[id] = false;
}
}
public TT_win()
{
for( new iPlayer = 1 ; iPlayer <= maxPlayers; iPlayer++){
if( !is_user_connected( iPlayer ) || !roundsound[ iPlayer ] ){
return;
}
client_cmd(iPlayer, "mp3 play %s", muzyka_tt[ostatni_rs]);
ColorChat(iPlayer, RED, "%s^x01 Gramy^x04 %s", szPrefix, utwory_tt[ostatni_rs])
if(ostatni_rs == 6)
ostatni_rs = 1;
else
ostatni_rs++;
}
}
public CT_win()
{
for( new iPlayer = 1 ; iPlayer <= maxPlayers; iPlayer++){
if( !is_user_connected( iPlayer ) || !roundsound[ iPlayer ] ){
return;
}
client_cmd(iPlayer, "mp3 play %s", muzyka_ct[ostatni_rs_ct]);
ColorChat(iPlayer, RED, "%s^x01 Gramy^x04 %s", szPrefix, utwory_ct[ostatni_rs_ct])
if(ostatni_rs_ct == 6)
ostatni_rs_ct = 1;
else
ostatni_rs_ct++;
}
}
public plugin_precache()
{
precache_generic("sound/godlike/TT/1.mp3");
precache_generic("sound/godlike/TT/2.mp3");
precache_generic("sound/godlike/TT/3.mp3");
precache_generic("sound/godlike/TT/4.mp3");
precache_generic("sound/godlike/TT/5.mp3");
precache_generic("sound/godlike/TT/6.mp3");
precache_generic("sound/godlike/CT/1.mp3");
precache_generic("sound/godlike/CT/2.mp3");
precache_generic("sound/godlike/CT/3.mp3");
precache_generic("sound/godlike/CT/4.mp3");
precache_generic("sound/godlike/CT/5.mp3");
precache_generic("sound/godlike/CT/6.mp3");
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
*/