Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-----------------------------BY NORK (NECROBG3)-------------------------------
- #include <a_samp>
- #define DIALOG_MUSIC_SKRILLEX 1
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Skrillex system by necrobg3 ( Nork )");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/skrillex", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, DIALOG_MUSIC_SKRILLEX, DIALOG_STYLE_LIST, "Skrillex", "Rock'n'Roll\nMy name is Skrillex\nBangarang\nScary Monsters And Nice Sprites\nFirst of the Year\nRuffneck\nRight In", "Ok", "Cancel");
- return 1;
- }
- if (strcmp("/stopmusic", cmdtext, true, 10) == 0)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MUSIC_SKRILLEX)
- {
- if(!response) return SendClientMessage(playerid, 0xFFFF00FF, "You have canceled the music selection menu.");
- switch(listitem)
- {
- case 0: //Rock'n'Roll
- {
- PlayAudioStreamForPlayer(playerid, "http://silencenogood.net/wordpress/wp-content/uploads/2012/01/01-Rock-N-Roll-Will-Take-You-to-the-Mountain.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Rock'n'Roll. Use /stopmusic to stop the music.");
- }
- case 1: //My name is Skrillex
- {
- PlayAudioStreamForPlayer(playerid, "http://newmuz.net/uploads/files/1339728572_skrillex-mynameisskrillex.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - My name is Skrillex. Use /stopmusic to stop the music.");
- }
- case 2: //Bangarang
- {
- PlayAudioStreamForPlayer(playerid, "http://bigtimebeats.com/wp-content/uploads/Bangarang-Skrillex-BIGTIMEBEATS.com_.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Bangarang. Use /stopmusic to stop the music.");
- }
- case 3: //Scary monsters and nice sprites
- {
- PlayAudioStreamForPlayer(playerid, "http://www.theelectrohouse.com/wp-content/uploads/2010/11/Scary-Monsters-and-Nice-Sprites.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Scary Monsters and Nice Sprites. Use /stopmusic to stop the music.");
- }
- case 4: //First of the year
- {
- PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_ly5tdoSrrZ1qg1djdo1.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - First of the Year. Use /stopmusic to stop the music.");
- }
- case 5: //Ruffneck
- {
- PlayAudioStreamForPlayer(playerid, "http://gooseparty.com/wp-content/uploads/2011/12/Ruffneck-Flex.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Ruffneck. Use /stopmusic to stop the music.");
- }
- case 6: //Right in
- {
- PlayAudioStreamForPlayer(playerid, "http://danglytunes.com/wp-content/uploads/2011/12/Skrillex-Right-In.mp3");
- SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Right in. Use /stopmusic to stop the music.");
- }
- }
- }
- return 1;
- }
- //-----------------------------BY NORK (NECROBG3)-------------------------------
Advertisement
Add Comment
Please, Sign In to add comment