#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Korvegizene cime"
#define VERSION "1.0"
#define AUTHOR "Danii"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "SendAudio", "ctzene", "a", "2&%!MRAD_ctwin");
register_event( "SendAudio", "tzene" , "a", "2&%!MRAD_terwin");
}
public plugin_precache()
{
precache_sound("just_roundrs/just_round1.mp3")
precache_sound("just_roundrs/just_round2.mp3")
precache_sound("just_roundrs/just_round3.mp3")
precache_sound("just_roundrs/just_round4.mp3")
precache_sound("just_roundrs/just_round5.mp3")
precache_sound("just_roundrs/just_round6.mp3")
precache_sound("just_roundrs/just_round7.mp3")
precache_sound("just_roundrs/just_round8.mp3")
precache_sound("just_roundrs/just_round9.mp3")
precache_sound("just_roundrs/just_round10.mp3")
precache_sound("just_roundrs/just_round11.mp3")
precache_sound("just_roundrs/just_round12.mp3")
precache_sound("just_roundrs/just_round13.mp3")
precache_sound("just_roundrs/just_round14.mp3")
precache_sound("just_roundrs/just_round15.mp3")
precache_sound("just_roundrs/just_round16.mp3")
}
public ctzene()
{
switch (random_num(1, 8))
{
case 1 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round1.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t KrAAXbFemYU")
}
case 2 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round2.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Chris Brown feat. Tyga - Holla At Me")
}
case 3 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round3.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Meek Mill - I Be On That Feat. Nicki Minaj")
}
case 4 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round4.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Dope DOD - What Happened (Remix)")
}
case 5 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round5.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Mike Candys feat. Evelyn & Tony T - Everybody")
}
case 6 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round6.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t DELAYERS HOUSE 4 U")
}
case 7 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round7.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Club Summer Mix 2013")
}
case 8 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round8.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Best Remixes of 2013 January")
}
}
}
public tzene()
{
switch (random_num(1, 8))
{
case 1 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round9.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Mr.Busta - Rapfenomén")
}
case 2 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round10.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Naughty Boy - La La La ft. Sam Smith")
}
case 3 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round11.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t NOBODY MOVES - FRIENDS")
}
case 4 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round12.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t NOBODY MOVES - LIVING FOR THE WEEKEND")
}
case 5 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round13.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t NOBODY MOVES - ROCKSTAR")
}
case 6 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round14.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Tyga - Snapbacks Back feat Chris Brown")
}
case 7 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round15.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t Steve Aoki, Chris Lake & Tujamo - Boneless")
}
case 8 :
{
client_cmd(0, "mp3 play sound/just_roundrs/just_round16.mp3")
print_color(0, "!t[Körvégi zene]!g Ami most szól:!t DVBBS & Borgeous - TSUNAMI")
}
}
}
stock print_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "á", "á")
replace_all(msg, 190, "é", "Ă©")
replace_all(msg, 190, "í", "Ă")
replace_all(msg, 190, "ó", "Ăł")
replace_all(msg, 190, "ö", "ö")
replace_all(msg, 190, "ő", "Ĺ‘")
replace_all(msg, 190, "ú", "Ăş")
replace_all(msg, 190, "ü", "ĂĽ")
replace_all(msg, 190, "ű", "ű")
replace_all(msg, 190, "Á", "Ă")
replace_all(msg, 190, "É", "É")
replace_all(msg, 190, "Í", "ĂŤ")
replace_all(msg, 190, "Ó", "Ă“")
replace_all(msg, 190, "Ö", "Ă–")
replace_all(msg, 190, "Ő", "Ĺ")
replace_all(msg, 190, "Ú", "Ăš")
replace_all(msg, 190, "Ü", "Ăś")
replace_all(msg, 190, "Ű", "Ű")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i])
write_string(msg)
message_end()
}
}
}
return PLUGIN_HANDLED
}