Advertisement
matheusspohr

WebRadios

Feb 12th, 2015
2,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Favor Não Retirar Os Cráditos!
  3. [FS]: WebRadios MatheusSpohr
  4. Skype: qrapapagaio
  5. Post Nº: 001
  6. */
  7. #include <a_samp>
  8. #define Cor 0x33CCFFAA
  9.  
  10. forward SendMSG();
  11.  
  12. new RandomMSG[][] =
  13. {
  14.   "{28A9FF}[Sistema De Rádios]:{FFEA78} Quer Ouvir Uma Musica Enquanto Joga? /WebRadios",
  15.   "{28A9FF}[Sistema De Rádios]:{FFEA78} /WebRadios, Sintonize Agora, Só As Melhores!"
  16. };
  17.  
  18. public OnFilterScriptInit()
  19. {
  20.     SetTimer("SendMSG", 300000, true);
  21.     print(" [FS] WebRadios Carregado ");
  22.     print("WebRadios By: MatheusSpohr");
  23.     return 1;
  24. }
  25.  
  26. public SendMSG()
  27. {
  28.   new randMSG = random(sizeof(RandomMSG));
  29.   SendClientMessageToAll(0x00FE19FF, RandomMSG[randMSG]);
  30. }
  31.  
  32. public OnPlayerCommandText(playerid, cmdtext[])
  33. {
  34.     if (strcmp("/webradios", cmdtext, true, 10) == 0)
  35.     {
  36.         ShowPlayerDialog(playerid, 1245, DIALOG_STYLE_LIST, "{00FF00}Lista de Web Radios", "{0000FF}Radio S.U.\nRadio Wake Funk\nRadio Som Sertanejo\nRadio Sound Pop\nRadio Los Santos\nRadio Jovem Pan\n{00FF00}Créditos WebRadio\n{FF0000}Desligar Radio", "OK", "Cancelar");
  37.         return 1;
  38.     }
  39.     return 0;
  40. }
  41.  
  42. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  43. {
  44.     if(dialogid == 1245){
  45.     if(response){
  46.         if(listitem == 0){
  47.         {
  48.         StopAudioStreamForPlayer(playerid);
  49.         PlayAudioStreamForPlayer(playerid,"http://67.215.15.218:8080/radiosu.mp3");//Radio S.U.
  50.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio SU, Aguarde...");
  51.         }
  52.         }
  53.         if(listitem == 1){
  54.         {
  55.         StopAudioStreamForPlayer(playerid);
  56.         PlayAudioStreamForPlayer(playerid,"http://198.199.100.218:12710");//Radio Wake Funk
  57.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio Wake Funk, Aguarde...");
  58.         }
  59.         }
  60.         if(listitem == 2){
  61.         {
  62.         StopAudioStreamForPlayer(playerid);
  63.         PlayAudioStreamForPlayer(playerid,"http://64.15.147.221:9026");//Radio Som Sertanejo
  64.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio Som Sertanejo, Aguarde...");
  65.         }
  66.         }
  67.         if(listitem == 3){
  68.         {
  69.         StopAudioStreamForPlayer(playerid);
  70.         PlayAudioStreamForPlayer(playerid,"http://198.178.123.11:7746");//Radio Sound Pop
  71.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio Soun Pop, Aguarde...");
  72.         }
  73.         }
  74.         if(listitem == 4){
  75.         {
  76.         StopAudioStreamForPlayer(playerid);
  77.         PlayAudioStreamForPlayer(playerid,"http://192.99.17.12:5832/stream");//Radio Los Santos
  78.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio Los Santos, Aguarde...");
  79.         }
  80.         }
  81.         if(listitem == 5){
  82.         {
  83.         StopAudioStreamForPlayer(playerid);
  84.         PlayAudioStreamForPlayer(playerid,"http://107.161.114.2:8232");//Radio Jpvem Pan
  85.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Sintonizando Radio Jovem Pan, Aguarde...");
  86.         }
  87.         }
  88.         if(listitem == 6){
  89.         {
  90.         StopAudioStreamForPlayer(playerid);
  91.         PlayAudioStreamForPlayer(playerid,"http://dc760.4shared.com/img/5367787030/ae5bfa6e/dlink__2Fdownload_2FeI-x54M-ce_3Ftsid_3D20150213-023149-5ca58a1a_26lgfp_3D10000_26sbsr_3De272099b34a33d12d8dc86d236bc220f65b95f39480263c7/preview.mp3");//Frete
  92.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:");
  93.         SendClientMessage(playerid, Cor, "Feito Por: Matheus Spohr");
  94.         }
  95.         }
  96.         if(listitem == 7){
  97.         {
  98.         StopAudioStreamForPlayer(playerid);
  99.         SendClientMessage(playerid, Cor, "{28A9FF}[Sistema De Rádios]:{FFEA78} Rádio Desligada Com Sucesso!");
  100.         }
  101.         }
  102.     }
  103.     else{
  104.     }
  105.     }
  106.     return 1;
  107. }
  108.  
  109. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  110. {
  111.     return 1;
  112. }
  113. /*
  114. Favor Não Retirar Os Cráditos!
  115. [FS]: WebRadios MatheusSpohr
  116. Skype: qrapapagaio
  117. Post Nº: 001
  118. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement