TYUI

Radio by Miroslav

Jun 11th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.77 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #define FARBA_29 0x11FF00FF
  4. #define FARBA_43 0x00EEFFFF
  5.  
  6. CMD:radio(playerid, params[])
  7. {
  8. #pragma unused params
  9. ShowPlayerDialog(playerid,8325,DIALOG_STYLE_LIST,"Radia","Fun Radio\nThe Vibe of Vegas\nDance Radio\nEvropa 2\nHipHopStage\nFrekvence 1\nVypnut Radio","Pustit","Cancel");
  10. return 1;
  11. }
  12.  
  13. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  14. {
  15. if(dialogid == 8325)
  16. {
  17. if(response == 1)
  18. {
  19. switch(listitem)
  20. {
  21. case 0:
  22. {
  23.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Fun Radio.");
  24.       PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3.m3u");
  25. }
  26. case 1:
  27. {
  28.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio The Vibe Of Vegas.");
  29.       PlayAudioStreamForPlayer(playerid,"http://108.61.73.117:8074/listen.pls");
  30. }
  31. case 2:
  32. {
  33.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Dance Radio.");
  34.       PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/danceradio128.mp3.m3u");
  35. }
  36. case 3:
  37. {
  38.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Evropa 2.");
  39.       PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/evropa2-128.mp3.m3u");
  40. }
  41. case 4:
  42. {
  43.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio HipHopStage.");
  44.       PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/hiphopstage192.mp3.m3u");
  45. }
  46. case 5:
  47. {
  48.       SendClientMessage(playerid, 0xFF6600 , "[Radio] He released a radio Frekvence 1.");
  49.       PlayAudioStreamForPlayer(playerid,"http://www.play.cz/radio/frekvence1-128.mp3.m3u");
  50. }
  51. case 6:
  52. {
  53.     SendClientMessage(playerid, 0xFF0000FF , "[Radio] Radio is off.");
  54.     StopAudioStreamForPlayer(playerid);
  55. }
  56. }
  57. }
  58. }
  59. return 1;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment