Guest User

Radio

a guest
Sep 7th, 2012
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. /////////////////Payne97 :)///////////////////////
  2. #include <a_samp>
  3.  
  4. #pragma tabsize 0
  5. #if defined FILTERSCRIPT
  6. #else
  7.  
  8. #endif
  9.  
  10. public OnPlayerConnect(playerid)
  11. {
  12. return 1;
  13. }
  14.  
  15. public OnPlayerCommandText(playerid, cmdtext[])
  16. {
  17. if (strcmp("/radio", cmdtext, true, 10) == 0)
  18. {
  19. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Radio","Balkan DJ\nVas naziv\nVas naziv\nVas naziv\nIskljuci","Odaberi","Izadji");
  20. return 1;
  21. }
  22. return 0;
  23. }
  24.  
  25. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  26. {
  27. if(response)
  28. {
  29. switch(dialogid)
  30. {
  31. case 1:
  32. {
  33. switch(listitem)
  34. {
  35. case 0:
  36. {
  37. StopAudioStreamForPlayer(playerid);
  38. PlayAudioStreamForPlayer(playerid, "http://balkan.dj.topstream.net:8070/listen.pls");
  39. }
  40. case 1:
  41. {
  42. StopAudioStreamForPlayer(playerid);
  43. PlayAudioStreamForPlayer(playerid, "");// Ovde stavite svoj link
  44. }
  45. case 2:
  46. {
  47. StopAudioStreamForPlayer(playerid);
  48. PlayAudioStreamForPlayer(playerid, ""); // Ovde stavite svoj link
  49. }
  50. case 3:
  51. {
  52. StopAudioStreamForPlayer(playerid);
  53. PlayAudioStreamForPlayer(playerid, ""); // Ovde stavite svoj link
  54. }
  55. case 4:
  56. {
  57.  
  58. }
  59. case 5:
  60. {
  61. StopAudioStreamForPlayer(playerid);
  62. }
  63. }
  64. }
  65. }
  66. }
  67. return 1;
  68. }
Advertisement
Add Comment
Please, Sign In to add comment