Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. #include a_samp
  2. #include zcmd
  3.  
  4. #define RADIOS 5324
  5. #define Amarelo 0xEBFF00AA
  6.  
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print(" Aproveitem ao Máximo ");
  11. print(" FILTERSCRIPT BY: WalterSantos ");
  12. print(" Rádios Atualizadas para seu Servidor ");
  13. return 1;
  14. }
  15.  
  16. CMD:radios(playerid){
  17. 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{EEE0E5}Desligar Radio","Selecionar","Cancelar");
  18. return 1;
  19. }
  20.  
  21. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  22. if(dialogid == RADIOS){
  23. if(response){
  24. switch(listitem){
  25. case 0:{
  26. PlayAudioStreamForPlayer(playerid,"http://listen.shoutcast.com:80/RadioHunter-TheHitzChannel");
  27. SendClientMessage(playerid,Amarelo,"[INFO: {00F5FF}Rádio Hunter selecionada!");
  28. }
  29. case 1:{
  30. PlayAudioStreamForPlayer(playerid,"http://stm50.srvstm.com:12206");
  31. SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Funk selecionada!");
  32. }
  33. case 2:{
  34. PlayAudioStreamForPlayer(playerid,"http://158.69.25.26:8353/stream");
  35. SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Sertanejo selecionada!");
  36. }
  37. case 3:{
  38. PlayAudioStreamForPlayer(playerid,"http://108.61.30.179:4010");
  39. SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Hip Hop selecionada!");
  40. }
  41. case 4:{
  42. PlayAudioStreamForPlayer(playerid,"http://176.31.246.143:8300");
  43. SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Reggae selecionada!");
  44. }
  45. case 5:{
  46. StopAudioStreamForPlayer(playerid);
  47. SendClientMessage(playerid,Amarelo,"[INFO]: {00F5FF}Rádio Desligada!{00F5FF}");
  48. }
  49. }
  50. }
  51. }
  52. return false;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement