Guest User

Skrillex Filterscript by necrobg3 ( Nork )

a guest
Sep 16th, 2012
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.25 KB | None | 0 0
  1.  
  2. //-----------------------------BY NORK (NECROBG3)-------------------------------
  3.  
  4. #include <a_samp>
  5.  
  6. #define DIALOG_MUSIC_SKRILLEX 1
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print("  Skrillex system by necrobg3 ( Nork )");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. public OnPlayerCommandText(playerid, cmdtext[])
  22. {
  23.     if (strcmp("/skrillex", cmdtext, true, 10) == 0)
  24.     {
  25.     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");
  26.     return 1;
  27.     }
  28.  
  29.     if (strcmp("/stopmusic", cmdtext, true, 10) == 0)
  30.     {
  31.     StopAudioStreamForPlayer(playerid);
  32.     return 1;
  33.     }
  34.    
  35.     return 0;
  36. }
  37.  
  38. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  39. {
  40.     if(dialogid == DIALOG_MUSIC_SKRILLEX)
  41.     {
  42.     if(!response) return SendClientMessage(playerid, 0xFFFF00FF, "You have canceled the music selection menu.");
  43.     switch(listitem)
  44.                 {
  45.                     case 0: //Rock'n'Roll
  46.                                 {
  47.                                     PlayAudioStreamForPlayer(playerid, "http://silencenogood.net/wordpress/wp-content/uploads/2012/01/01-Rock-N-Roll-Will-Take-You-to-the-Mountain.mp3");
  48.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Rock'n'Roll. Use /stopmusic to stop the music.");
  49.                                 }
  50.                                 case 1: //My name is Skrillex
  51.                                 {
  52.                                     PlayAudioStreamForPlayer(playerid, "http://newmuz.net/uploads/files/1339728572_skrillex-mynameisskrillex.mp3");
  53.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - My name is Skrillex. Use /stopmusic to stop the music.");
  54.                                 }
  55.                                 case 2: //Bangarang
  56.                                 {
  57.                                     PlayAudioStreamForPlayer(playerid, "http://bigtimebeats.com/wp-content/uploads/Bangarang-Skrillex-BIGTIMEBEATS.com_.mp3");
  58.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Bangarang. Use /stopmusic to stop the music.");
  59.                                 }
  60.                                 case 3: //Scary monsters and nice sprites
  61.                                 {
  62.                                     PlayAudioStreamForPlayer(playerid, "http://www.theelectrohouse.com/wp-content/uploads/2010/11/Scary-Monsters-and-Nice-Sprites.mp3");
  63.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Scary Monsters and Nice Sprites. Use /stopmusic to stop the music.");
  64.                                 }
  65.                                 case 4: //First of the year
  66.                                 {
  67.                                     PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_ly5tdoSrrZ1qg1djdo1.mp3");
  68.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - First of the Year. Use /stopmusic to stop the music.");
  69.                                 }
  70.                                 case 5: //Ruffneck
  71.                                 {
  72.                                     PlayAudioStreamForPlayer(playerid, "http://gooseparty.com/wp-content/uploads/2011/12/Ruffneck-Flex.mp3");
  73.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Ruffneck. Use /stopmusic to stop the music.");
  74.                                 }
  75.                                 case 6: //Right in
  76.                                 {
  77.                                     PlayAudioStreamForPlayer(playerid, "http://danglytunes.com/wp-content/uploads/2011/12/Skrillex-Right-In.mp3");
  78.                                     SendClientMessage(playerid, 0x00FFFFFF, "You are now listening Skrillex - Right in. Use /stopmusic to stop the music.");
  79.                                 }
  80.                 }
  81.         }
  82.        
  83.     return 1;
  84. }
  85.  
  86. //-----------------------------BY NORK (NECROBG3)-------------------------------
Advertisement
Add Comment
Please, Sign In to add comment