Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #define FILTERSCRIPT
- #define D_Radios 2016
- enum _InfoRadios {
- Radio_Name[35], Radio_IP[60]
- }
- new const RadioSystem[][_InfoRadios] = {
- {{"Web Ritz Brasil"}, {"http://stm7.painel.foxsolucoes.net:10480"}},
- {{"All Hits"}, {"http://199.195.192.234:9998"}},
- {{"Mega som"}, {"http://174.142.196.188:8848"}},
- {{"Rap 181"}, {"http://108.61.73.117:8054"}},
- {{"Eletronia"}, {"http://37.59.254.25:8024"}},
- {{"Radio Atlanta"}, {"http://198.50.197.80:9954"}},
- {{"Reggae"}, {"http://50.7.66.10:9052"}},
- {{"Som sertanejo"}, {"http://64.15.147.221:9026"}},
- {{"Radio +Sertanejo"}, {"http://listen.radionomy.com/-Sertanejo"}},
- {{"Radio Rock FM"}, {"http://69.4.232.118:80/live"}},
- {{"AC/DC Radio"}, {"http://67.159.5.57:9436"}},
- {{"Mundo Funk"}, {"http://170.75.145.138:10004"}},
- {{"Radio Classic Rock"}, {"http://Listen.Radionomy.com:80/-1ClassicRock"}},
- {{"Radio Dance Wave"}, {"http://206.190.151.156:11070"}},
- {{"Jovem Pam(Itajai - SC)"}, {"http://69.46.0.170:9970"}},
- {{"Jovem Pam(Cascavel - PR)"}, {"http://69.46.0.170:9986"}},
- {{"Radio Hunter"}, {"http://listen.shoutcast.com:80/RadioHunter-TheHitzChannel"}},
- {{"Radio Interativa FM"}, {"http://206.217.201.45:8100"}},
- {{"Radio Aqui Sertanejo"}, {"http://158.69.25.26:8353/stream"}},
- {{"Radio Sertanejo Universitario(SU)"}, {"http://167.114.208.30:8080/radiosu.mp3"}},
- {{"Desligar"}, {"null"}}
- };
- public OnFilterScriptInit() return 1;
- CMD:radios(playerid)
- {
- new ListaRadios[450] = "{FFFFFF}", LineRadio[50];
- for(new i = 0; i < sizeof(RadioSystem); ++i)
- {
- format(LineRadio, sizeof(LineRadio), "%d - %s\n", i+1, RadioSystem[i][Radio_Name]);
- strcat(ListaRadios, LineRadio);
- }
- ShowPlayerDialog(playerid, D_Radios, DIALOG_STYLE_INPUT, "{FFFF00}#{FFFFFF}Rádios:", ListaRadios, "Selecionar", "Sair");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == D_Radios)
- {
- if(response)
- {
- if(strval(inputtext)-1 == 20) return StopAudioStreamForPlayer(playerid);
- if(strval(inputtext)-1 > 20 || strval(inputtext) <= 0) return cmd_radios(playerid);
- PlayAudioStreamForPlayer(playerid, RadioSystem[strval(inputtext)-1][Radio_IP]);
- SendClientMessage(playerid, -1, RadioSystem[strval(inputtext)-1][Radio_Name]);
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment