Filipicx

Mp3 Radio by Filipicx

Oct 17th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. //mp3 Radio by Filipicx
  2. //Moj e-mail: [email protected]
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6.  
  7. #define FILTERSCRIPT
  8.  
  9. #define SCM SendClientMessage
  10.  
  11. #define green 0x33FF33AA
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n--------------------------------------");
  16. print(" SA:MP mp3 Muzika by Filipicx ");
  17. print("--------------------------------------\n");
  18. return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23. print("\n--------------------------------------");
  24. print(" Hvala sto koristite ovu filterscriptu!");
  25. print("--------------------------------------\n");
  26. return 1;
  27. }
  28.  
  29. CMD:mp3pomoc(playerid, params[]) {
  30. SCM(playerid, green, "Radio uzivo sa [Vase Ime Servera]");
  31. SCM(playerid, green, "Koristi /mp3 da bi video/la Radio stanice!");
  32. SCM(playerid, green, "Da ugasis radio kucaj /ugasimp3.");
  33. return 1;
  34. }
  35.  
  36. public OnPlayerConnect(playerid)
  37. {
  38. SendClientMessageToAll(green, "Ovaj server koristi mp3 Radio. Kucajte /mp3pomoc. Ucitavanje...");
  39. }
  40.  
  41. CMD:mp3(playerid, params[]) {
  42. SCM(playerid, green, "/radio1 - Radio CNR");
  43. SCM(playerid, green, "/radio2 - Radio Rap");
  44. SCM(playerid, green, "/radio3 - Radio Dubstep");
  45. return 1;
  46.  
  47. }
  48. ///////////////////////////////////////////////////////////
  49. CMD:ugasimp3(playerid, params[]) {
  50. StopAudioStreamForPlayer(playerid);
  51. SCM(playerid, green,"Ugasio si mp3.");
  52. RemovePlayerAttachedObject(playerid, 4);
  53. }
  54. ///////////////////////////////////////////////////////////
  55. CMD:radio1(playerid, params[]) {
  56. PlayAudioStreamForPlayer(playerid,"http://cnr-radio.com/listen.m3u");
  57. SCM(playerid, green,"Sada slusate CNR Radio!");
  58. SetPlayerAttachedObject(playerid, 4, 19424, 2, 0.050000, -0.014999, 0.000000, 95.000000, 183.000000, 89.000000, 1, 1, 1, 0xffffffff);
  59. }
  60. ///////////////////////////////////////////////////////////
  61. CMD:radio2(playerid, params[]) {
  62. PlayAudioStreamForPlayer(playerid,"http://streaming.radionomy.com/A-RAP-FM-WEB");
  63. SCM(playerid, green,"Sada slusate Radio Rap!");
  64. SetPlayerAttachedObject(playerid, 4, 19424, 2, 0.050000, -0.014999, 0.000000, 95.000000, 183.000000, 89.000000, 1, 1, 1, 0xffffffff);
  65. }
  66. ///////////////////////////////////////////////////////////
  67. CMD:radio3(playerid, params[]) {
  68. PlayAudioStreamForPlayer(playerid,"http://www.dubstep.fm/listen.pls");
  69. SCM(playerid, green,"Sada slusate Radio Dubstep!");
  70. SetPlayerAttachedObject(playerid, 4, 19424, 2, 0.050000, -0.014999, 0.000000, 95.000000, 183.000000, 89.000000, 1, 1, 1, 0xffffffff);
  71. }
  72. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  73. ///////////////////////////////////////////////////////////////////////////////////////////////////////
  74. /////////////////////////////////////////////////////////////////////////////////////////////////////// by Filipicx 2015
Advertisement
Add Comment
Please, Sign In to add comment