Guest User

Fone de ouvido--BY:AKIRAH (saik)

a guest
Oct 1st, 2018
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.42 KB | None | 0 0
  1. //[FS]Fones de ouvido. BY:AKIRAH
  2.  
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print(" Fone de ouvido. BY:AKIRAH");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. #else
  22.  
  23. main()
  24. {
  25.     print("\n----------------------------------");
  26.     print(" Blank Gamemode by your name here");
  27.     print("----------------------------------\n");
  28. }
  29.  
  30. #endif
  31.  
  32. public OnPlayerSpawn(playerid)
  33. {
  34.     SendClientMessage(playerid,-1, "Escute suas musicas preferidas com nossos fones {08088A}/ajudafone");
  35.     return 1;
  36. }
  37.  
  38. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  39. {
  40.     if(dialogid == 2)
  41.     {
  42.         if(response)
  43.         {
  44.             switch(listitem)
  45.             {
  46.                 case 0:
  47.                 {
  48.                     ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Fone de ouvido", "{08088A}ANTENNE\n{298A08}RADIO ELECTRONIC\n{B45F04}REGGAE\n{B404AE}RADIO SOFRENCIA\n{FFFF00}RADIO HUNTER\n{DF0101}RAP\n{04B4AE}DUBSTEP\n{AC58FA}ANOS 2000\nDesligar", "Tocar", "");
  49.                 }
  50.                 case 1:
  51.                 {
  52.                     ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Fone de ouvido", "Setanejo\nFunk\nEletronica\nPop\nRock\nBlack", "Escolher", "Sair");
  53.                 }
  54.                 case 2:
  55.                 {
  56.                     ShowPlayerDialog(playerid, 20, DIALOG_STYLE_INPUT, "Fone de ouvido", "Coloque o link de sua musica em formato .mp3", "Tocar", "Sair");
  57.                 }
  58.             }
  59.         }
  60.         return 1;
  61.     }
  62.     if(dialogid == 3)
  63.     {
  64.         if(response)
  65.         {
  66.             switch(listitem)
  67.             {
  68.                 case 0://antenne
  69.                 {
  70.                     PlayAudioStreamForPlayer(playerid, "http://23.29.71.154:8140/streamTitle1%22");
  71.                 }
  72.                 case 1://radio electronic
  73.                 {
  74.                     PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/electronic%22");
  75.                 }
  76.                 case 2://reggae
  77.                 {
  78.                     PlayAudioStreamForPlayer(playerid, "http://64.71.79.181:9998/streamTitle1%22");
  79.                 }
  80.                 case 3://sofrencia
  81.                 {
  82.                     PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/country%22");
  83.                 }
  84.                 case 4://hunter
  85.                 {
  86.                     PlayAudioStreamForPlayer(playerid, "http://listen.shoutcast.com:80/Radio...HitzChannel%22");
  87.                 }
  88.                 case 5://rap
  89.                 {
  90.                     PlayAudioStreamForPlayer(playerid, "http://aovivo.radiowestside.com.br:9470/%22");
  91.                 }
  92.                 case 6://dub
  93.                 {
  94.                     PlayAudioStreamForPlayer(playerid, "http://148.251.91.15:7002/%22");
  95.                 }
  96.                 case 7://2000
  97.                 {
  98.                     PlayAudioStreamForPlayer(playerid, "http://listen.shoutcast.com/radiohun...hitschannel%22");
  99.                 }
  100.                 case 8://off
  101.                 {
  102.                     StopAudioStreamForPlayer(playerid);
  103.                 }
  104.             }
  105.         }
  106.         return 1;
  107.  
  108.     }
  109.     if(dialogid == 4)
  110.     {
  111.         if(response)
  112.         {
  113.             switch(listitem)
  114.             {
  115.                 case 0://sertanejo
  116.                 {
  117.                     ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Musicas", "Não fala não pra mim\nCarência\nPodia ser a gente", "Tocar", "Sair");
  118.                 }
  119.                 case 1://Funk
  120.                 {
  121.                     ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Musicas", "Amor de verdade\nPaPum\nSó quer vrau", "Tocar", "Sair");
  122.                 }
  123.                 case 2://eletronica
  124.                 {
  125.                     ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Musicas", "Diamonds (extended mix)\nTogethe\nSomebody to love", "Tocar", "Sair");
  126.                 }
  127.                 case 3://pop
  128.                 {
  129.                     ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Musicas", "Eu vou arrasar\nMeu abrigo\nMedo de amar", "Tocar", "Sair");
  130.                 }
  131.                 case 4://rock
  132.                 {
  133.                     ShowPlayerDialog(playerid, 9, DIALOG_STYLE_LIST, "Musicas", "Quero te adorar\nNão sou perfeito\nè tudo ou nada", "Tocar", "Sair");
  134.                 }
  135.                 case 5://black
  136.                 {
  137.                     ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Musicas", "Estamira\nW raimundo - feat enio\nSwag", "Tocar", "Sair");
  138.                 }
  139.                
  140.             }
  141.         }
  142.         return 1;
  143.     }
  144.     if(dialogid == 5)//sertanejo
  145.     {
  146.         if(response)
  147.         {
  148.             switch(listitem)
  149.             {
  150.                 case 0://não fala não pra mim
  151.                 {
  152.                     PlayAudioStreamForPlayer(playerid, "https://griphon-g1.sscdn.co/palcomp3/7/8/7/a/humbertoeronaldo-nao-fala-nao-pra-mim-bn-mix02-ac18f3a3.mp3");
  153.                 }
  154.                 case 1://car~encia
  155.                 {
  156.                     PlayAudioStreamForPlayer(playerid, "https://griphon-g2.sscdn.co/palcomp3/1/e/5/d/humbertoeronaldo-carencia-5788a7bb.mp3");
  157.                 }
  158.                 case 2://podia ser a gente
  159.                 {
  160.                     PlayAudioStreamForPlayer(playerid, "https://pegasus-g4.sscdn.co/palcomp3/2/8/1/3/humbertoeronaldo-podia-ser-a-gente-7649e01d.mp3");
  161.                 }
  162.             }
  163.         }
  164.     }
  165.     if(dialogid == 6)//funk
  166.     {
  167.         if(response)
  168.         {
  169.             switch(listitem)
  170.             {
  171.                 case 0://amor de verdade
  172.                 {
  173.                     PlayAudioStreamForPlayer(playerid, "https://griphon-g5.sscdn.co/palcomp3/5/b/1/7/mckekel-mc-rita-e-indecisa-o-dj-rd-d17b43d8.mp3");
  174.                 }
  175.                 case 1://papum
  176.                 {
  177.                     PlayAudioStreamForPlayer(playerid, "https://pegasus-g4.sscdn.co/palcomp3/7/7/4/4/kevinho-pa-pum-dj-rd-37b2037c.mp3");
  178.                 }
  179.                 case 2://so quer vrau
  180.                 {
  181.                     PlayAudioStreamForPlayer(playerid, "https://phoenix-g5.sscdn.co/palcomp3/f/3/d/d/mcmm-e-dj-rd-so-quer-vrau-70241d42.mp3");
  182.                 }
  183.             }
  184.         }
  185.     }
  186.     if(dialogid == 7)//eletronica
  187.     {
  188.         if(response)
  189.         {
  190.             switch(listitem)
  191.             {
  192.                 case 0://Diamonds
  193.                 {
  194.                     PlayAudioStreamForPlayer(playerid, "https://phoenix-g5.sscdn.co/palcomp3/d/7/2/9/katryyx-diamonds-extended-mix-9daf9a22.mp3");
  195.                 }
  196.                 case 1://Togethe
  197.                 {
  198.                     PlayAudioStreamForPlayer(playerid, "https://mermaid-g2.sscdn.co/palcomp3/7/4/6/1/dinsideproject-togethe-exclusiva-palco-mp3-09caf563.mp3");
  199.                 }
  200.                 case 2://somebody to love
  201.                 {
  202.                     PlayAudioStreamForPlayer(playerid, "https://mermaid-g1.sscdn.co/palcomp3/0/2/4/c/mattsowza-somebody-to-love-3dfc3ae7.mp3");
  203.                 }
  204.             }
  205.         }
  206.     }
  207.     if(dialogid == 8)//pop
  208.     {
  209.         if(response)
  210.         {
  211.             switch(listitem)
  212.             {
  213.                 case 0://eu vou arrasar
  214.                 {
  215.                     PlayAudioStreamForPlayer(playerid, "https://pegasus-g2.sscdn.co/palcomp3/8/a/3/4/camilaloures-eu-vou-arrasar-1a2b1bfd.mp3");
  216.                 }
  217.                 case 1://meu abrigo
  218.                 {
  219.                     PlayAudioStreamForPlayer(playerid, "https://pegasus-g2.sscdn.co/palcomp3/b/9/c/2/Melimoficial-meu-abrigo-e8f3b70b.mp3");
  220.                 }
  221.                 case 2://medo de amar
  222.                 {
  223.                     PlayAudioStreamForPlayer(playerid, "https://phoenix-g5.sscdn.co/palcomp3/d/b/7/a/andreportooficial-medo-de-amar-37b1bcb9.mp3");
  224.                 }
  225.             }
  226.         }
  227.     }
  228.     if(dialogid == 9)//rock
  229.     {
  230.         if(response)
  231.         {
  232.             switch(listitem)
  233.             {
  234.                 case 0://quero te adorar
  235.                 {
  236.                     PlayAudioStreamForPlayer(playerid, "https://griphon-g5.sscdn.co/palcomp3/9/9/e/b/montesalez-quero-te-adorar-16697aa9.mp3");
  237.                 }
  238.                 case 1://não sou perfeito
  239.                 {
  240.                     PlayAudioStreamForPlayer(playerid, "https://dragon-g5.sscdn.co/palcomp3/7/a/f/7/vienarockoficial-nao-sou-perfeito-e7489be4.mp3?");
  241.                 }
  242.                 case 2://é tudo ou nada
  243.                 {
  244.                     PlayAudioStreamForPlayer(playerid, "https://phoenix-g4.sscdn.co/palcomp3/1/d/3/a/amarcura-o-tudo-e-nada-27a70576.mp3?");
  245.                 }
  246.             }
  247.         }
  248.     }
  249.     if(dialogid == 10)//black
  250.     {
  251.         if(response)
  252.         {
  253.             switch(listitem)
  254.             {
  255.                 case 0://estamira
  256.                 {
  257.                     PlayAudioStreamForPlayer(playerid, "https://dragon-g4.sscdn.co/palcomp3/a/9/0/8/yzaluoficial-estamira-ela-nao-sabe-a-forca-que-ela-tem-59060075.mp3");
  258.                 }
  259.                 case 1://w raimundo-feat enio
  260.                 {
  261.                     PlayAudioStreamForPlayer(playerid, "https://mermaid-g3.sscdn.co/palcomp3/b/e/d/e/irmaocarlosoficial-w-raimundo-feat-enio-d49a2689.mp3?");
  262.                 }
  263.                 case 2://swag
  264.                 {
  265.                     PlayAudioStreamForPlayer(playerid, "https://pegasus-g3.sscdn.co/palcomp3/3/b/9/c/palcoyudi-02-yudi-sweg-feat-mael-e-diamante-prodbydmax-mp3-c95ebe.mp3?");
  266.                 }
  267.             }
  268.         }
  269.     }
  270.     if(dialogid == 20)
  271.     {
  272.         if(response)
  273.         {
  274.             PlayAudioStreamForPlayer(playerid, inputtext);
  275.         }
  276.     }
  277.     return 1;
  278. }
  279.  
  280. CMD:ajudafone(playerid)
  281. {
  282.     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Ajuda fones-BY:AKIRAH", "{F6F4F2}Para usar seu fone use {17AB12}/pegarfones {F6F4F2} e escolha\nentre radios, musicas ou colocar suas proprias\nmusicas.\n\n\nAcha que o fone não esta correto em sua skin?\nuse {17AB12}/acomodarfones {F6F4F2} e escolha a posição certa\n para sua skin.\n\n\nCansou de ouvir musicas? simples guarde seu\n fone, use {17AB12}/guardarfones{F6F4F2}.", "ok", "");
  283.     return 1;
  284. }
  285.  
  286. CMD:pegarfone(playerid)
  287. {
  288.     ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Fone de ouvidos", "Radios\nMusicas\nMinhas musicas", "Ok", "Sair");
  289.     SendClientMessage(playerid, -1, "Você colocou o fone de ouvido");
  290.     SetPlayerAttachedObject(playerid, 0, 19423, 2, 0.1200,0.04, -0.0035,0,100,100,1.4,1.4,1.4);
  291.     return 1;
  292. }
  293.  
  294. CMD:guardarfone(playerid)
  295. {
  296.     SendClientMessage(playerid, -1, "Você guardou o fone de ouvido");
  297.     RemovePlayerAttachedObject(playerid, 0);
  298.     StopAudioStreamForPlayer(playerid);
  299.     return 1;
  300. }
  301.  
  302. CMD:acomodarfone(playerid)
  303. {
  304.     SendClientMessage(playerid, -1,"acomode seu fone de acordo com sua skin");
  305.     EditAttachedObject(playerid, 0);
  306.     return 1;
  307. }
Advertisement
Add Comment
Please, Sign In to add comment