Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- //============================================================================//
- #define DIALOG_MUSICAS 1
- #define DIALOG_RADIOS 2
- #define DIALOG_MP3 3
- #define DIALOG_CREDITOS 4
- //============================================================================//
- #if defined FILTERSCRIPT
- //============================================================================//
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio/Mp3 System By: Smokiie");
- print("--------------------------------------\n");
- return 1;
- }
- //============================================================================//
- public OnFilterScriptExit()
- {
- return 1;
- }
- //============================================================================//
- #else
- //============================================================================//
- #endif
- //============================================================================//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MUSICAS)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIALOG_RADIOS, DIALOG_STYLE_LIST, "Radios", "Radio Hunter\nDesligar", "Escolher", #);
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_MP3, DIALOG_STYLE_LIST, "MP3", "Baile de Favela\nMalandramente\nDesligar", "Escolher", #);
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIALOG_CREDITOS, DIALOG_STYLE_MSGBOX, "Creditos", "System Created By: Smokiie_Gamer\nBom Jogo.", "Confirmar", #);
- }
- }
- }
- if(dialogid == DIALOG_MP3)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3");
- SendClientMessage(playerid, -1, "Você escolheu a Musica ' Baile de Favela '");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "https://fobos.sscdn.co/palcomp3/5/2/c/0/mcsnandinhoenegoban-nandinho-feat-nego-bam-malandramente-rd-da-nh-light-c21b5bb0.mp3");
- SendClientMessage(playerid, -1, "Você escolheu a Musica ' Malandramente '");
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, -1, "Você desidiu parar a Musica !");
- }
- }
- }
- if(dialogid == DIALOG_RADIOS)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://live.hunterfm.com/live");
- SendClientMessage(playerid, -1, "Você escolheu a Radio ' Hunter '");
- }
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, -1, "Você desidiu parar a Radio !");
- }
- }
- }
- return 1;
- }
- //============================================================================//
- CMD:musicas(playerid)
- {
- ShowPlayerDialog(playerid, DIALOG_MUSICAS, DIALOG_STYLE_LIST, "System", "Radios\nMp3\nCreditos", "Escolher", #);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment