Guest User

FS Web Radio!By:Panico

a guest
Apr 4th, 2012
4,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.67 KB | None | 0 0
  1. /*
  2.     FS Totalmente Criado Por: Panico
  3.     Nao Retire os Creditos ;D
  4. */
  5. #include <a_samp>
  6.  
  7. forward SendMSG();
  8.  
  9. new RandomMSG[][] =
  10. {
  11.   "Esta Afim de Ouvir Uma Musiquinha?Use: /radios !!",
  12.   "Quer Ouvir Musicas Em quanto joga SAMP?Use:/radios"
  13. };
  14.  
  15. public OnFilterScriptInit()
  16. {
  17.     SetTimer("SendMSG", 300000, true);
  18.     return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.     return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28.     return 1;
  29. }
  30.  
  31. public OnPlayerDisconnect(playerid, reason)
  32. {
  33.     return 1;
  34. }
  35.  
  36. public OnPlayerSpawn(playerid)
  37. {
  38.     return 1;
  39. }
  40.  
  41. public SendMSG()
  42. {
  43.   new randMSG = random(sizeof(RandomMSG));
  44.   SendClientMessageToAll(0x00FE19FF, RandomMSG[randMSG]);
  45. }
  46. public OnPlayerDeath(playerid, killerid, reason)
  47. {
  48.     return 1;
  49. }
  50.  
  51. public OnVehicleSpawn(vehicleid)
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnVehicleDeath(vehicleid, killerid)
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnPlayerText(playerid, text[])
  62. {
  63.     return 1;
  64. }
  65.  
  66. public OnPlayerCommandText(playerid, cmdtext[])
  67. {
  68.     if (strcmp("/radios", cmdtext, true, 10) == 0)
  69.     {
  70.         ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_LIST, "Lista de Radios", "{FF0000}Radio Hunter\n{00EEFF}Radio Super Mix\n{04FF00}Radio PureDJ\n{0400FF}Radio Nova Web\n{FF00EA}Radio Electro Vibe\n{FBFF00}Radio Team Expert\n{B700FF}Radio Relax\n{B4B4B4}Desligar", "OK", "Cancelar");
  71.         return 1;
  72.     }
  73.     return 0;
  74. }
  75.  
  76. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  77. {
  78.     return 1;
  79. }
  80.  
  81. public OnPlayerExitVehicle(playerid, vehicleid)
  82. {
  83.     return 1;
  84. }
  85.  
  86. public OnPlayerStateChange(playerid, newstate, oldstate)
  87. {
  88.     return 1;
  89. }
  90.  
  91. public OnPlayerEnterCheckpoint(playerid)
  92. {
  93.     return 1;
  94. }
  95.  
  96. public OnPlayerLeaveCheckpoint(playerid)
  97. {
  98.     return 1;
  99. }
  100.  
  101. public OnPlayerEnterRaceCheckpoint(playerid)
  102. {
  103.     return 1;
  104. }
  105.  
  106. public OnPlayerLeaveRaceCheckpoint(playerid)
  107. {
  108.     return 1;
  109. }
  110.  
  111. public OnRconCommand(cmd[])
  112. {
  113.     return 1;
  114. }
  115.  
  116. public OnPlayerRequestSpawn(playerid)
  117. {
  118.     return 1;
  119. }
  120.  
  121. public OnObjectMoved(objectid)
  122. {
  123.     return 1;
  124. }
  125.  
  126. public OnPlayerObjectMoved(playerid, objectid)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnPlayerPickUpPickup(playerid, pickupid)
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnVehicleMod(playerid, vehicleid, componentid)
  137. {
  138.     return 1;
  139. }
  140.  
  141. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  142. {
  143.     return 1;
  144. }
  145.  
  146. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  147. {
  148.     return 1;
  149. }
  150.  
  151. public OnPlayerSelectedMenuRow(playerid, row)
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerExitedMenu(playerid)
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnRconLoginAttempt(ip[], password[], success)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerUpdate(playerid)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnPlayerStreamIn(playerid, forplayerid)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnPlayerStreamOut(playerid, forplayerid)
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnVehicleStreamIn(vehicleid, forplayerid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnVehicleStreamOut(vehicleid, forplayerid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  202. {
  203.     if(dialogid == 1245){
  204.     if(response){
  205.         if(listitem == 0){
  206.         {
  207.         StopAudioStreamForPlayer(playerid);
  208.         PlayAudioStreamForPlayer(playerid,"http://stream.radiohunter.com.br:7070/listen.pls");//Radio Hunter
  209.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Hunter {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  210.         }
  211.         }
  212.         if(listitem == 1){
  213.         {
  214.         StopAudioStreamForPlayer(playerid);
  215.         PlayAudioStreamForPlayer(playerid,"http://radiosupermix.com.br:7585");// SUPER MIX
  216.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Super Mix {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  217.         }
  218.         }
  219.         if(listitem == 2){
  220.         {
  221.         StopAudioStreamForPlayer(playerid);
  222.         PlayAudioStreamForPlayer(playerid,"http://66.90.101.54:8120");//Radio PureDJ
  223.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio PureDJ {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  224.         }
  225.         }
  226.         if(listitem == 3){
  227.         {
  228.         StopAudioStreamForPlayer(playerid);
  229.         PlayAudioStreamForPlayer(playerid,"http://69.162.90.148:7080/");//Nova Web
  230.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Nova Web {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  231.         }
  232.         }
  233.         if(listitem == 4){
  234.         {
  235.         StopAudioStreamForPlayer(playerid);
  236.         PlayAudioStreamForPlayer(playerid,"http://streaming15.brlogic.com:8084/live");//Radio Electro Vibe
  237.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Electro Vibe {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  238.         }
  239.         }
  240.         if(listitem == 5){
  241.         {
  242.         StopAudioStreamForPlayer(playerid);
  243.         PlayAudioStreamForPlayer(playerid,"http://64.31.30.91:9980");//Team Expert
  244.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Team Expert {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  245.         }
  246.         }
  247.         if(listitem == 6){
  248.         {
  249.         StopAudioStreamForPlayer(playerid);
  250.         PlayAudioStreamForPlayer(playerid,"http://streaming18.brlogic.com:8204/live");//Relax
  251.         SendClientMessage(playerid, 0x33CCFFAA, "{FF0000}Radio Relax {FFFFFF}Ligada!{BCBCBC}Epere Alguns Segundos Para Tocar!");
  252.         }
  253.         }
  254.         if(listitem == 7){
  255.         {
  256.         StopAudioStreamForPlayer(playerid);
  257.         SendClientMessage(playerid, 0x33CCFFAA, "{BCBCBC}Vc Desligou a Radio!");
  258.         }
  259.         }
  260.     }
  261.     else{
  262.     }
  263.     }
  264.     return 1;
  265. }
  266.  
  267. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  268. {
  269.     return 1;
  270. }
Advertisement
Add Comment
Please, Sign In to add comment