NelsonCoutinho

Radio System v0.2

Oct 13th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
  2. // CRIADOR : Smokiie_Gamer
  3. // Desbugado por : MBJ ( Forum Samp )
  4. //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
  5.  
  6. //=================//
  7. #include <a_samp>
  8. #include <zcmd>
  9. //=================//
  10. #define DIALOG_MUSICAS 1
  11. //=================//
  12. public OnFilterScriptInit()
  13. {
  14. print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
  15. print("System - Radio v0.2");
  16. print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
  17. print("Created by Smokiie");
  18. print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
  19. return 1;
  20. }
  21. public OnFilterScriptExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  27. {
  28. if(dialogid == DIALOG_MUSICAS)
  29. {
  30. if(response)
  31. {
  32. if(((strval(inputtext)) == 1) || (strcmp(inputtext, "hunter", true) == 0))
  33. {
  34. PlayAudioStreamForPlayer(playerid, "http://live.hunter.fm/live/");
  35. SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio Hunter {FFFF00}Selecionada {FFFFFF}!");
  36. }
  37. if(((strval(inputtext)) == 2) || (strcmp(inputtext, "malandramente", true) == 0))
  38. {
  39. PlayAudioStreamForPlayer(playerid, "https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3");
  40. SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Malandramente {FFFF00}Selecionada {FFFFFF}!");
  41. }
  42. if(((strval(inputtext)) == 3) || (strcmp(inputtext, "favela", true) == 0))
  43. {
  44. PlayAudioStreamForPlayer(playerid, "https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3");
  45. SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Baile de Favela {FFFF00}Selecionada {FFFFFF}!");
  46. }
  47. if(((strval(inputtext)) == 4) || (strcmp(inputtext, "desligar", true) == 0))
  48. {
  49. StopAudioStreamForPlayer(playerid);
  50. SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio {FFFF00}Desligada {FFFFFF}!");
  51. }
  52. }
  53. }
  54. return 1;
  55. }
  56. //=================//
  57. CMD:musicas(playerid)
  58. {
  59. new Musicas[200];
  60. format(Musicas, sizeof(Musicas), "{FFFFFF}Radio Hunter - {FF0000}1\n{FFFFFF}Malandramente - {FF0000}2\n{FFFFFF}Baile de Favela - {FF0000}3\n{FFFFFF}Desligar - {FF0000}4");
  61. ShowPlayerDialog(playerid, DIALOG_MUSICAS, DIALOG_STYLE_INPUT, "System - MP3", Musicas, "Escolher", "Cancelar");
  62. return true;
  63. }
  64.  
  65. //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
  66. // CRIADOR : Smokiie_Gamer
  67. // Desbugado por : MBJ ( Forum Samp )
  68. //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
Advertisement
Add Comment
Please, Sign In to add comment