Advertisement
Guest User

Radio 0.3e [Javitva]!

a guest
Aug 21st, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. //Cim:Rádió SDW by:[SDW]BlackJack! Kerlek titeket tuntesetek fel a nevemet!
  2. #include <a_samp>
  3. #include <zcmd>
  4. #define Radio 1016
  5. public OnFilterScriptInit()
  6. {
  7. print("||||||||||||||||||||||||||||||");
  8. print("|Rádió SDW by:[SDW]BlackJack!|");
  9. print("||||||||||||||||||||||||||||||");
  10. return 1;
  11. }
  12. CMD:radio(playerid,params[])
  13. {
  14. ShowPlayerDialog(playerid, Radio, DIALOG_STYLE_LIST, "Rádió - SDW by:[SDW]BlackJack", "Rádió 1\nNeo FM\nClass FM\nDream Rádió\nLeálit!", "Kiválaszt!", "Kilépés!");
  15. return 1;
  16. }
  17. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  18. {
  19. if(dialogid==Radio)
  20. {
  21. if(response)
  22. {
  23. if(listitem==0)
  24. {
  25. PlayAudioStreamForPlayer(playerid,"http://195.70.35.172:8000/radio1.mp3");
  26. }
  27. if(listitem==1)
  28. {
  29. PlayAudioStreamForPlayer(playerid,"http://www.xhosting.hu/NeoFM/128_kbs_mp3.m3u");
  30. }
  31. if(listitem==2)
  32. {
  33. PlayAudioStreamForPlayer(playerid,"http://www.sztarnet.hu/ClassFM/mp3_adas_1.m3u");
  34. }
  35. if(listitem==3)
  36. {
  37. PlayAudioStreamForPlayer(playerid,"http://stream.dream-radio.eu:8100/listen.pls");
  38. }
  39. if(listitem==4)
  40. {
  41. StopAudioStreamForPlayer(playerid);
  42. }
  43. }
  44. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement