Advertisement
BolivaRevolutioN

Sistema de Radio Para Sa-MP

Aug 2nd, 2015
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. /* |-----------------------------------------------------------|
  2. |- Sistema de radio portatil feito por: Boliva RevolutioN -|
  3. |- Para uso do blog: Homehots -|
  4. |- Radio: Radio Sound Hits -|
  5. |- Acesse: www.radiosh.com.br -|
  6. |-----------------------------------------------------------|
  7. */
  8.  
  9. // Includes
  10. #include <a_samp>
  11. #include streamer
  12.  
  13. // Defines
  14. #define FILTERSCRIPT
  15. #if defined FILTERSCRIPT
  16.  
  17. // Publics
  18. public OnFilterScriptInit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" HomeHots - S.Radio");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" HomeHots - S.Radio");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. public OnPlayerCommandText(playerid , cmdtext[])
  34. {
  35. if (strcmp("/radiosh", cmdtext, true, 10) == 0)
  36. {
  37.  
  38. ShowPlayerDialog ( playerid , 1245 , DIALOG_STYLE_LIST , "Radio Sound Hits" , "{33CCFF}Ligar Radio\n{33CCFF}Creditos Radio\n{33CCFF}Informaçoes\n{33CCFF}Link Util\n{33CCFF}Desligar Radio" , "OK" , "Cancelar" ) ;
  39. return 1 ;
  40. }
  41. return 0;
  42. }
  43. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  44. {
  45. if (dialogid == 1245)
  46. {
  47.  
  48. if ( response )
  49. {
  50.  
  51. if ( listitem == 0 )
  52. {
  53.  
  54. {
  55.  
  56. PlayAudioStreamForPlayer ( playerid , "http://stm12.painel.foxsolucoes.net:11352/" ) ; // Radio Sound Hits
  57. SendClientMessage ( playerid , 0x33CCFFAA , "Radio Sound Hits {FFFFFF} Ligada {33CCFF} Espere Alguns Segundos Para tocar!" ) ;
  58. }
  59. }
  60. if ( listitem == 1 )
  61. {
  62.  
  63. {
  64.  
  65. SendClientMessage ( playerid , 0x33CCFFAA , "Sistema de Radio feito por Boliva RevolutioN em parceria com Radio Sound Hits!" ) ;
  66. }
  67. }
  68. if ( listitem == 2 )
  69. {
  70.  
  71. {
  72.  
  73. SendClientMessage ( playerid , 0x33CCFFAA , "Acesse: www.radiosh.com para pedir sua musica e mandar um salve para galera do servidor " ) ;
  74. }
  75. }
  76. if ( listitem == 3 )
  77. {
  78.  
  79. {
  80.  
  81. SendClientMessage ( playerid , 0x33CCFFAA , "Links para acessar a {FFFFFF}Radio Sound Hits: {33CCFF}Sound Hitsfm.com" ) ;
  82. }
  83. }
  84. if ( listitem == 4 )
  85. {
  86.  
  87. {
  88.  
  89. StopAudioStreamForPlayer ( playerid );
  90. SendClientMessage ( playerid , 0x33CCFFAA , "Radio Sound Hits desligada!!" );
  91. }
  92. }
  93. }
  94. }
  95. return 1 ;
  96. }
  97. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement