Advertisement
Guest User

ZCMD - WALTERSANTOS 2017

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