Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
- // CRIADOR : Smokiie_Gamer
- // Desbugado por : MBJ ( Forum Samp )
- //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
- //=================//
- #include <a_samp>
- #include <zcmd>
- //=================//
- #define DIALOG_MUSICAS 1
- //=================//
- public OnFilterScriptInit()
- {
- print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
- print("System - Radio v0.2");
- print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
- print("Created by Smokiie");
- print("~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MUSICAS)
- {
- if(response)
- {
- if(((strval(inputtext)) == 1) || (strcmp(inputtext, "hunter", true) == 0))
- {
- PlayAudioStreamForPlayer(playerid, "http://live.hunter.fm/live/");
- SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio Hunter {FFFF00}Selecionada {FFFFFF}!");
- }
- if(((strval(inputtext)) == 2) || (strcmp(inputtext, "malandramente", true) == 0))
- {
- 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, 0xFFFF00FF, "* {FFFFFF}Malandramente {FFFF00}Selecionada {FFFFFF}!");
- }
- if(((strval(inputtext)) == 3) || (strcmp(inputtext, "favela", true) == 0))
- {
- PlayAudioStreamForPlayer(playerid, "https://europa.sscdn.co/palcomp3/5/5/d/3/djclesiomix-baile-de-favela-mc-joao-2015-1dbf8314.mp3");
- SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Baile de Favela {FFFF00}Selecionada {FFFFFF}!");
- }
- if(((strval(inputtext)) == 4) || (strcmp(inputtext, "desligar", true) == 0))
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, 0xFFFF00FF, "* {FFFFFF}Radio {FFFF00}Desligada {FFFFFF}!");
- }
- }
- }
- return 1;
- }
- //=================//
- CMD:musicas(playerid)
- {
- new Musicas[200];
- format(Musicas, sizeof(Musicas), "{FFFFFF}Radio Hunter - {FF0000}1\n{FFFFFF}Malandramente - {FF0000}2\n{FFFFFF}Baile de Favela - {FF0000}3\n{FFFFFF}Desligar - {FF0000}4");
- ShowPlayerDialog(playerid, DIALOG_MUSICAS, DIALOG_STYLE_INPUT, "System - MP3", Musicas, "Escolher", "Cancelar");
- return true;
- }
- //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
- // CRIADOR : Smokiie_Gamer
- // Desbugado por : MBJ ( Forum Samp )
- //~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*//
Advertisement
Add Comment
Please, Sign In to add comment