SHARE
TWEET

[FS] MP3

GhostOwneD157 Feb 3rd, 2012 356 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.                                                    FS DE MP3
  4.                                         FEITO INTEIRAMENTE POR:
  5.                                                 LUCAS_ALEMAO.
  6.                                                
  7.                           Por Favor não retirar os creditos.
  8.                          
  9. */
  10.  
  11.  
  12.  
  13. #include <a_samp>
  14.  
  15. #define DIALOG_GERAL        3100
  16. #define DIALOG_SERTANEJO    3101
  17. #define DIALOG_BALADA       3102
  18. #define DIALOG_POP          3103
  19. #define DIALOG_ROCK         3104
  20.  
  21. #define AZUL                0x1BE0D3FF
  22.  
  23. new string[500];
  24.  
  25. new Musica[35][] = {
  26. "Faculdade da pinga - {53E01B}Joao carreiro e capataz\n",
  27. "Amo noite e dia - {53E01B}Jorge e mateus\n",
  28. "Alo To num Bar - {53E01B}Eric e Matheus\n",
  29. "Amor Covarde - {53E01B}Jorge e Mateus\n",
  30. "Ta Bagunçado mas tem gerencia - {53E01B}Joao carreiro e Capataz\n",
  31. "Ai se eu te pego - {53E01B}Michel Teló\n",
  32. "Party Rock Anthem - {53E01B}LMFAO\n",
  33. "Dont Stop The Party - {53E01B}Black Eyed Peas\n",
  34. "Danza Kuduro - {53E01B}Dom Omar\n",
  35. "Good Feeling - {53E01B}Flo Rida\n",
  36. "Turn Me On - {53E01B}David Guetta\n",
  37. "Moves Like Jagger - {53E01B}Maroon 5\n",
  38. "Give me Everything - {53E01B}Pitbull\n",
  39. "Dynamite - {53E01B}Taio Cruz\n",
  40. "Criminal - {53E01B}Britney Spears\n",
  41. "Mr Saxo Beat - {53E01B}Alexandra Stan\n",
  42. "Last Friday Night - {53E01B}katy Perry\n",
  43. "Só os loucos sabem - {53E01B}Charlie Brown\n",
  44. "The Lazy Song - {53E01B}Bruno Mars\n",
  45. "Just a Dream - {53E01B}Nelly\n",
  46. "Someone Like You - {53E01B}Adele\n",
  47. "Airplanes - {53E01B}Hailey Willians\n",
  48. "Billionaire - {53E01B}Travie Mccoy\n",
  49. "Lighters - {53E01B}Bruno Mars\n",
  50. "November Rain - {53E01B}Guns n Roses\n",
  51. "Otherside - {53E01B}Red Hot Chili Peppers\n",  
  52. "Break me Out - {53E01B}Mind Flow\n",
  53. "Back in Black - {53E01B}AC/DC\n",
  54. "The GodFather Theme - {53E01B}Slash\n",
  55. "Bring me to my Life - {53E01B}Evancescence\n",
  56. "Chop Suey - {53E01B}System Of a Down\n",
  57. "Californication - {53E01B}Red Hot Chili Peppers\n",
  58. "Sweet Child o Mine - {53E01B}Guns n' Roses\n",
  59. "Highway to Hell - {53E01B}AC/DC\n",
  60. "Blackout - {53E01B}Linkin park\n"
  61. };
  62.  
  63. new SertanejoLink[6][] = {
  64. "http://dc415.4shared.com/img/108160199/1db1b5eb/dlink__2Fdownload_2FYMrx7UET_3Ftsid_3D20120129-211346-f67cbc5f/preview.mp3",
  65. "http://dc359.4shared.com/img/279623899/7d6f899a/dlink__2Fdownload_2F1ferzQzI_3Ftsid_3D20120129-211533-59343d31/preview.mp3",
  66. "http://dc170.4shared.com/img/88636555/eb4d397/dlink__2Fdownload_2FI803yF50_3Ftsid_3D20120129-211636-d1d0e032/preview.mp3",
  67. "http://dc373.4shared.com/img/710339038/e5e45142/dlink__2Fdownload_2FGOdM7juu_3Ftsid_3D20120129-211849-223d97a5/preview.mp3",
  68. "http://dc307.4shared.com/img/243335700/bc147238/dlink__2Fdownload_2FmrxUaIJC_3Ftsid_3D20120129-212208-80d3cd4e/preview.mp3",
  69. "http://dc398.4shared.com/img/741412506/71e90c64/dlink__2Fdownload_2F-RrL4qgd_3Ftsid_3D20120129-212417-7ffd2213/preview.mp3"
  70. };
  71.  
  72. new BaladaLink[10][] = {
  73. "http://dc390.4shared.com/img/750669910/cabf9044/dlink__2Fdownload_2FAcUa8seK_3Ftsid_3D20120129-212759-f2ae0a8f/preview.mp3",
  74. "http://dc390.4shared.com/img/644264390/4994359f/dlink__2Fdownload_2FLzEbB9zn_3Ftsid_3D20120129-212912-aa09eb74/preview.mp3",
  75. "http://dc147.4shared.com/img/397552948/60c21981/dlink__2Fdownload_2F1A0mWeyg_3Ftsid_3D20120129-213103-f08fd99f/preview.mp3",
  76. "http://dc431.4shared.com/img/1083876634/b7a2aa3a/dlink__2Fdownload_2Fu9e1QRJQ_3Ftsid_3D20120129-213220-182a3eb0/preview.mp3",
  77. "http://dc424.4shared.com/img/753402899/5e1901e8/dlink__2Fdownload_2F7xa0TGEa_3Ftsid_3D20120129-213407-cce8cb97/preview.mp3",
  78. "http://dc395.4shared.com/img/688214940/d3826d2f/dlink__2Fdownload_2Fldmnw-sB_3Ftsid_3D20120129-213509-1d3fa0bb/preview.mp3",
  79. "http://dc386.4shared.com/img/720118072/6066efb5/dlink__2Fdownload_2FTdrOzu77_3Ftsid_3D20120129-213637-91bb6e3e/preview.mp3",
  80. "http://dc398.4shared.com/img/315994386/f57b8666/dlink__2Fdownload_2F4DZoyAMH_3Ftsid_3D20120129-213945-691731d8/preview.mp3",
  81. "http://dc380.4shared.com/img/647734857/ded5048f/dlink__2Fdownload_2FyRQkQ8ib_3Ftsid_3D20120129-214249-e8a80e86/preview.mp3",
  82. "http://dc309.4shared.com/img/860558964/aa2d65b3/dlink__2Fdownload_2FNSN_5FyoBz_3Ftsid_3D20120129-220209-1b43e83f/preview.mp3"
  83. };
  84.  
  85. new PopLink[8][] = {
  86. "http://dc444.4shared.com/img/754954713/e9fbd83f/dlink__2Fdownload_2FyKOpe8d2_3Ftsid_3D20120129-214417-41ac7039/preview.mp3",
  87. "http://dc221.4shared.com/img/183953109/a4d716be/dlink__2Fdownload_2FtYpTG4Rf_3Ftsid_3D20120129-214638-8c027e18/preview.mp3",
  88. "http://dc317.4shared.com/img/1092849472/4c377fc9/dlink__2Fdownload_2Fj4a7aN8F_3Ftsid_3D20120129-214829-4631a79/preview.mp3",
  89. "http://dc110.4shared.com/img/1085067915/f3904691/dlink__2Fdownload_2FCGrpggPr_3Ftsid_3D20120129-215301-5db5dea4/preview.mp3",
  90. "http://dc440.4shared.com/img/1098904081/3d696896/dlink__2Fdownload_2FNQvfPAjA_3Ftsid_3D20120129-215409-4c456848/preview.mp3",
  91. "http://dc226.4shared.com/img/361216240/bf5b58eb/dlink__2Fdownload_2FBdHCTTow_3Ftsid_3D20120129-215939-349e2c6/preview.mp3",
  92. "http://dc392.4shared.com/img/427715941/58aefc8/dlink__2Fdownload_2FTWLriG87_3Ftsid_3D20120129-220042-cf679c0d/preview.mp3",
  93. "http://dc444.4shared.com/img/833662179/14158514/dlink__2Fdownload_2F3hdX2srH_3Ftsid_3D20120129-220339-dbab47fa/preview.mp3"
  94. };
  95.  
  96. new RockLink[11][] = {
  97. "http://dc234.4shared.com/img/272508222/2d8cfe3a/dlink__2Fdownload_2F4ncEoOJ_5F_3Ftsid_3D20120129-235429-916f8e12/preview.mp3",
  98. "http://dc143.4shared.com/img/301894722/fc49f501/dlink__2Fdownload_2Fdf4_5Fgeq9_3Ftsid_3D20120129-235541-f4ef63ff/preview.mp3",
  99. "http://dc246.4shared.com/img/394952098/9c9786a5/dlink__2Fdownload_2FhnWlDwQH_3Ftsid_3D20120129-235715-33040aaf/preview.mp3",
  100. "http://dc263.4shared.com/img/348302095/d7f829ab/dlink__2Fdownload_2F6sDB9SAk_3Ftsid_3D20120129-235826-19429ef1/preview.mp3",
  101. "http://dc237.4shared.com/img/466430293/bbc8cbfa/dlink__2Fdownload_2Fpr_5FXMR_5FY_3Ftsid_3D20120130-000016-b3122dec/preview.mp3",
  102. "http://dc130.4shared.com/img/342332762/289b93dc/dlink__2Fdownload_2F2GYqNY9K_3Ftsid_3D20120130-000200-b51590bb/preview.mp3",
  103. "http://dc100.4shared.com/img/61422581/c3af21ce/dlink__2Fdownload_2FdZ1DK4Ci_3Ftsid_3D20120130-000722-9f817002/preview.mp3",
  104. "http://dc348.4shared.com/img/235587363/16db0a7c/dlink__2Fdownload_2FFgTHyWNc_3Ftsid_3D20120130-000859-ee043d92/preview.mp3",
  105. "http://dc357.4shared.com/img/236374458/d83f570d/dlink__2Fdownload_2FhdYiL1Wv_3Ftsid_3D20120130-001107-170d92f7/preview.mp3",
  106. "http://dc147.4shared.com/img/295806430/52789ab4/dlink__2Fdownload_2Fs-tvRsRM_3Ftsid_3D20120130-001451-4e6a03d/preview.mp3",
  107. "http://dc390.4shared.com/img/600267019/98673c6d/dlink__2Fdownload_2F4vjnF1gp_3Ftsid_3D20120130-001923-464f3192/preview.mp3"
  108. };
  109.  
  110. public OnFilterScriptInit()
  111. {
  112.         print("\nRodando FS de MP3 by Lucas Alemao\n");
  113.         return 1;
  114. }
  115.  
  116. public OnPlayerCommandText(playerid, cmdtext[])
  117. {
  118.         if(strcmp(cmdtext, "/mp3", true) == 0)
  119.         {
  120.             ShowPlayerDialog(playerid, DIALOG_GERAL, DIALOG_STYLE_LIST, "Qual estilo você quer ouvir?", "{FFFFFF}Sertanejo\r\nBalada\r\nPop\r\nRock\n\nDesligar MP3", "Ver", "Fechar");
  121.                 GameTextForPlayer(playerid, "~y~MP3 ~g~Ligado", 2000, 1);
  122.                 return 1;
  123.         }
  124.         return 0;
  125. }
  126. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  127. {
  128.         if(dialogid == DIALOG_GERAL)
  129.         {
  130.             if(response)
  131.             {
  132.                         if(listitem == 0)//SERTANEJO
  133.                         {
  134.                                 ShowPlayerDialog(playerid, DIALOG_SERTANEJO, DIALOG_STYLE_LIST, "Musicas", "Faculdade da pinga - {53E01B}Joao carreiro e capataz\nAmo noite e dia - {53E01B}Jorge e mateus\nAlo To num Bar - {53E01B}Eric e Matheus\nAmor Covarde - {53E01B}Jorge e Mateus\nTa Bagunçado mas tem gerencia - {53E01B}Joao carreiro e Capataz\nAi se eu te pego - {53E01B}Michel Teló", "Ouvir", "Voltar");
  135.                                 return 1;
  136.                         }
  137.                         if(listitem == 1)//BALADA
  138.                         {
  139.                             format(string, sizeof(string), "Party Rock Anthem - {53E01B}LMFAO\nDont Stop The Party - {53E01B}Black Eyed Peas\nDanza Kuduro - {53E01B}Dom Omar\nGood Feeling - {53E01B}Flo Rida\nTurn Me On - {53E01B}David Guetta\nMoves Like Jagger - {53E01B}Maroon 5\n");
  140.                             format(string, sizeof(string), "%sGive me Everything - {53E01B}Pitbull\nDynamite - {53E01B}Taio Cruz\nCriminal - {53E01B}Britney Spears\nMr Saxo Beat - {53E01B}Alexandra Stan", string);
  141.                                 ShowPlayerDialog(playerid, DIALOG_BALADA, DIALOG_STYLE_LIST, "Musicas", string, "Ouvir", "Fechar");
  142.                                 return 1;
  143.                         }
  144.                         if(listitem == 2)//POP
  145.                         {
  146.                             format(string, sizeof(string), "Last Friday Night - {53E01B}katy Perry\nSó os loucos sabem - {53E01B}Charlie Brown\nThe Lazy Song - {53E01B}Bruno Mars\nJust a Dream - {53E01B}Nelly\n");
  147.                             format(string, sizeof(string), "%sSomeone Like You - {53E01B}Adele\nAirplanes - {53E01B}Hailey Willians\nBillionaire - {53E01B}Travie Mccoy\nLighters - {53E01B}Bruno Mars", string);
  148.                                 ShowPlayerDialog(playerid, DIALOG_POP, DIALOG_STYLE_LIST, "Musicas", string, "Ouvir", "Fechar");
  149.                                 return 1;
  150.                         }
  151.                         if(listitem == 3)//ROCK
  152.                         {
  153.                             format(string, sizeof(string), "November Rain - {53E01B}Guns n Roses\nOtherside - {53E01B}Red Hot Chili Peppers\nBreak me Out - {53E01B}Mind Flow\nBack in Black - {53E01B}AC/DC\nThe GodFather Theme - {53E01B}Slash\n");
  154.                             format(string, sizeof(string), "%sBring me to my Life - {53E01B}Evancescence\nChop Suey - {53E01B}System Of a Down\nCalifornication - {53E01B}Red Hot Chili Peppers\nSweet Child o Mine - {53E01B}Guns n' Roses\nHighway to Hell - {53E01B}AC/DC\nBlackout - {53E01B}Linkin park", string);
  155.                             ShowPlayerDialog(playerid, DIALOG_ROCK, DIALOG_STYLE_LIST, "Musicas", string, "Ouvir", "Fechar");
  156.                             return 1;
  157.                         }
  158.                         if(listitem == 4)//desliga
  159.                         {
  160.                             StopAudioStreamForPlayer(playerid);
  161.                                 GameTextForPlayer(playerid, "~y~MP3 ~r~Desligado", 2000, 1);
  162.                                 return 1;
  163.                         }
  164.                         return 1;
  165.                 }
  166.         }
  167.         if(dialogid == DIALOG_SERTANEJO)
  168.         {
  169.             if(response)
  170.             {
  171.                 switch(listitem)
  172.                 {
  173.                     case 0: TocarSom(playerid, SertanejoLink[0], Musica[0]);
  174.                     case 1: TocarSom(playerid, SertanejoLink[1], Musica[1]);
  175.                     case 2: TocarSom(playerid, SertanejoLink[2], Musica[2]);
  176.                     case 3: TocarSom(playerid, SertanejoLink[3], Musica[3]);
  177.                     case 4: TocarSom(playerid, SertanejoLink[4], Musica[4]);
  178.                     case 5: TocarSom(playerid, SertanejoLink[5], Musica[5]);
  179.                         }
  180.                 } else { OnPlayerCommandText(playerid, "/mp3"); }
  181.         }
  182.         if(dialogid == DIALOG_BALADA)
  183.         {
  184.             if(response)
  185.             {
  186.                 switch(listitem)
  187.                 {
  188.                     case 0: TocarSom(playerid, BaladaLink[0], Musica[6]);
  189.                     case 1: TocarSom(playerid, BaladaLink[1], Musica[7]);
  190.                     case 2: TocarSom(playerid, BaladaLink[2], Musica[8]);
  191.                     case 3: TocarSom(playerid, BaladaLink[3], Musica[9]);
  192.                     case 4: TocarSom(playerid, BaladaLink[4], Musica[10]);
  193.                     case 5: TocarSom(playerid, BaladaLink[5], Musica[11]);
  194.                     case 6: TocarSom(playerid, BaladaLink[6], Musica[12]);
  195.                     case 7: TocarSom(playerid, BaladaLink[7], Musica[13]);
  196.                     case 8: TocarSom(playerid, BaladaLink[8], Musica[14]);
  197.                     case 9: TocarSom(playerid, BaladaLink[9], Musica[15]);
  198.                         }
  199.         } else { OnPlayerCommandText(playerid, "/mp3"); }
  200.         }
  201.     if(dialogid == DIALOG_POP)
  202.         {
  203.             if(response)
  204.             {
  205.                 switch(listitem)
  206.                 {
  207.                     case 0: TocarSom(playerid, PopLink[0], Musica[16]);
  208.                     case 1: TocarSom(playerid, PopLink[1], Musica[17]);
  209.                     case 2: TocarSom(playerid, PopLink[2], Musica[18]);
  210.                     case 3: TocarSom(playerid, PopLink[3], Musica[19]);
  211.                     case 4: TocarSom(playerid, PopLink[4], Musica[20]);
  212.                     case 5: TocarSom(playerid, PopLink[5], Musica[21]);
  213.                     case 6: TocarSom(playerid, PopLink[6], Musica[22]);
  214.                     case 7: TocarSom(playerid, PopLink[7], Musica[23]);
  215.                         }
  216.         } else { OnPlayerCommandText(playerid, "/mp3"); }
  217.         }
  218.         if(dialogid == DIALOG_ROCK)
  219.         {
  220.             if(response)
  221.             {
  222.                 switch(listitem)
  223.                 {
  224.                     case 0: TocarSom(playerid, RockLink[0], Musica[24]);
  225.                     case 1: TocarSom(playerid, RockLink[1], Musica[25]);
  226.                     case 2: TocarSom(playerid, RockLink[2], Musica[26]);
  227.                     case 3: TocarSom(playerid, RockLink[3], Musica[27]);
  228.                     case 4: TocarSom(playerid, RockLink[4], Musica[28]);
  229.                     case 5: TocarSom(playerid, RockLink[5], Musica[29]);
  230.                     case 6: TocarSom(playerid, RockLink[6], Musica[30]);
  231.                     case 7: TocarSom(playerid, RockLink[7], Musica[31]);
  232.                     case 8: TocarSom(playerid, RockLink[8], Musica[32]);
  233.                     case 9: TocarSom(playerid, RockLink[9], Musica[33]);
  234.                     case 10: TocarSom(playerid, RockLink[10], Musica[34]);
  235.                         }
  236.         } else { OnPlayerCommandText(playerid, "/mp3"); }
  237.         }
  238.  
  239.         return 1;
  240. }
  241.  
  242. stock TocarSom(playerid, url[], musica[])
  243. {
  244.         PlayAudioStreamForPlayer(playerid, url, 0, 0, 0, 20, 0);
  245.         SendClientMessage(playerid, AZUL, musica);
  246.         return 1;
  247. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top