Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Basic Music Filterscript Loaded...");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- cmd(playmusic, playerid, params[])
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST ,"Select a Genre","Heavy Metal\nRock\nRap","Select","Cancel");
- return 1;
- }
- cmd(stopmusic, playerid, params[])
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST ,"Heavy Metal","The Death of Me\nAmerika\nAbout That Life\nAngel of Death\nHoly Wars","Select","Cancel");
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST ,"Rock","Saviour","Select","Cancel");
- }
- if(listitem == 2)
- {
- ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST ,"Rap/Hip Hop","I Gave You Power","Select","Cancel");
- }
- }
- }
- if(dialogid == 2)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_mkejr7acEm1rbuu02o1.mp3");
- GameTextForPlayer(playerid, "~r~The Death of Me ~y~- ~g~Asking Alexandria",5000,1);
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://tegos.ru/mp3_rus/rock/Rammstein_-_America.mp3");
- GameTextForPlayer(playerid, "~r~Amerika ~y~- ~g~Rammstein",5000,1);
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_mnbxv7yrvj1qkcrqbo1.mp3");
- GameTextForPlayer(playerid, "~r~About That Life ~y~- ~g~Attila",5000,1);
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid, "http://reviewstalker.com/wp-content/uploads/2013/01/01-Angel-Of-Death.mp3");
- GameTextForPlayer(playerid, "~r~Angel of Death ~y~- ~g~Slayer",5000,1);
- }
- if(listitem == 4)
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m59mdoQcX41r44txlo1.mp3");
- GameTextForPlayer(playerid, "~r~Holy Wars ~y~- ~g~Megadeth",5000,1);
- }
- }
- }
- if(dialogid == 3)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_luveoraytg1qg9louo1.mp3");
- GameTextForPlayer(playerid, "~r~Saviour ~y~- ~g~Rise Against",5000,1);
- }
- }
- }
- if(dialogid == 4)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://n2.vmuzike.net/music/Nas/I_Gave_You_Power.mp3");
- GameTextForPlayer(playerid, "~r~I Gave You Power ~y~- ~g~Nas",5000,1);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement