// Автор плагина: Leo_[BH] (http://vk.com/id64427766)
// Написание плагинов на заказ: http://vk.com/cs_rain
// У версии 1.1 исправлено звучание звука mp3
register_plugin("Music Connect", "1.1", "Leo_[BH]")
formatex(filepatch, charsmax(filepatch), "addons/amxmodx/configs/music_connect.ini")
if(file_exists(filepatch))
read_file(filepatch,0,buffer,charsmax(buffer),txtlen);
formatex(g_sound, charsmax(g_sound), buffer)
if (equal(g_sound[strlen(g_sound)-4], ".mp3"))
format(g_sound, charsmax(g_sound), "sound/%s", g_sound)
precache_generic(g_sound)
public client_putinserver(id)
set_task(0.2, "PlayMusic", id)
client_cmd(id, "mp3 play ^"%s^"", g_sound)
client_cmd(id, "spk ^"%s^"", g_sound)
// Другие мои плагины: http://vk.com/cs_rain