Guest User

MusicBox

a guest
Feb 3rd, 2017
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.84 KB | None | 0 0
  1. /*
  2. Music Box Filterscript
  3. Made by: Jevtic
  4. INFO: Jednostavna FS samo ukljucite
  5. komandom i pusta samo pesme ne morate
  6. stalno kopirati linkove pesmi automatski sve radi
  7. samo morate pre toga kopirati linkove pesmi sa kiwi-a
  8. nisam pronasao dosad nikakve bagove ako pronadjete
  9. prijavite :
  10. zbsamp.com - Jevtic Script
  11. balkansamp.com - Jevtic Script
  12.  
  13. INFO : 1. Pesma - MCN - Zadnji Ples
  14. INFO : 2. Pesma - Smoke Mardeljano - 40 Lajni
  15. */
  16. #include < a_samp >
  17. #include < YSI\y_commands >
  18.  
  19. #define SCM SendClientMessage
  20. #define SCMA SendClientMessageToAll
  21.  
  22. #define CRVENA "{FF0000}"
  23. #define BELA "{FFFFFF}"
  24.  
  25. #pragma tabsize 0
  26.  
  27. // Ovde dodati vase pesme i prilagotiti vasoj skripti
  28.  
  29. #define Music1 "http://srv65.clipconverter.cc/download/lritqIiK1HOwZW5xl5eYbGlh5KWmqW9t4pSXcG9goWhrY3G0qc%2FMqHyf1qiZpa2d2A%3D%3D/MCN%20-%20Zadnji%20Ples.mp3"
  30. #define Music2 "http://srv69.clipconverter.cc/download/4pWccHFinGdparWr2NmZcbVhnGpqY3JunZubtHyc0aJ3oqeuy9XXnas%3D/Smoke%20Mardeljano-%2040%20Lajni%20%28OFFICIAL%20VIDEO%29.mp3"
  31.  
  32.  
  33. new TrajanjePesme;
  34.  
  35.  
  36. public OnPlayerConnect(playerid)
  37. {
  38. MusicBox(playerid);
  39. return 1;
  40. }
  41.  
  42. public OnFilterScriptInit()
  43. {
  44. print("==============================");
  45. print(" Sve pesme su uspesno ucitane ");
  46. print(" Created by: Jevtic ");
  47. print("==============================");
  48. TrajanjePesme = SetTimer("MusicBox", 280000, 1);
  49. return 1;
  50. }
  51.  
  52. public OnFilterScriptExit()
  53. {
  54. return 1;
  55. }
  56.  
  57. YCMD:musicon(playerid,params[],help)
  58. {
  59. #pragma unused help
  60. MusicBox(playerid);
  61. SCM(playerid, -1, ""CRVENA"MUSICBOX: "BELA"Uspesno ste pustili muziku uzivajte ako zelite da iskljucite (/musicoff)!");
  62. return 1;
  63. }
  64.  
  65. YCMD:musicoff(playerid,params[],help)
  66. {
  67. #pragma unused help
  68. StopAudioStreamForPlayer(playerid);
  69. SCM(playerid,-1,""CRVENA"Uspesno ste iskljucili muziku ako zelite ponovo da je ukljucite (/musicon)!");
  70. KillTimer(TrajanjePesme);
  71. return 1;
  72. }
  73.  
  74. forward MusicBox(playerid);
  75. public MusicBox(playerid)
  76. {
  77. switch(random(2)) // Ako povecate broj pesmi povecati ovaj broj
  78. {
  79. case 0:
  80. {
  81. SCM(playerid,-1, ""CRVENA"MUSICBOX: "BELA"Pojacajte zvucnike krenuo je pevati MCN - Zadnji ples");
  82. SCM(playerid,-1, ""CRVENA"MUSICBOX: "BELA"Ako zelite da iskljucite ukucajte (/musicoff)");
  83. PlayAudioStreamForPlayer(playerid, Music1);
  84. }
  85. case 1:
  86. {
  87. SCM(playerid,-1, ""CRVENA"MUSICBOX: "BELA"Pojacajte zvucnike krenuo je pevati Smoke Mardeljano - 40 Lajni");
  88. SCM(playerid,-1, ""CRVENA"MUSICBOX: "BELA"Ako zelite da iskljucite ukucajte (/musicoff)");
  89. PlayAudioStreamForPlayer(playerid, Music2);
  90. }
  91. }
  92. }
Advertisement
Add Comment
Please, Sign In to add comment