Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Music Dialog v1.1
- * (c) Copyright 2011 by (Mattos)
- *
- * Author: Mateus Costa de Mattos (http://www.brasilwarzone.webs.com)
- * Date: 7th january 2012
- *
- */
- #include <a_samp>
- #define COR_VERMELHA 0xFF0000AA
- #define COR_AMARELA 0xFFFF00AA
- #define COR_VERDE 0x00CC00AA
- #define MENUMUSICAS 800
- #define ShowMusicDialog(%0) ShowPlayerDialog(%0, MENUMUSICAS, DIALOG_STYLE_LIST, "SISTEMA DE MÚSICA - {006600}By Mattos", "Desligar Música\nInserir URL de Musica\nRadios\nPop/Rock\nMPB\nMetal\nEletrônica\nRap/Rip Hop\nPagode/Samba\nFunk", "Selecionar", "Cancelar")
- new MusicaLigada[MAX_PLAYERS];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/musica",true) == 0)
- {
- ShowMusicDialog(playerid);
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == MENUMUSICAS && response)
- {
- switch(listitem)
- {
- case 0: // Desligar Música
- {
- if (MusicaLigada[playerid] == 0) return SendClientMessage(playerid, COR_VERMELHA, "| Não tem nenhuma música ligada.");
- MusicaLigada[playerid] = 0;
- SendClientMessage(playerid, COR_VERDE, "| Música desligada.");
- StopAudioStreamForPlayer(playerid);
- }
- case 1: // Inserir URL de Musica
- {
- ShowPlayerDialog(playerid, (MENUMUSICAS + 1), DIALOG_STYLE_INPUT,"URL DE ÁUDIO - {006600}By Mattos", "Insira uma URL de uma música com a extenção .mp3\ne com inicio http://", "Tocar", "Cancelar");
- }
- case 2: // Radios
- {
- ShowPlayerDialog(playerid, (MENUMUSICAS + 2), DIALOG_STYLE_LIST, "RADIOS - {006600}By Mattos",
- "Radio World Music BR\nTECHNO4EVER\nHigh Voltage\n80's\n90's\nFM AfterVeat Eletronica\nFM Absolute Country Hits\nFM Alternative Rock X Hits\nFM Blues\nFM Classic Country\nFM Dance\nFM Trance\nFM Club\nSertanejo BR\nFunk BR\nVTN BR\nRap BR\nGames BR\nPagode Station\nAC/DC Radio\nChronix Metal\nRock Radio\nLove FM BR\nTropical FM BR\nVibration PopRock\nBlack Beats\nTechnoBase FM\nBestRadio BR\nTequila Hip Hop\nRadio Baixa Funk\nRock Station\nVoltar",
- "Selecionar", "Cancelar");
- }
- case 3: // Pop/Rock
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 3), DIALOG_STYLE_LIST, "POP/ROCK - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 4: // MPB
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 4), DIALOG_STYLE_LIST, "MPB - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 5: // Metal
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 5), DIALOG_STYLE_LIST, "METAL - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 6: // Eletronica
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 3), DIALOG_STYLE_LIST, "ELETRONICA - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 7: // Rap/Rip Hop
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 7), DIALOG_STYLE_LIST, "RAP/RIP HOP- {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 8: // Pagode/Samba
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 8), DIALOG_STYLE_LIST, "PAGODE/SAMBA - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- case 9: // Funk
- {
- SendClientMessage(playerid, COR_VERMELHA, "| Em breve uma lista com várias músicas."); return 1;
- ShowPlayerDialog(playerid, (MENUMUSICAS + 8), DIALOG_STYLE_LIST, "FUNK - {006600}By Mattos", "Exemplo\nVoltar", "Selecionar", "Cancelar");
- }
- }
- return 1;
- }
- //==============================================================================
- // Inserir URL de Musica
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 1) && response)
- {
- PlayAudioStreamForPlayer(playerid, inputtext);
- MusicaLigada[playerid] = 1;
- return 1;
- }
- //==============================================================================
- // Radios
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 2) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://212.124.115.93:8000"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Radio World Music."); // Radio World Music
- case 1: PlayAudioStreamForPlayer(playerid, "http://listen.to.techno4ever.net/dsl/mp3"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: TECHNO4EVER."); // TECHNO4EVER
- case 2: PlayAudioStreamForPlayer(playerid, "http://sc8.1.fm:8035"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: High Voltage."); // High Voltage
- case 3: PlayAudioStreamForPlayer(playerid, "http://sc10.1.fm:6900"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: 80's."); // 80's
- case 4: PlayAudioStreamForPlayer(playerid, "http://sc1.1.fm:8065"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: 90's."); // 90's
- case 5: PlayAudioStreamForPlayer(playerid, "http://sc11.1.fm:8250"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM AfterVeat Eletronica."); // FM AfterVeat Eletronica
- case 6: PlayAudioStreamForPlayer(playerid, "http://sc9.1.fm:7800"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Absolute Country Hits."); // FM Absolute Country Hits
- case 7: PlayAudioStreamForPlayer(playerid, "http://sc12.1.fm:8070"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Alternative Rock X Hits."); // FM Alternative Rock X Hits
- case 8: PlayAudioStreamForPlayer(playerid, "http://sc16.1.fm:8030"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Blues."); // FM Blues
- case 9: PlayAudioStreamForPlayer(playerid, "http://sc17.1.fm:7806"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Classic Country."); // FM Classic Country
- case 10: PlayAudioStreamForPlayer(playerid, "http://sc8.1.fm:8050"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Dance."); // FM Dance
- case 11: PlayAudioStreamForPlayer(playerid, "http://sc9.1.fm:8040"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Trance."); // FM Trance
- case 12: PlayAudioStreamForPlayer(playerid, "http://sc14.1.fm:8060"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: FM Club."); // FM Club
- case 13: PlayAudioStreamForPlayer(playerid, "http://89.149.244.211:7080"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Sertanejo BR."); // Sertanejo BR
- case 14: PlayAudioStreamForPlayer(playerid, "http://64.56.64.72:10452"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Funk BR."); // Funk BR
- case 15: PlayAudioStreamForPlayer(playerid, "http://184.154.154.37:9087"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: VTN BR."); // VTN BR
- case 16: PlayAudioStreamForPlayer(playerid, "http://67.228.177.4:9944"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Rap BR."); // Rap BR
- case 17: PlayAudioStreamForPlayer(playerid, "http://74.222.1.205:10658"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Games BR."); // Games BR
- case 18: PlayAudioStreamForPlayer(playerid, "http://174.142.166.194:7410"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Pagode Station."); // Pagode Station
- case 19: PlayAudioStreamForPlayer(playerid, "http://67.159.5.57:9916 AC/DC"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: AC/DC Radio."); // AC/DC Radio
- case 20: PlayAudioStreamForPlayer(playerid, "http://205.188.215.225:8022"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Chronix Metal."); // Chronix Metal
- case 21: PlayAudioStreamForPlayer(playerid, "http://78.129.227.10:8000"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Rock Radio."); // Rock Radio
- case 22: PlayAudioStreamForPlayer(playerid, "http://173.193.242.194:8242"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Love FM BR."); // Love FM BR
- case 23: PlayAudioStreamForPlayer(playerid, "http://74.86.86.132:8052"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Tropical FM BR."); // Tropical FM BR
- case 24: PlayAudioStreamForPlayer(playerid, "http://91.121.55.217:8260"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Vibration PopRock."); // Vibration PopRock
- case 25: PlayAudioStreamForPlayer(playerid, "http://85.17.26.77:80"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Black Beats."); // Black Beats
- case 26: PlayAudioStreamForPlayer(playerid, "http://78.159.104.167:80"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: TechnoBase FM."); // TechnoBase FM
- case 27: PlayAudioStreamForPlayer(playerid, "http://184.172.134.4:8443"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: BestRadio BR."); // BestRadio BR
- case 28: PlayAudioStreamForPlayer(playerid, "http://46.108.158.43:7000"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Tequila Hip Hop."); // Tequila Hip Hop
- case 29: PlayAudioStreamForPlayer(playerid, "http://74.222.1.24:10858"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Radio Baixa Funk."); // Radio Baixa Funk
- case 30: PlayAudioStreamForPlayer(playerid, "http://rs11.stream24.org:8130"), MusicaLigada[playerid] = 1, SendClientMessage(playerid, COR_AMARELA, "| Você ligou a rádio: Rock Station."); // Rock Station
- case 31: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // Pop/Rock
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 3) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // MPB
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 4) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // Metal
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 5) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // Eletronica
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 6) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // Rap/Rip Hop
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 7) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- //==============================================================================
- // Pagode/Samba
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 8) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- return 1;
- //==============================================================================
- // Funk
- //==============================================================================
- if(dialogid == (MENUMUSICAS + 9) && response)
- {
- switch(listitem)
- {
- case 0: PlayAudioStreamForPlayer(playerid, "http://exemplo.mp3"), MusicaLigada[playerid] = 1;
- case 1: ShowMusicDialog(playerid);
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement