Guest User

Untitled

a guest
May 2nd, 2013
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.14 KB | None | 0 0
  1. //=================GrandMaster====== MP3 System=============//
  2. //===========Uzivajte :P======================================//
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6. #include <foreach>
  7. #define COLOR_GREEN 0x33AA33AA
  8. #define COLOR_PURPLE 0xC2A2DAAA
  9. #define COLOR_GRAY 0xBFC0C2FF
  10. #if defined FILTERSCRIPT
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print("Mp3 System==============================");
  16. print("By: GrandMaster=========================");
  17. print("Village Rebirth Uskoro :)===============");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. return 1;
  25. }
  26.  
  27. #else
  28.  
  29. main()
  30. {
  31. print("\n----------------------------------");
  32. print(":::::::MP3 systme by GrandMaster::::::::");
  33. print("----------------------------------\n");
  34. }
  35.  
  36. #endif
  37.  
  38. stock GetPlayerNameEx(playerid)
  39. {
  40. new pName[25];
  41. GetPlayerName(playerid, pName, sizeof(pName));
  42. return pName;
  43. }
  44.  
  45. CMD:mp3(playerid, params[]) {
  46. if(isnull(params)) {
  47. SendClientMessage(playerid, COLOR_GREEN, "{33FF00}Koristite: /mp3 [Id Pjesme]");
  48. SendClientMessage(playerid, COLOR_GREEN, "{33FF00}/1/Sve su zene oko mene/2/necu da me starost pita /3/sipaj ne pitaj /4/hrabro srce /5/noci balkanske /6/kad tad");
  49. SendClientMessage(playerid, COLOR_GREEN, "{33FF00}/7/sad sve imas /8/ luda noc /9/freaky like me /10/ there she goes /11/memories /12/Bruno Mars The Lazy Song");
  50. SendClientMessage(playerid, COLOR_GREEN, "{33FF00}/13/Moje Leto/14/ Samo jedna zena zna");
  51. return 1;
  52. }
  53.  
  54. new string[128];
  55. switch(strval(params)) {
  56. case 0: {
  57. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga.",GetPlayerNameEx(playerid));
  58. foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)){
  59. StopAudioStreamForPlayer(i);
  60. }
  61. }
  62. case 1: {
  63. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sve su zene oko mene....",GetPlayerNameEx(playerid));
  64. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/0p0c39t5zw/dino_dizdarevic-sve_su_zene_oko_mene_harmonika_.mp3");
  65. }
  66. case 2: {
  67. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Necu da me starost pita.....",GetPlayerNameEx(playerid));
  68. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/3ap98jd0tu/milan_mitrovic_-_necu_da_me_starost_pita.mp3");
  69. }
  70. case 3: {
  71. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sipaj nepitaj.....",GetPlayerNameEx(playerid));
  72. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/6qtk0v78jr/sasa_kapor_-_sipaj_ne_pitaj.mp3");
  73. }
  74. case 4: {
  75. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Hrabro srce....",GetPlayerNameEx(playerid));
  76. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/ya4l9b1j85/milan_mitrovic_-_hrabro_srce.mp3");
  77. }
  78. case 5: {
  79. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Noci balkanske....",GetPlayerNameEx(playerid));
  80. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/o9pe0p486v/andrija_markovic_-_noci_balkanske_.mp3");
  81. }
  82. case 6: {
  83. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Kad tad.",GetPlayerNameEx(playerid));
  84. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/4h7nt3qqij/milan_dincic_dinca_-_kad_tad.mp3");
  85. }
  86. case 7: {
  87. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sad sve imas....",GetPlayerNameEx(playerid));
  88. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/7herp9y380/darko_lazic_-_sad_sve_imas_.mp3");
  89. }
  90. case 8: {
  91. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Luda noc.",GetPlayerNameEx(playerid));
  92. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/yovbo9x5zu/olja_karleusa_mc_yankoo_-_luda_noc.mp3");
  93. }
  94. case 9: {
  95. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Freaky like me....",GetPlayerNameEx(playerid));
  96. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/k8o1kjxhfq/madcon_feat._ameerah_-_freaky_like_me_official_hd_video_.mp3");
  97. }
  98. case 10: {
  99. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'There she goes....",GetPlayerNameEx(playerid));
  100. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/2z7p15v4x9/taio_cruz_feat._pitbull_-_there_she_goes_hq_2011_new.mp3");
  101. }
  102. case 11: {
  103. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Memories.",GetPlayerNameEx(playerid));
  104. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/w1dpr08c3t/david_guetta_feat_kid_cudi_-_memories_official_videoclip_.mp3");
  105. }
  106. case 12: {
  107. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'The lazy Song....",GetPlayerNameEx(playerid));
  108. PlayAudioStreamForPlayer(playerid, "http://1cd.palco.fm/1/1/7/d/divulgamixsound--the-lazy-song.mp3");
  109. }
  110. case 13: {
  111. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Moje leto.....",GetPlayerNameEx(playerid));
  112. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/vmg76gf65a/in_vivo_ft._boyant_-_moje_leto_official_video_2012_hd.mp3");
  113. }
  114. case 14: {
  115. format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Samo jedna zena zna.",GetPlayerNameEx(playerid));
  116. PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/o0h5d94j5d/osman_hadzic_-_samo_jedna_zena_zna_official_hd_video_.mp3");
  117. }
  118. default: return SendClientMessage(playerid, COLOR_GREEN, "{330000}/!/{99FFFF}Pogresan broj pjesme[Samo do 14!].");
  119. }
  120.  
  121. ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  122.  
  123. return 1;
  124. }
  125.  
  126. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  127. {
  128. if(IsPlayerConnected(playerid))
  129. {
  130. new Float:posx, Float:posy, Float:posz;
  131. new Float:oldposx, Float:oldposy, Float:oldposz;
  132. new Float:tempposx, Float:tempposy, Float:tempposz;
  133. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  134. for(new i = 0; i < MAX_PLAYERS; i++)
  135. {
  136. if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  137. {
  138. GetPlayerPos(i, posx, posy, posz);
  139. tempposx = (oldposx -posx);
  140. tempposy = (oldposy -posy);
  141. tempposz = (oldposz -posz);
  142. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  143. {
  144. SendClientMessage(i, col1, string);
  145. }
  146. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  147. {
  148. SendClientMessage(i, col2, string);
  149. }
  150. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  151. {
  152. SendClientMessage(i, col3, string);
  153. }
  154. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  155. {
  156. SendClientMessage(i, col4, string);
  157. }
  158. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  159. {
  160. SendClientMessage(i, col5, string);
  161. }
  162. }
  163. else
  164. {
  165. SendClientMessage(i, col1, string);
  166. }
  167. }
  168. }
  169. return 1;
  170. }
  171. //==================Village Rebirth Uskoro==============//
  172. //=================Skripter:Dimi=======================//
  173. //=================Maper:Ivan(Stretbooy)===============//
  174. //=================GrandMaster==Village Rebirth Player=//
Advertisement
Add Comment
Please, Sign In to add comment