Advertisement
Brinkess

[FilterScript] Sistema de Radio v1.0

Mar 7th, 2016
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. //SISTEMA DE RADIO FEITO POR BRINKESS
  2.  
  3. //BOM PROVEITO
  4.  
  5.  
  6.  
  7. #include <a_samp>
  8.  
  9. #define RADIOS 1
  10. #define Amarelo 0xEBFF00AA
  11.  
  12. public OnPlayerCommandText(playerid, cmdtext[])
  13. {
  14. if (strcmp("/Radios", cmdtext, true, 10) == 0)
  15. {
  16. ShowPlayerDialog(playerid,RADIOS,DIALOG_STYLE_LIST,"Radios","Funk\nRock\nRap\nSertanejo\nDesligar Radio","Selecionar","Cancelar");
  17. return 1;
  18. }
  19. return 0;
  20. }
  21.  
  22.  
  23. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  24. {
  25. if(dialogid == RADIOS){
  26. if(response){
  27. if(listitem == 0)
  28. {
  29. PlayAudioStreamForPlayer(playerid,"http://170.75.146.178:12206");
  30. SendClientMessage(playerid,Amarelo,"Radio Funk selecionada!");
  31. }
  32. if(listitem == 1)
  33. {
  34. PlayAudioStreamForPlayer(playerid,"http://82.117.200.90:9160");
  35. SendClientMessage(playerid,Amarelo,"Radio Rock selecionada!");
  36. }
  37. if(listitem == 2)
  38. {
  39. PlayAudioStreamForPlayer(playerid,"http://184.154.89.186:9944");
  40. SendClientMessage(playerid,Amarelo,"Radio Rap selecionada!");
  41. }
  42. if(listitem == 3)
  43. {
  44. PlayAudioStreamForPlayer(playerid,"http://72.10.168.122:8080/radiosu.mp3");
  45. SendClientMessage(playerid,Amarelo,"Radio Sertanejo selecionada!");
  46. }
  47. if(listitem == 4)
  48. {
  49. StopAudioStreamForPlayer(playerid);
  50. SendClientMessage(playerid,Amarelo,"Radio Desligada!");
  51. }
  52. }
  53. }
  54.  
  55. return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement