DETONASAMP

RADIO

Apr 17th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #define RADIO 1
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32.  
  33.  
  34. public OnPlayerCommandText(playerid, cmdtext[])
  35. {
  36. if (strcmp("/radio", cmdtext, true, 10) == 0)
  37. {
  38. ShowPlayerDialog(playerid, RADIO, DIALOG_STYLE_LIST, "Lista de Radios", "{FF0000}Radio Hunter\n{FF0000}Radio Coca_Cola\n{04FF00}Radio fusion\n{0400FF}Radio rock\n{FF00EA}Radio stronda\n{FBFF00}Radio mandela\n{B700FF}Radio Jovem Pan\n{B4B4B4}Desligar", "OK", "Cancelar");
  39. return 1;
  40. }
  41. return 0;
  42. }
  43.  
  44. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  45. {
  46. if(dialogid == RADIO)
  47. {
  48. if(response)
  49. {
  50. if(listitem == 0){
  51. {
  52. StopAudioStreamForPlayer(playerid);
  53. PlayAudioStreamForPlayer(playerid,"http://live.hunterfm.com/live");//Radio Hunter
  54. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  55. }
  56. }
  57. if(listitem == 1){
  58. {
  59. StopAudioStreamForPlayer(playerid);
  60. PlayAudioStreamForPlayer(playerid,"http://192.95.20.77:192");// coca-cola
  61. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Coca_Cola {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  62. }
  63. }
  64. if(listitem == 2){
  65. {
  66. StopAudioStreamForPlayer(playerid);
  67. PlayAudioStreamForPlayer(playerid,"http://192.95.33.114:9996");//Radio Funk Jovem
  68. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Radio Funk Jovem {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  69. }
  70. }
  71. if(listitem == 3){
  72. {
  73. StopAudioStreamForPlayer(playerid);
  74. PlayAudioStreamForPlayer(playerid,"http://91.121.174.35:8000");//rock
  75. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio rock {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  76. }
  77. }
  78. if(listitem == 4){
  79. {
  80. StopAudioStreamForPlayer(playerid);
  81. PlayAudioStreamForPlayer(playerid,"http://74.222.2.108:8250");//Radio stronda
  82. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio stronda {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  83. }
  84. }
  85. if(listitem == 5){
  86. {
  87. StopAudioStreamForPlayer(playerid);
  88. PlayAudioStreamForPlayer(playerid,"http://184.154.37.136:12842");//mandela
  89. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio mandela {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  90. }
  91. }
  92. if(listitem == 6){
  93. {
  94. StopAudioStreamForPlayer(playerid);
  95. PlayAudioStreamForPlayer(playerid,"http://74.222.1.133:16682");//jovem pan
  96. SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Jovem Pan {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  97. }
  98. }
  99. if(listitem == 7){
  100. {
  101. StopAudioStreamForPlayer(playerid);
  102. SendClientMessage(playerid, 0x33CCFFAA, "{BCBCBC}Vc Desligou a Radio!");
  103. }
  104. }
  105. }
  106. }
  107. return 1;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment