#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <fakemeta>
#include <cstrike>
#include <hamsandwich>
#include <colorchat>
new szerverprefix[] = "FeeLenG Körvégi"
new const zene_cimek [ ] [ ] =
{
"",
"Paul Kalkbrenner - Aaron (DjM Remix)",
"Meg & Dia - Monster (DotEXE Remix)",
"Atesz - Az a segg, az a mell (Dj.Louis, Devil, Miklov Club Mix)",
"AK26 - Edd Meg A Porom",
"Desue - Laptop",
"Lilly Wood _ The Prick and Robin Schulz Prayer In C _Robin Schulz",
"Newik - My Love",
"David Guetta - Lovers On The Sun _Stadiumx remix_",
"Stadiumx _ Taylr Renee - Howl At The Moon _Radio Edit_",
"Contiez Feat. Treyy G - Trumpsta (Djuro Remix)",
}
public plugin_precache(){
precache_sound("FeeLenGKorv/1.mp3")
precache_sound("FeeLenGKorv/2.mp3")
precache_sound("FeeLenGKorv/3.mp3")
precache_sound("FeeLenGKorv/4.mp3")
precache_sound("FeeLenGKorv/5.mp3")
precache_sound("FeeLenGKorv/6.mp3")
precache_sound("FeeLenGKorv/7.mp3")
precache_sound("FeeLenGKorv/8.mp3")
precache_sound("FeeLenGKorv/9.mp3")
precache_sound("FeeLenGKorv/10.mp3")
}
public plugin_init(){
register_plugin("Körvégi zene címmel","1.0", "DeRoiD")
register_event("SendAudio", "zene", "a", "2&%!MRAD_ctwin")
register_event("SendAudio", "zene", "a", "2&%!MRAD_terwin")
}
public zene(){
switch (random_num(1, 9)){
case 1 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/1.mp3")
ColorChat(0,BLUE,"^4[%s]^x03 Cim: %s",szerverprefix, zene_cimek[ 1 ] )
}
case 2 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/2.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 2 ] )
}
case 3 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/3.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 3 ] )
}
case 4 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/4.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 4 ] )
}
case 5 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/5.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 5 ] )
}
case 6 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/6.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 6 ] )
}
case 7 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/7.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 7 ] )
}
case 8 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/8.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 8 ] )
}
case 9 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/9.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 9 ] )
}
case 10 :{
client_cmd(0,"mp3 play sound/FeeLenGKorv/10.mp3")
ColorChat(0,BLUE,"^4[%s]^x01 Cim: %s",szerverprefix, zene_cimek[ 10 ] )
}
}
}
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
}