iJockerOficial

[FS] Sistema de rádios [ZCMD]

Feb 6th, 2018
1,318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.01 KB | None | 0 0
  1. // [FS] Sistema de rádios criado por Walter Santos.
  2. // Disponibilizado na Releases SAMP por iJockerOficial.
  3. #include a_samp
  4. #include zcmd
  5.  
  6. #define RADIOS 5324
  7. #define URL 5325
  8. #define Amarelo  0xEBFF00AA
  9.  
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print(" ======================================");
  14.     print(" Aproveitem ao Maximo ");
  15.     print(" FILTERSCRIPT BY: WalterSantos ");
  16.     print(" Rádios Atualizadas para seu Servidor ");
  17.     print(" ======================================");
  18.     return 1;
  19. }
  20.  
  21. CMD:radios(playerid){
  22.     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");
  23.     return 1;
  24. }
  25.  
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  27.         if(dialogid == RADIOS){
  28.             if(response){
  29.                 switch(listitem){
  30.                     case 0:{
  31.                         PlayAudioStreamForPlayer(playerid,"http://listen.shoutcast.com:80/RadioHunter-TheHitzChannel");
  32.                         SendClientMessage(playerid,Amarelo,"[INFO: {00F5FF}Rádio Hunter selecionada!");
  33.                     }
  34.                     case 1:{
  35.                         PlayAudioStreamForPlayer(playerid,"http://listen.shoutcast.com/jpfunkmusic");
  36.                         SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Funk selecionada!");
  37.                     }
  38.                     case 2:{
  39.                         PlayAudioStreamForPlayer(playerid,"http://170.75.144.250:15672");
  40.                         SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Sertanejo selecionada!");
  41.                     }
  42.                     case 3:{
  43.                         PlayAudioStreamForPlayer(playerid,"http://108.61.30.179:4010");
  44.                         SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Hip Hop selecionada!");
  45.                     }
  46.                     case 4:{
  47.                         PlayAudioStreamForPlayer(playerid,"http://176.31.246.143:8300");
  48.                         SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Reggae selecionada!");
  49.                     }
  50.                     case 5:{
  51.                         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");
  52.                     }
  53.                     case 6:{
  54.                         StopAudioStreamForPlayer(playerid);
  55.                         SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Desligada!{00F5FF}");
  56.                     }
  57.                 }
  58.             }
  59.         }
  60.         if(dialogid == URL)
  61.         {
  62.             if(response){
  63.                 SendClientMessage(playerid, Amarelo, "Rádio via URL ligada com sucesso!");
  64.                 PlayAudioStreamForPlayer(playerid, inputtext);
  65.             }
  66.             return true;
  67.         }
  68.         return false;
  69. }
Advertisement
Add Comment
Please, Sign In to add comment