Rapha3L

[FS] Sistema de Rádio

Jul 4th, 2013
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.14 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. //                              Sistema de Rádio                              //
  3. ////////////////////////////////////////////////////////////////////////////////
  4. // Script: Sistema de Rádio                                                   //
  5. // Autor: Rapha3L                                                             //
  6. // Fórum SA-MP: http://forum.sa-mp.com/member.php?u=205070                   //
  7. // PasteBin: http://pastebin.com/u/Rapha3L                                    //
  8. // Versão: Beta 1.0                                                           //
  9. // Ultima Modificação: 04/07/2013                                             //
  10. // Linhas Script: 91                                                          //
  11. // Tempo de Programação: 2 Horas                                              //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. //                           Informações Do Autor                             //
  14. ////////////////////////////////////////////////////////////////////////////////
  15. // Não retirar os créditos.                                                   //
  16. // Não fazer mirrors dos links de download                                   //
  17. // Não publicar noutros sites sem o meu consentimento.                        //
  18. ////////////////////////////////////////////////////////////////////////////////
  19. //                               Outros Créditos                              //
  20. ////////////////////////////////////////////////////////////////////////////////
  21. // SA:MP Wiki - Tuturiais e Explicações                                       //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. //                                   HAVE FUN                                 //
  24. ////////////////////////////////////////////////////////////////////////////////
  25.  
  26. #include <a_samp>
  27. #include <zcmd>
  28.  
  29. #if defined FILTERSCRIPT
  30.  
  31. #else
  32.  
  33. #endif
  34.  
  35.  
  36. CMD:radio(playerid, params[])
  37. {
  38.     ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"Lista de Rádios","#1 - House Box\r\n#2 - The Hate u Gave FM\r\n#3 - Portugal Fun Maps\r\n#4 - Orbital FM\r\n#5 - MegaHits FM ","Selecionar", "Cancelar");
  39.     return 1;
  40. }
  41. CMD:radioff(playerid, params[])
  42. {
  43.     StopAudioStreamForPlayer(playerid);
  44.     return 1;
  45. }
  46.  
  47.  
  48. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  49. {
  50.     switch(dialogid)
  51.     {
  52.         case 90:
  53.         {
  54.             if(!response)
  55.             {
  56.                     SendClientMessage(playerid, 0x42F3F198, "Desligas-te o Rádio.");
  57.                     return 1;
  58.             }
  59.  
  60.             switch(listitem)
  61.             {
  62.                 case 0:
  63.                 {
  64.                     PlayAudioStreamForPlayer(playerid, "http://housebox.pt/housebox.pls");
  65.                     SendClientMessage(playerid, 0x42F3F198, "HouseBoxFM - Digita /radioff para desligares o Rádio.");
  66.                 }
  67.                 case 1:
  68.                 {
  69.                     PlayAudioStreamForPlayer(playerid, "http://193.164.131.215:9992/listen.pls");
  70.                     SendClientMessage(playerid, 0x42F3F198, "TheHateUGaveFM - Digita /radioff para desligares o Rádio.");
  71.                 }
  72.                 case 2:
  73.                 {
  74.                     PlayAudioStreamForPlayer(playerid, "http://radiocp.route-games.com:2199/tunein/rg1061.pls");
  75.                     SendClientMessage(playerid, 0x42F3F198, "Portugal Fun Maps FM - Digita /radioff para desligares o Rádio.");
  76.                 }
  77.                 case 3:
  78.                 {
  79.                     PlayAudioStreamForPlayer(playerid, "mms://stream.radio.com.pt/ROLI-ENC-401");
  80.                     SendClientMessage(playerid, 0x42F3F198, "OrbitalFM - Digita /radioff para desligares o Rádio.");
  81.                 }
  82.                 case 4:
  83.                 {
  84.                     PlayAudioStreamForPlayer(playerid, "http://megahits.sapo.pt/live/stream_mega_stw.asx");
  85.                     SendClientMessage(playerid, 0x42F3F198, "MegaHitsFM - Digita /radioff para desligares o Rádio.");
  86.                 }
  87.             }
  88.         }
  89.     }
  90.     return 1;
  91. }
Advertisement
Add Comment
Please, Sign In to add comment