Guest User

Untitled

a guest
Sep 13th, 2014
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 16.98 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <foreach>
  4. #define COLOR_GRAY 0xAFAFAFAA
  5. #define COLOR_GREY 0xAFAFAFAA
  6. #define COLOR_GREEN 0x33AA33AA
  7. #define COLOR_PURPLE 0xC2A2DAAA
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n***********************************");
  14.     print(" MP3 Filterscript By Eze Aka Uldis");
  15.     print("***********************************\n");
  16.     return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21.     return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28.     print("\n***********************************");
  29.     print(" MP3 Filterscript By Eze Aka Uldis Unloadded!");
  30.     print("***********************************\n");
  31. }
  32.  
  33. #endif
  34.  
  35. CMD:mp3(playerid, params[])
  36. {
  37.     if(isnull(params))
  38.     {
  39.         SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}USAGE: /mp3 [Music ID] (0 - Turn of the MP3 Player.)");
  40.         SendClientMessage(playerid, COLOR_GREEN, "(1)Gangnam Style (2)Eminem No Love (3)The Cataracs Top Of The World (4)Stupid Motha Fucka (5)Pumped Up Kicks (6)Eminem - Not Afraid");
  41.         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");
  42.         SendClientMessage(playerid, COLOR_GREEN, "(13)Bruno Mars billionaire(14) Eminem - Yellow Brick Road (15)Chief Keef - Rollin (16)Chief Keef - Save that Shit");
  43.         SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(17)Snoop Dog - (18)Real One Neon Hitch - Fuck You Betta (19)The Script - Hall of Fame (20)Modestep - Sunlight");
  44.         SendClientMessage(playerid, COLOR_GREEN, "(21)Modestep - Feel Good(22)Knife party - Bonfire(23)Knife party - Centipeade(24)Knife party - Rage Valley");
  45.         SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(25)Skillex Bangrang(26)Skillex Ruffneck(27)Richboy - I love you(28)Gangsta Boo - Nothing to a Gangsta");
  46.         SendClientMessage(playerid, COLOR_GREEN, "(29)Chief Keef - Appreciation(30)Chief Keef - I don't like(31)Chief Keef - Soulja Boy(32)Chief Keef - Everyday");
  47.         SendClientMessage(playerid, COLOR_GRAY, "{99FFFF}(33)Chief Keef - 3Hunna(34)Jojo - Coming for you(35)Jojo - Breezy(36)Jojo - Leave get out");
  48.         SendClientMessage(playerid, COLOR_GREEN, "(37)Jojo - 3Hunna(38)Rosoce - I wanna be a rap star(39)Crucial Star(40)No Doubt - Settle Down(41)Flo Rida - Whistle");
  49.     }
  50.     new string[128];
  51.     switch(strval(params)) {
  52.         case 0: {
  53.             format(string, sizeof(string), "* %s dips his/her hands into his/her pockets turning the mp3 player off.",GetPlayerNameEx(playerid));
  54.             foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)){
  55.                 StopAudioStreamForPlayer(playerid);
  56.             }
  57.         }
  58.         case 1: {
  59.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Gangnam Style' Song on.",GetPlayerNameEx(playerid));
  60.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m9v2ujdS2q1r5dxz2o1.mp3");
  61.         }
  62.         case 2: {
  63.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Eminem No Love' Song on.",GetPlayerNameEx(playerid));
  64.             PlayAudioStreamForPlayer(playerid, "http://a1.radioplanet.tv/2010/06/EminemLilWayneNoLove.mp3");
  65.         }
  66.         case 3: {
  67.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'The Cataracs Top Of The World' Song on.",GetPlayerNameEx(playerid));
  68.             PlayAudioStreamForPlayer(playerid, "http://yusuke69.free.fr/Musique/Top-of-the-World.mp3");
  69.         }
  70.         case 4: {
  71.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Stupid Motha Fucka' Song on.",GetPlayerNameEx(playerid));
  72.             PlayAudioStreamForPlayer(playerid, "http://mediacloud.whirled.com/67f791aebe765f71d8fd82bd19de58b1c05bd27e.mp3");
  73.         }
  74.         case 5: {
  75.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Pumped Up Kicks' Song on.",GetPlayerNameEx(playerid));
  76.             PlayAudioStreamForPlayer(playerid, "http://www.colorsandthings.com/wp-content/uploads/2011/02/Pumped-Up-Kicks.mp3");
  77.         }
  78.         case 6: {
  79.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Eminem Not Afraid' Song on.",GetPlayerNameEx(playerid));
  80.             PlayAudioStreamForPlayer(playerid, "http://iwapsex.org/newvideo/mz/eminem-not_afraid_64.mp3");
  81.         }
  82.         case 7: {
  83.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Young wild and free' Song on.",GetPlayerNameEx(playerid));
  84.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_lnnwbxHZNk1qdqek9o1.mp3");
  85.         }
  86.         case 8: {
  87.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Wild Ones' Song on.",GetPlayerNameEx(playerid));
  88.             PlayAudioStreamForPlayer(playerid, "http://sportsrantz.com/biggtv/files/2012/04/wild-ones-flo-rida.mp3");
  89.         }
  90.         case 9: {
  91.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Sexy Bitch' Song on.",GetPlayerNameEx(playerid));
  92.             PlayAudioStreamForPlayer(playerid, "http://www.hulkshare.com/dl/zn5nnt9gjqmj/sexy_bitch.mp3");
  93.         }
  94.         case 10: {
  95.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Akon - Lonely' Song on.",GetPlayerNameEx(playerid));
  96.             PlayAudioStreamForPlayer(playerid, "http://www.fizzlive.com/media/uploads/2/1/7/9/67059/audio_67059hzynfcruq16brpfucncrax7.mp3");
  97.         }
  98.         case 11: {
  99.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Bruno Mars - Runaway Baby' Song on.",GetPlayerNameEx(playerid));
  100.             PlayAudioStreamForPlayer(playerid, "http://04.media.v4.skyrock.com/music/044/809/044809719a00e2b41cfc102152432295.mp3");
  101.         }
  102.         case 12: {
  103.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Bruno Mars - The lazy Song!' Song on.",GetPlayerNameEx(playerid));
  104.             PlayAudioStreamForPlayer(playerid, "http://1cd.palco.fm/1/1/7/d/divulgamixsound--the-lazy-song.mp3");
  105.         }
  106.         case 13: {
  107.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Bruno Mars billionaire' Song on.",GetPlayerNameEx(playerid));
  108.             PlayAudioStreamForPlayer(playerid, "http://rbebenek.com/music/US_Top_40_9-18-2010/23-travie_mccoy_feat._bruno_mars_-_billionaire.mp3");
  109.         }
  110.         case 14: {
  111.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Eminem - Yellow Brick Road' Song on.",GetPlayerNameEx(playerid));
  112.             PlayAudioStreamForPlayer(playerid, "http://www.btc.co.uk/jim/yellow.mp3");
  113.         }
  114.         case 15: {
  115.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef- Rollin' Song on.",GetPlayerNameEx(playerid));
  116.             PlayAudioStreamForPlayer(playerid, "http://cdn.epitonic.com/uploads/tracks/Chief_Keef_-_Rollin.mp3");
  117.         }
  118.         case 16: {
  119.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - Save that shit!' Song on.",GetPlayerNameEx(playerid));
  120.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m6ga1nLm4O1qiewo4o1.mp3");
  121.         }
  122.         case 17: {
  123.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Snoop Dog - Real One' Song on.",GetPlayerNameEx(playerid));
  124.             PlayAudioStreamForPlayer(playerid, "http://mixtapemonkey.com/mixtapes/zip/111/Snoop%20Dogg%20-%20Tha%20Blue%20Carpet%20Treatment%20Tha%20Mixtape/18)%20snoop%20dog%20-%20real%20one.mp3");
  125.         }
  126.         case 18: {
  127.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Neon Hitch - Fuck You Betta' Song on.",GetPlayerNameEx(playerid));
  128.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m0ntxnYUgd1qd60uco1.mp3");
  129.         }
  130.         case 19: {
  131.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'The Script - Hill of Fame",GetPlayerNameEx(playerid));
  132.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m814c35IQk1rycog8o1.mp3");
  133.         }
  134.         case 20: {
  135.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Modestep - Sunlight' Song on.",GetPlayerNameEx(playerid));
  136.             PlayAudioStreamForPlayer(playerid, "http://lsdm.legalsounds.com/download/e77d14bf72e9bbbd6e9058da2feab5d9/101_-_modestep_-_sunlight_-_ukf_dubstep.mp3");
  137.         }
  138.         case 21: {
  139.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Modestep - Feel Good' Song on.",GetPlayerNameEx(playerid));
  140.             PlayAudioStreamForPlayer(playerid, "http://www.rollingtuff.com/wp-content/uploads/2011/09/Modestep-Feel-Good.mp3");
  141.         }
  142.         case 22: {
  143.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Knife party - Bonfire' Song on.",GetPlayerNameEx(playerid));
  144.             PlayAudioStreamForPlayer(playerid, "http://q.soundowl.com/3hss.mp3");
  145.         }
  146.         case 23: {
  147.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Knife party - Centipeade' Song on.",GetPlayerNameEx(playerid));
  148.             PlayAudioStreamForPlayer(playerid, "http://promodj.com/download/3549995/Knife_Party_Centipede_Boys_Electro_Mash_Up.mp3");
  149.         }
  150.         case 24: {
  151.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Knife party - Rage Valley' Song on.",GetPlayerNameEx(playerid));
  152.             PlayAudioStreamForPlayer(playerid, "http://dl.soundowl.com/3h69.mp3");
  153.         }
  154.         case 25: {
  155.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Skillex Bangrang' Song on.",GetPlayerNameEx(playerid));
  156.             PlayAudioStreamForPlayer(playerid, "http://promodj.com/download/3553815/Skrillex_Bangarang_Dj_Geny_Tur_remix_DEMO.mp3");
  157.         }
  158.         case 26: {
  159.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Skillex Ruffneck' Song on.",GetPlayerNameEx(playerid));
  160.             PlayAudioStreamForPlayer(playerid, "http://promodj.com/source/3547611/Skrillex_Ruffneck_FULL_Flex_Dj_Vapnjar_remix_2012.mp3");
  161.         }
  162.         case 27: {
  163.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Richboy - I love you' Song on.",GetPlayerNameEx(playerid));
  164.             PlayAudioStreamForPlayer(playerid, "http://adstorage.jamba.net/storage/view/325/0/an/And_I_Love_You.mp3");
  165.         }
  166.         case 28: {
  167.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Gangsta Boo - Nothing to a Gangsta' Song on.",GetPlayerNameEx(playerid));
  168.             PlayAudioStreamForPlayer(playerid, "http://www.drum-squad.com/site/mixtape/boo_tracks/03_Nothing_to_a_Gangsta.mp3");
  169.         }
  170.         case 29: {
  171.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - Appreciation' Song on.",GetPlayerNameEx(playerid));
  172.             PlayAudioStreamForPlayer(playerid, "http://cdn.epitonic.com/uploads/tracks/Chief_Keef-Appreciation_1.mp3");
  173.         }
  174.         case 30: {
  175.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - I Don't Like' Song on.",GetPlayerNameEx(playerid));
  176.             PlayAudioStreamForPlayer(playerid, "http://www.theburningear.com/media/2012/07/I-Dont-Like-Dirty.mp3");
  177.         }
  178.         case 31: {
  179.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - Soulja Boy' Song on.",GetPlayerNameEx(playerid));
  180.             PlayAudioStreamForPlayer(playerid, "http://rapradar.files.wordpress.com/2012/08/soulja-boy-ft-chief-keef-d-flores-ugly.mp3");
  181.         }
  182.         case 32: {
  183.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - Everyday' Song on.",GetPlayerNameEx(playerid));
  184.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_m2ej6769HI1r2q4c8o1.mp3");
  185.         }
  186.         case 33: {
  187.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Chief Keef - 3Hunna' Song on.",GetPlayerNameEx(playerid));
  188.             PlayAudioStreamForPlayer(playerid, "http://a.tumblr.com/tumblr_lyjqx9T2fm1qf5cqmo1.mp3");
  189.         }
  190.         case 34: {
  191.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Jojo - Coming for ya' Song on.",GetPlayerNameEx(playerid));
  192.             PlayAudioStreamForPlayer(playerid, "http://cfs.tistory.com/attach/4133/1151480087.mp3");
  193.         }
  194.         case 35: {
  195.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Jojo - Breezy' Song on.",GetPlayerNameEx(playerid));
  196.             PlayAudioStreamForPlayer(playerid, "http://www.angelfire.com/crazy/adork_uhble/Jojo_-_Breezy.mp3");
  197.         }
  198.         case 36: {
  199.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Jojo - Leave get out' Song on.",GetPlayerNameEx(playerid));
  200.             PlayAudioStreamForPlayer(playerid, "http://traceysdesigns.com/music/JoJo_LeaveGetOut.mp3");
  201.         }
  202.         case 37: {
  203.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Jojo - 3Hunna' Song on.",GetPlayerNameEx(playerid));
  204.             PlayAudioStreamForPlayer(playerid, "http://www.hulkshare.com/dl/eug0wlf2k90u/Jo_Jo-_3hunna_k.mp3");
  205.         }
  206.         case 38: {
  207.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Rosoce - I wanna be a Rap Star' Song on.",GetPlayerNameEx(playerid));
  208.             PlayAudioStreamForPlayer(playerid, "http://www.hulkshare.com/dl/o5s599bv7ipv/15._roscoe_-_i_wanna_be_a_rap_star_%28produsa_de_roscoe%29.mp3");
  209.         }
  210.         case 39: {
  211.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Crucial Star' Song on.",GetPlayerNameEx(playerid));
  212.             PlayAudioStreamForPlayer(playerid, "http://www.hulkshare.com/dl/95k7kxvd4fyo/crucial_star_-_scr_%28super_crucial_rap%29.mp3");
  213.         }
  214.         case 40: {
  215.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'No Doubt - Settle Down' Song on.",GetPlayerNameEx(playerid));
  216.             PlayAudioStreamForPlayer(playerid, "http://wingedbox.com/system/attachments/20742/original/No_Doubt_-_Settle_Down.mp3");
  217.         }
  218.         case 41: {
  219.             format(string, sizeof(string), "* %s Dips his/her hand into his/her pocket taking out a mp3 player, turning 'Flo Rida - Whistle' Song on.",GetPlayerNameEx(playerid));
  220.             PlayAudioStreamForPlayer(playerid, "http://www.audiopoisk.com/files/flo-rida/whistle-baby--2770037.mp3");
  221.         }
  222.         default: return SendClientMessage(playerid, COLOR_GRAY, "{330000}<!>{99FFFF}Invalid music ID! Please try again with the music ID!");
  223.     }
  224.    
  225.     ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  226.     return 1;
  227. }
  228. //end
  229. stock GetPlayerNameEx(playerid)
  230. {
  231.     new pName[25];
  232.     GetPlayerName(playerid, pName, sizeof(pName));
  233.     return pName;
  234. }
  235. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  236.  
  237. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  238. {
  239.     if(IsPlayerConnected(playerid))
  240.     {
  241.         new Float:posx, Float:posy, Float:posz;
  242.         new Float:oldposx, Float:oldposy, Float:oldposz;
  243.         new Float:tempposx, Float:tempposy, Float:tempposz;
  244.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  245.         //radi = 2.0; //Trigger Radius
  246.         for(new i = 0; i < MAX_PLAYERS; i++)
  247.         {
  248.             if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  249.             {
  250.                 GetPlayerPos(i, posx, posy, posz);
  251.                 tempposx = (oldposx -posx);
  252.                 tempposy = (oldposy -posy);
  253.                 tempposz = (oldposz -posz);
  254.                 //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
  255.                 if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
  256.                 {
  257.                     SendClientMessage(i, col1, string);
  258.                 }
  259.                 else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
  260.                 {
  261.                     SendClientMessage(i, col2, string);
  262.                 }
  263.                 else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
  264.                 {
  265.                     SendClientMessage(i, col3, string);
  266.                 }
  267.                 else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
  268.                 {
  269.                     SendClientMessage(i, col4, string);
  270.                 }
  271.                 else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
  272.                 {
  273.                     SendClientMessage(i, col5, string);
  274.                 }
  275.             }
  276.             else
  277.             {
  278.                 SendClientMessage(i, col1, string);
  279.             }
  280.         }
  281.     }
  282.     return 1;
  283.     }
Advertisement
Add Comment
Please, Sign In to add comment