Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////////////////////////////////////////
- // Sistema de Rádio //
- ////////////////////////////////////////////////////////////////////////////////
- // Script: Sistema de Rádio //
- // Autor: Rapha3L //
- // Fórum SA-MP: http://forum.sa-mp.com/member.php?u=205070 //
- // PasteBin: http://pastebin.com/u/Rapha3L //
- // Versão: Beta 1.0 //
- // Ultima Modificação: 04/07/2013 //
- // Linhas Script: 91 //
- // Tempo de Programação: 2 Horas //
- ////////////////////////////////////////////////////////////////////////////////
- // Informações Do Autor //
- ////////////////////////////////////////////////////////////////////////////////
- // Não retirar os créditos. //
- // Não fazer mirrors dos links de download //
- // Não publicar noutros sites sem o meu consentimento. //
- ////////////////////////////////////////////////////////////////////////////////
- // Outros Créditos //
- ////////////////////////////////////////////////////////////////////////////////
- // SA:MP Wiki - Tuturiais e Explicações //
- ////////////////////////////////////////////////////////////////////////////////
- // HAVE FUN //
- ////////////////////////////////////////////////////////////////////////////////
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- #else
- #endif
- CMD:radio(playerid, params[])
- {
- ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"Lista de Rádios","#1 - House Box\r\n#2 - The Hate u Gave FM\r\n#3 - Portugal Fun Maps\r\n#4 - Orbital FM\r\n#5 - MegaHits FM ","Selecionar", "Cancelar");
- return 1;
- }
- CMD:radioff(playerid, params[])
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case 90:
- {
- if(!response)
- {
- SendClientMessage(playerid, 0x42F3F198, "Desligas-te o Rádio.");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://housebox.pt/housebox.pls");
- SendClientMessage(playerid, 0x42F3F198, "HouseBoxFM - Digita /radioff para desligares o Rádio.");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "http://193.164.131.215:9992/listen.pls");
- SendClientMessage(playerid, 0x42F3F198, "TheHateUGaveFM - Digita /radioff para desligares o Rádio.");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "http://radiocp.route-games.com:2199/tunein/rg1061.pls");
- SendClientMessage(playerid, 0x42F3F198, "Portugal Fun Maps FM - Digita /radioff para desligares o Rádio.");
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid, "mms://stream.radio.com.pt/ROLI-ENC-401");
- SendClientMessage(playerid, 0x42F3F198, "OrbitalFM - Digita /radioff para desligares o Rádio.");
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid, "http://megahits.sapo.pt/live/stream_mega_stw.asx");
- SendClientMessage(playerid, 0x42F3F198, "MegaHitsFM - Digita /radioff para desligares o Rádio.");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment