commit d057d1282e04ce8a4debc84c443a6b26e883cd48 Author: AurZum Date: Thu Dec 24 23:25:06 2015 +0300 Ver 1.0 diff --git a/amx_playlist_menu.amxx b/amx_playlist_menu.amxx new file mode 100644 index 0000000..e803109 Binary files /dev/null and b/amx_playlist_menu.amxx differ diff --git a/amx_playlist_menu.sma b/amx_playlist_menu.sma new file mode 100644 index 0000000..e8ba815 --- /dev/null +++ b/amx_playlist_menu.sma @@ -0,0 +1,147 @@ +/* Plugin generated by AMXX-Studio */ + +#include +#include + +#define PLUGIN "AMX Menu Playlistt" +#define VERSION "1.0" +#define AUTHOR "AurZum" + +#define MAX_SONGS 10 + +new configsdir[200] +new configfile[200] +new song[MAX_SONGS][64] +new songdir[MAX_SONGS][64] +new bool:precached[MAX_SONGS] +new indexs[MAX_SONGS] + +public plugin_init() { + register_plugin(PLUGIN, VERSION, AUTHOR) + register_clcmd("amx_playlist_menu", "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. ") + register_concmd("amx_stopplay","cmd_stop",ADMIN_LEVEL_E," Stops currently playing sounds/music. ") + 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