#include #include #define PLUGIN "AMX Media Player" #define VERSION "1.1.2" #define AUTHOR "AurZum (EpicMorg)" #define MAX_SONGS 10 //set number of songs you want, default 10 #define SIZE_CONFIG_DIR 200 #define SIZE_SONG_DIR 256 new configsdir[SIZE_CONFIG_DIR] new configfile[SIZE_CONFIG_DIR] new song[MAX_SONGS][SIZE_SONG_DIR] new songdir[MAX_SONGS][SIZE_SONG_DIR] new bool:precached[MAX_SONGS] new indexs[MAX_SONGS] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_dictionary("amx_show_playlist.txt"); register_clcmd("amx_show_playlist", "show_palylist_menu", ADMIN_LEVEL_E, ""); //register_concmd("amx_play","cmd_play",ADMIN_LEVEL_E," ") //register_concmd("amx_playlist","cmd_playlist",ADMIN_LEVEL_E," Displays a list of songs in the server playlist. ") new line[64]; formatex(line, charsmax(line), "%L", "MSG1"); register_concmd("amx_stopplay","cmd_stop",ADMIN_LEVEL_E,line); register_clcmd("say /stop","cl_cmd_stop"); } public show_palylist_menu(id, lvl, cid) { if(!cmd_access(id, lvl, cid, 0)) return PLUGIN_HANDLED; new menu = menu_create("Playlist Menu", "mh_MyMenu"); for(new i=0;i