Advertisement
matheusspohr

MSRadioSystem

Dec 3rd, 2015
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 9.22 KB | None | 0 0
  1. /*******************************
  2.       CargaPesada 2016
  3.    IP:158.69.136.72:8585
  4.      Venha nos visitar!
  5. *******************************/
  6. //MS Radio System por MatheusSpohr
  7.  
  8. #include <a_samp>
  9. #include <zcmd>
  10. #define D_Radios 2016//Cuidar Conflitos
  11.  
  12. #if defined FILTERSCRIPT
  13.  
  14. public OnFilterScriptInit()
  15. {
  16.     print("MS Radio System");
  17.     print("Sistema de Rádios por:");
  18.     print("MatheusSpohr");
  19.     return 1;
  20. }
  21.  
  22. #else
  23.  
  24. #endif
  25.  
  26. CMD:radios(playerid)
  27. {
  28.     new ListaRadios[815];
  29.     format(ListaRadios, sizeof(ListaRadios), "{FFFFFF}01 - Web Ritz Brasil\n02 - All Hits\n03 - Mega som\n04 - Rap 181\n05 - Eletronia\n06 - Radio Atlanta\n07 - Reggaee\n08 - Som sertanejo\n09 - Radio +Sertanejo\n10 - Radio Rock FM\n11 - AC/DC Radio\n12 - Mundo Funk\n13 - Radio Classic Rock\n14 - Radio Dance Wave\n15 - Jovem Pam(Itajai - SC)\n16 - Jovem Pam(Cascavel - PR)\n17 - Radio Hunter\n18 - Radio Interativa FM\n19 - Radio Aqui Sertanejo\n20 - Radio Sertanejo Universitario(SU)\n21 - Desligar");
  30.                                              
  31.     ShowPlayerDialog(playerid, D_Radios, DIALOG_STYLE_INPUT, "{FFFF00}#{FFFFFF}Rádios:", ListaRadios, "Selecionar", "Sair");
  32.     return 1;
  33. }
  34.  
  35. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  36. {
  37.     if(dialogid == D_Radios)
  38.     {
  39.         if(!response)return 0;
  40.         if(response)
  41.         {
  42.             if((strcmp(inputtext, "1", true) == 0) || (strcmp(inputtext, "01", true) == 0) || (strcmp(inputtext, "web ritz brasil", true) == 0))
  43.             {
  44.                 PlayAudioStreamForPlayer(playerid, "http://stm7.painel.foxsolucoes.net:10480");
  45.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Web Ritz Brasil {00FF00}Ligada{FFFFFF}!");
  46.             }
  47.             if((strcmp(inputtext, "2", true) == 0) || (strcmp(inputtext, "02", true) == 0) || (strcmp(inputtext, "radio all hits", true) == 0) || (strcmp(inputtext, "all hits", true) == 0))
  48.             {
  49.                 PlayAudioStreamForPlayer(playerid, "http://199.195.192.234:9998");
  50.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio All Hist {00FF00}Ligada{FFFFFF}!");
  51.             }
  52.             if((strcmp(inputtext, "3", true) == 0) || (strcmp(inputtext, "03", true) == 0) || (strcmp(inputtext, "radio mega som", true) == 0) || (strcmp(inputtext, "mega som", true) == 0))
  53.             {
  54.                 PlayAudioStreamForPlayer(playerid, "http://174.142.196.188:8848");
  55.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Mega Som {00FF00}Ligada{FFFFFF}!");
  56.             }
  57.             if((strcmp(inputtext, "4", true) == 0) || (strcmp(inputtext, "04", true) == 0) || (strcmp(inputtext, "rap", true) == 0) || (strcmp(inputtext, "rap 181", true) == 0) || (strcmp(inputtext, "radio rap 181", true) == 0))
  58.             {
  59.                 PlayAudioStreamForPlayer(playerid, "http://108.61.73.117:8054");
  60.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Rap 181 {00FF00}Ligada{FFFFFF}!");
  61.             }
  62.             if((strcmp(inputtext, "5", true) == 0) || (strcmp(inputtext, "05", true) == 0) || (strcmp(inputtext, "radio eletronica", true) == 0) || (strcmp(inputtext, "eletronica", true) == 0))
  63.             {
  64.                 PlayAudioStreamForPlayer(playerid, "http://37.59.254.25:8024");
  65.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Eletronica {00FF00}Ligada{FFFFFF}!");
  66.             }
  67.             if((strcmp(inputtext, "6", true) == 0) || (strcmp(inputtext, "06", true) == 0) || (strcmp(inputtext, "radio atlanta", true) == 0) || (strcmp(inputtext, "atlanta", true) == 0))
  68.             {
  69.                 PlayAudioStreamForPlayer(playerid, "http://198.50.197.80:9954");
  70.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Atlanta {00FF00}Ligada{FFFFFF}!");
  71.             }
  72.             if((strcmp(inputtext, "7", true) == 0) || (strcmp(inputtext, "07", true) == 0) || (strcmp(inputtext, "radio reggae", true) == 0) || (strcmp(inputtext, "reggae", true) == 0))
  73.             {
  74.                 PlayAudioStreamForPlayer(playerid, "http://50.7.66.10:9052");
  75.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Reggae {00FF00}Ligada{FFFFFF}!");
  76.             }
  77.             if((strcmp(inputtext, "8", true) == 0) || (strcmp(inputtext, "08", true) == 0) || (strcmp(inputtext, "radio som sertanejo", true) == 0) || (strcmp(inputtext, "som sertanejo", true) == 0))
  78.             {
  79.                 PlayAudioStreamForPlayer(playerid, "http://64.15.147.221:9026");
  80.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Som Sertanejo {00FF00}Ligada{FFFFFF}!");
  81.             }
  82.             if((strcmp(inputtext, "9", true) == 0) || (strcmp(inputtext, "09", true) == 0) || (strcmp(inputtext, "+sertanejo", true) == 0) || (strcmp(inputtext, "radio +sertanejo", true) == 0))
  83.             {
  84.                 PlayAudioStreamForPlayer(playerid, "http://listen.radionomy.com/-Sertanejo");
  85.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio +Sertanejo {00FF00}Ligada{FFFFFF}!");
  86.             }
  87.             if((strcmp(inputtext, "10", true) == 0) || (strcmp(inputtext, "radio rock fm", true) == 0) || (strcmp(inputtext, "rock", true) == 0) || (strcmp(inputtext, "rock fm", true) == 0) || (strcmp(inputtext, "radio rock", true) == 0))
  88.             {
  89.                 PlayAudioStreamForPlayer(playerid, "http://69.4.232.118:80/live");
  90.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Rock FM {00FF00}Ligada{FFFFFF}!");
  91.             }
  92.             if((strcmp(inputtext, "11", true) == 0) || (strcmp(inputtext, "ac/dc", true) == 0) || (strcmp(inputtext, "radio ac/dc", true) == 0))
  93.             {
  94.                 PlayAudioStreamForPlayer(playerid, "http://67.159.5.57:9436");
  95.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio AC/DC {00FF00}Ligada{FFFFFF}!");
  96.             }
  97.             if((strcmp(inputtext, "12", true) == 0) || (strcmp(inputtext, "radio mundo funk", true) == 0) || (strcmp(inputtext, "mundo funk", true) == 0))
  98.             {
  99.                 PlayAudioStreamForPlayer(playerid, "http://170.75.145.138:10004");
  100.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Mundo Funk {00FF00}Ligada{FFFFFF}!");
  101.             }
  102.             if((strcmp(inputtext, "13", true) == 0) || (strcmp(inputtext, "radio classic rock", true) == 0) || (strcmp(inputtext, "classic rock", true) == 0))
  103.             {
  104.                 PlayAudioStreamForPlayer(playerid, "http://Listen.Radionomy.com:80/-1ClassicRock");
  105.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Classic Rock {00FF00}Ligada{FFFFFF}!");
  106.             }
  107.             if((strcmp(inputtext, "14", true) == 0) || (strcmp(inputtext, "radio dance wave", true) == 0) || (strcmp(inputtext, "dance wave", true) == 0))
  108.             {
  109.                 PlayAudioStreamForPlayer(playerid, "http://206.190.151.156:11070");
  110.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Dance Wave {00FF00}Ligada{FFFFFF}!");
  111.             }
  112.             if((strcmp(inputtext, "15", true) == 0) || (strcmp(inputtext, "sc", true) == 0) || (strcmp(inputtext, "jovem pam(itajai-sc)", true) == 0) || (strcmp(inputtext, "itajai", true) == 0))
  113.             {
  114.                 PlayAudioStreamForPlayer(playerid, "http://69.46.0.170:9970");
  115.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Jovem Pam(Itajai-SC) {00FF00}Ligada{FFFFFF}!");
  116.             }
  117.             if((strcmp(inputtext, "16", true) == 0) || (strcmp(inputtext, "pr", true) == 0) || (strcmp(inputtext, "jovem pam", true) == 0) || (strcmp(inputtext, "jovem pam(cascavel-pr)", true) == 0))
  118.             {
  119.                 PlayAudioStreamForPlayer(playerid, "http://69.46.0.170:9986");
  120.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Jovem Pam(Cascavel-PR) {00FF00}Ligada{FFFFFF}!");
  121.             }
  122.             if((strcmp(inputtext, "17", true) == 0) || (strcmp(inputtext, "radio hunter", true) == 0) || (strcmp(inputtext, "hunter", true) == 0))
  123.             {
  124.                 PlayAudioStreamForPlayer(playerid, "http://listen.shoutcast.com:80/RadioHunter-TheHitzChannel");
  125.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Hunter {00FF00}Ligada{FFFFFF}!");
  126.             }
  127.             if((strcmp(inputtext, "18", true) == 0) || (strcmp(inputtext, "radio interativa fm", true) == 0) || (strcmp(inputtext, "radio interativa", true) == 0) || (strcmp(inputtext, "interativa", true) == 0) || (strcmp(inputtext, "interativa fm", true) == 0))
  128.             {
  129.                 PlayAudioStreamForPlayer(playerid, "http://206.217.201.45:8100");
  130.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Interativa FM {00FF00}Ligada{FFFFFF}!");
  131.             }
  132.             if((strcmp(inputtext, "19", true) == 0) || (strcmp(inputtext, "radio aqui sertanejo", true) == 0) || (strcmp(inputtext, "aqui sertanejo", true) == 0))
  133.             {
  134.                 PlayAudioStreamForPlayer(playerid, "http://158.69.25.26:8353/stream");
  135.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Aqui Sertanejo {00FF00}Ligada{FFFFFF}!");
  136.             }
  137.             if((strcmp(inputtext, "20", true) == 0) || (strcmp(inputtext, "radio sertanejo universitario", true) == 0) || (strcmp(inputtext, "su", true) == 0) || (strcmp(inputtext, "sertanejo universitario", true) == 0))
  138.             {
  139.                 PlayAudioStreamForPlayer(playerid, "http://167.114.208.30:8080/radiosu.mp3");
  140.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio Sertanejo Universitário(SU) {00FF00}Ligada{FFFFFF}!");
  141.             }
  142.             if((strcmp(inputtext, "21", true) == 0) || (strcmp(inputtext, "desligar", true) == 0))
  143.             {
  144.                 StopAudioStreamForPlayer(playerid);
  145.                 SendClientMessage(playerid, -1, "{FF00FF}# {FFFFFF}Rádio {FF0000}Desligada{FFFFFF}!");
  146.             }
  147.         }
  148.         return 1;
  149.     }
  150.     return 1;
  151. }
  152. //MS Radio System por MatheusSpohr
  153. /*******************************
  154.       CargaPesada 2016
  155.    IP:158.69.136.72:8585
  156.      Venha nos visitar!
  157. *******************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement