Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- #include zcmd
- #define RADIOS 5324
- #define URL 5325
- #define Amarelo 0xEBFF00AA
- public OnFilterScriptInit()
- {
- print(" ======================================");
- print(" Aproveitem ao Maximo ");
- print(" FILTERSCRIPT BY: WalterSantos ");
- print(" Rádios Atualizadas para seu Servidor ");
- print(" ======================================");
- return 1;
- }
- CMD:radios(playerid){
- ShowPlayerDialog(playerid,RADIOS,DIALOG_STYLE_LIST,"Radios","{00F5FF}Radio Hunter\n{009ACD}Radio Funk\n{FFD700}Radio Sertanejo\n{CD00CD}Radio Hip Hop\n{FF0000}Radio Reggae\n{00688B}Tocar URL\n{EEE0E5}Desligar Radio","Selecionar","Cancelar");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
- if(dialogid == RADIOS){
- if(response){
- switch(listitem){
- case 0:{
- PlayAudioStreamForPlayer(playerid,"http://listen.shoutcast.com:80/RadioHunter-TheHitzChannel");
- SendClientMessage(playerid,Amarelo,"[INFO: {00F5FF}Rádio Hunter selecionada!");
- }
- case 1:{
- PlayAudioStreamForPlayer(playerid,"http://listen.shoutcast.com/jpfunkmusic");
- SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Funk selecionada!");
- }
- case 2:{
- PlayAudioStreamForPlayer(playerid,"http://170.75.144.250:15672");
- SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Sertanejo selecionada!");
- }
- case 3:{
- PlayAudioStreamForPlayer(playerid,"http://108.61.30.179:4010");
- SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Hip Hop selecionada!");
- }
- case 4:{
- PlayAudioStreamForPlayer(playerid,"http://176.31.246.143:8300");
- SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Reggae selecionada!");
- }
- case 5:{
- ShowPlayerDialog(playerid, URL, DIALOG_STYLE_INPUT, "Insira a URL", "Insira sua URL de um arquivo .MP3\nExemplo: {FF0000}http://sv12.onlinevideoconverter.com/download?file=j9a0h7a0d3e4g6e4", "Tocar", "Sair");
- }
- case 6:{
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Desligada!{00F5FF}");
- }
- }
- }
- }
- if(dialogid == URL)
- {
- if(response){
- SendClientMessage(playerid, Amarelo, "Rádio via URL ligada com sucesso!");
- PlayAudioStreamForPlayer(playerid, inputtext);
- }
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement