Advertisement
zp42O

Sistema de MP3

Dec 26th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.31 KB | None | 0 0
  1. // Leitor de MP3 v1.0 criado por zp42O //
  2. // Scripter: zp42O //
  3. // Ultima Modificação: 26/12/12 //
  4.  
  5. #include <a_samp>
  6.  
  7. #define FILTERSCRIPT
  8. #if defined FILTERSCRIPT
  9.  
  10.  
  11. #define COLOR_ORANGE 0xFF9900AA
  12.  
  13.  
  14. #pragma tabsize 0
  15.  
  16. #define DIALOG_MP3 1
  17.  
  18. public OnFilterScriptInit()
  19. {
  20.     print("\n--------------------------------------");
  21.     print(" Leitor de MP3 Carregado com Sucesso ");
  22.     print("--------------------------------------\n");
  23.     return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28.     return 1;
  29. }
  30.  
  31. #else
  32.  
  33. main()
  34. {
  35.     print("\n----------------------------------");
  36.     print(" Leitor de MP3 desactivado ");
  37.     print("----------------------------------\n");
  38. }
  39.  
  40. #endif
  41. public OnPlayerCommandText(playerid, cmdtext[])
  42. {
  43.     new string[100], pname[24];
  44.     GetPlayerName(playerid, pname, 24);
  45.  
  46.     if(strcmp("/mp3", cmdtext, true, 10) == 0)
  47.     {
  48.         ShowPlayerDialog(playerid, DIALOG_MP3, DIALOG_STYLE_LIST, "Leitor de MP3 V1.0", "SHM - Don't you worry Child\nAvicii - Levels (Original Mix)\nDavid Guetta - She Wolf\nSHM - Save The World Tonight\nM-3ox ft Heidrun - Beating of my heart\nSkrillex - First of the year (Equinox)\nAfrojack ft Shermanology - Can't Stop Me now\nSean Paul - She Doesn't Mind\nSebastian Ingrosso - Calling", "Tocar", "Cancelar");
  49.         return 1;
  50.     }
  51.  
  52.     if(strcmp("/creditos", cmdtext, true, 10) == 0)
  53.     {
  54.     SendClientMessage(playerid, COLOR_ORANGE, "Créditos:");
  55.     SendClientMessage(playerid, COLOR_ORANGE, "Scripter: zp42O");
  56.     SendClientMessage(playerid, COLOR_ORANGE, "Uploader: Bee Mp3");
  57.     SendClientMessage(playerid, COLOR_ORANGE, string);
  58.     return 1;
  59.     }
  60.     return 0;
  61. }
  62.  
  63.  
  64. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  65. {
  66.     if(dialogid == DIALOG_MP3)
  67.     {
  68.     switch(listitem)
  69.         {
  70.         case 0: //SHM - Dont you worry Child
  71.         {
  72.         PlayAudioStreamForPlayer(playerid, "http://houseanthems.com/wp-content/uploads/2012/08/Swedish-House-Mafia-feat.-John-Martin-Dont-You-Worry-Child-Radio-Edit-.mp3");
  73.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Don't you worry child ~<~",5000,3);
  74.         }
  75.         case 1: //Avicii - Levels (Original Mix)
  76.         {
  77.         PlayAudioStreamForPlayer(playerid, "http://assets.ngin.com/attachments/document/0022/0584/Avicii_-_Levels__Original_Mix_.mp3");
  78.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Levels (Original Mix) ~<~",5000,3);
  79.         }
  80.         case 2: //David Guetta - She Wolf (Extended Remix)
  81.         {
  82.         PlayAudioStreamForPlayer(playerid, "http://everythinglooksbrighter.files.wordpress.com/2012/08/david-guetta-feat-sia-she-wolf-falling-to-pieces-extended.mp3");
  83.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: She Wolf (Extended Remix) ~<~",5000,3);
  84.         }
  85.         case 3: //SHM - Save The World Tonight (Original Mix)
  86.         {
  87.         PlayAudioStreamForPlayer(playerid, "http://berta6.simsim.ge:8080/46/mp3/Swedish_House_Mafia-Save_The_World/01-swedish_house_mafia_-_save_the_world_(zedd_remix)-ume.mp3");
  88.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Save The World Tonight (Original Mix) ~<~",5000,3);
  89.         }
  90.         case 4: //M-3ox ft Heidrun - Beating of my heart
  91.         {
  92.         PlayAudioStreamForPlayer(playerid, "http://www.deejaycee.com/wp-content/uploads/2012/03/M-3ox-Ft.-Heidrun-Beating-Of-My-Heart-Matisse-Sadko-Remix.mp3");
  93.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Beating of my heart ~<~",5000,3);
  94.         }
  95.         case 5: //Skrillex - First of the year (Equinox)
  96.         {
  97.         PlayAudioStreamForPlayer(playerid, "http://dancelist.net/_uploadmusic/pmusic2012/84_1329607758_Skrillex-First_Of_The_Year_(Equinox)_(Original_mix).mp3");
  98.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: First of the year (Equinox) ~<~",5000,3);
  99.         }
  100.         case 6: //Afrojack ft Shermanology - Can't Stop Me now
  101.         {
  102.         PlayAudioStreamForPlayer(playerid, "http://m1.my.olam.uz/download/a/we/a6/qa/6c/wea6qa6c/name/Afrojack%20-%20Can't%20Stop%20Me%20Feat.%20Shermanology%20(U.S.%20Radio%20Edit)(music.olam.uz).mp3");
  103.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Can't Stop Me now ~<~",5000,3);
  104.         }
  105.         case 7: //Sean Paul - She Doesn't Mind
  106.         {
  107.         PlayAudioStreamForPlayer(playerid, "http://promodj.com/download/3759720/Sean Paul -  She Doesn\'t Mind (DJ ZoFF & Bacardi Night Mash up) (promodj.com).mp3");
  108.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: She Doesn't Mind ~<~",5000,3);
  109.         }
  110.         case 8: //Sebastian Ingrosso - Calling
  111.         {
  112.         PlayAudioStreamForPlayer(playerid, "http://promodj.com/download/2963439/Alesso_feat_Sebastian_Ingrosso_Calling_RENT_Bootleg.mp3");
  113.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ A tocar: Calling ~<~",5000,3);
  114.         }
  115.         case 9: //Desligar o Leitor
  116.         {
  117.         StopAudioStreamForPlayer(playerid); //Desligar o Leitor
  118.         GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ Desligas-te o Leitor ~<~",5000,3);
  119.         }
  120.        }
  121.       }
  122.       return 1;
  123.  
  124. }
  125.  
  126. //Não remover os créditos//
  127. //Edição permitida, apenas deixar os créditos//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement