Advertisement
Guest User

By D3VIL7 For Astonishing Roleplay

a guest
Oct 1st, 2012
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.15 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4. #include <a_samp>
  5. #include <zcmd>
  6. #define COLOR_GRAY 0xBFC0C2FF
  7. #include <foreach>
  8. #define COLOR_PURPLE 0xC2A2DAAA
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print("Filterscript by D3VIL7");
  15. print("Skype: mr.badyboy");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29. print("\n----------------------------------");
  30. print("SHUTING DOWN THE MP3 PLAYER NOO!");
  31. print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. stock GetPlayerNameEx(playerid)
  37. {
  38. new pName[25];
  39. GetPlayerName(playerid, pName, sizeof(pName));
  40. return pName;
  41. }
  42.  
  43. CMD:mp3(playerid, params[]) {
  44. if(isnull(params)) {
  45. SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}USAGE: /mp3 [Music ID] (0 - Turn of the MP3 Player.)");
  46. SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(1)Gangnam Style{330000}<!>{99FFFF} (2)Eminem No Love (3)The Cataracs Top Of The World (4)Stupid Motha Fucka (5)Pumped Up Kicks (6)Eminem - Not Afraid");
  47. SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(7)Young wild and free (8) Wild Ones (9)Sexy Bitch (10) Lonely (11)Bruno Mars Runaway Baby (12)Bruno Mars The Lazy Song");
  48. SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(13)Bruno Mars billionaire(14) Eminem - Yellow Brick Road");
  49. return 1;
  50. }
  51.  
  52. new string[128];
  53. switch(strval(params)) {
  54. case 0: {
  55. format(string, sizeof(string), "* %s dips his hands into his pockets turning the mp3 player off.",GetPlayerNameEx(playerid));
  56. foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)){
  57. StopAudioStreamForPlayer(i);
  58. }
  59. }
  60. case 1: {
  61. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Gangnam Style' Song on.",GetPlayerNameEx(playerid));
  62. PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m9v2ujdS2q1r5dxz2o1.mp3");
  63. }
  64. case 2: {
  65. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Eminem No Love' Song on.",GetPlayerNameEx(playerid));
  66. PlayAudioStreamForPlayer(playerid, "http://a1.radioplanet.tv/2010/06/EminemLilWayneNoLove.mp3");
  67. }
  68. case 3: {
  69. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'The Cataracs Top Of The World' Song on.",GetPlayerNameEx(playerid));
  70. PlayAudioStreamForPlayer(playerid, "http://yusuke69.free.fr/Musique/Top-of-the-World.mp3");
  71. }
  72. case 4: {
  73. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Stupid Motha Fucka' Song on.",GetPlayerNameEx(playerid));
  74. PlayAudioStreamForPlayer(playerid, "http://mediacloud.whirled.com/67f791aebe765f71d8fd82bd19de58b1c05bd27e.mp3");
  75. }
  76. case 5: {
  77. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Pumped Up Kicks' Song on.",GetPlayerNameEx(playerid));
  78. PlayAudioStreamForPlayer(playerid, "http://www.colorsandthings.com/wp-content/uploads/2011/02/Pumped-Up-Kicks.mp3");
  79. }
  80. case 6: {
  81. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Eminem Not Afraid' Song on.",GetPlayerNameEx(playerid));
  82. PlayAudioStreamForPlayer(playerid, "http://iwapsex.org/newvideo/mz/eminem-not_afraid_64.mp3");
  83. }
  84. case 7: {
  85. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Young wild and free' Song on.",GetPlayerNameEx(playerid));
  86. PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_lnnwbxHZNk1qdqek9o1.mp3");
  87. }
  88. case 8: {
  89. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Wild Ones' Song on.",GetPlayerNameEx(playerid));
  90. PlayAudioStreamForPlayer(playerid, "http://sportsrantz.com/biggtv/files/2012/04/wild-ones-flo-rida.mp3");
  91. }
  92. case 9: {
  93. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Sexy Bitch' Song on.",GetPlayerNameEx(playerid));
  94. PlayAudioStreamForPlayer(playerid, "http://www.hulkshare.com/dl/zn5nnt9gjqmj/sexy_bitch.mp3");
  95. }
  96. case 10: {
  97. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Akon - Lonely' Song on.",GetPlayerNameEx(playerid));
  98. PlayAudioStreamForPlayer(playerid, "http://www.fizzlive.com/media/uploads/2/1/7/9/67059/audio_67059hzynfcruq16brpfucncrax7.mp3");
  99. }
  100. case 11: {
  101. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Bruno Mars - Runaway Baby' Song on.",GetPlayerNameEx(playerid));
  102. PlayAudioStreamForPlayer(playerid, "http://04.media.v4.skyrock.com/music/044/809/044809719a00e2b41cfc102152432295.mp3");
  103. }
  104. case 12: {
  105. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Bruno Mars - The lazy Song!' Song on.",GetPlayerNameEx(playerid));
  106. PlayAudioStreamForPlayer(playerid, "http://1cd.palco.fm/1/1/7/d/divulgamixsound--the-lazy-song.mp3");
  107. }
  108. case 13: {
  109. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Bruno Mars billionaire' Song on.",GetPlayerNameEx(playerid));
  110. PlayAudioStreamForPlayer(playerid, "http://rbebenek.com/music/US_Top_40_9-18-2010/23-travie_mccoy_feat._bruno_mars_-_billionaire.mp3");
  111. }
  112. case 14: {
  113. format(string, sizeof(string), "* %s Dips his hand into his pocket taking out a mp3 player, turning 'Eminem - Yellow Brick Road' Song on.",GetPlayerNameEx(playerid));
  114. PlayAudioStreamForPlayer(playerid, "http://www.btc.co.uk/jim/yellow.mp3");
  115. }
  116. default: return SendClientMessage(playerid, COLOR_GRAY, "{330000}<!>{99FFFF}Invalid station specified.");
  117. }
  118.  
  119. ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  120.  
  121. return 1;
  122. }
  123.  
  124. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  125. {
  126. if(IsPlayerConnected(playerid))
  127. {
  128. new Float:posx, Float:posy, Float:posz;
  129. new Float:oldposx, Float:oldposy, Float:oldposz;
  130. new Float:tempposx, Float:tempposy, Float:tempposz;
  131. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  132. for(new i = 0; i < MAX_PLAYERS; i++)
  133. {
  134. if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  135. {
  136. GetPlayerPos(i, posx, posy, posz);
  137. tempposx = (oldposx -posx);
  138. tempposy = (oldposy -posy);
  139. tempposz = (oldposz -posz);
  140. if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  141. {
  142. SendClientMessage(i, col1, string);
  143. }
  144. else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  145. {
  146. SendClientMessage(i, col2, string);
  147. }
  148. else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  149. {
  150. SendClientMessage(i, col3, string);
  151. }
  152. else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  153. {
  154. SendClientMessage(i, col4, string);
  155. }
  156. else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  157. {
  158. SendClientMessage(i, col5, string);
  159. }
  160. }
  161. else
  162. {
  163. SendClientMessage(i, col1, string);
  164. }
  165. }
  166. }
  167. return 1;
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement