Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=================GrandMaster====== MP3 System=============//
- //===========Uzivajte :P======================================//
- #include <a_samp>
- #include <zcmd>
- #include <foreach>
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_GRAY 0xBFC0C2FF
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Mp3 System==============================");
- print("By: GrandMaster=========================");
- print("Village Rebirth Uskoro :)===============");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(":::::::MP3 systme by GrandMaster::::::::");
- print("----------------------------------\n");
- }
- #endif
- stock GetPlayerNameEx(playerid)
- {
- new pName[25];
- GetPlayerName(playerid, pName, sizeof(pName));
- return pName;
- }
- CMD:mp3(playerid, params[]) {
- if(isnull(params)) {
- SendClientMessage(playerid, COLOR_GREEN, "{33FF00}Koristite: /mp3 [Id Pjesme]");
- 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");
- 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");
- SendClientMessage(playerid, COLOR_GREEN, "{33FF00}/13/Moje Leto/14/ Samo jedna zena zna");
- return 1;
- }
- new string[128];
- switch(strval(params)) {
- case 0: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga.",GetPlayerNameEx(playerid));
- foreach(Player, i) if(GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)){
- StopAudioStreamForPlayer(i);
- }
- }
- case 1: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sve su zene oko mene....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/0p0c39t5zw/dino_dizdarevic-sve_su_zene_oko_mene_harmonika_.mp3");
- }
- case 2: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Necu da me starost pita.....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/3ap98jd0tu/milan_mitrovic_-_necu_da_me_starost_pita.mp3");
- }
- case 3: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sipaj nepitaj.....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/6qtk0v78jr/sasa_kapor_-_sipaj_ne_pitaj.mp3");
- }
- case 4: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Hrabro srce....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/ya4l9b1j85/milan_mitrovic_-_hrabro_srce.mp3");
- }
- case 5: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Noci balkanske....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/o9pe0p486v/andrija_markovic_-_noci_balkanske_.mp3");
- }
- case 6: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Kad tad.",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/4h7nt3qqij/milan_dincic_dinca_-_kad_tad.mp3");
- }
- case 7: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Sad sve imas....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/7herp9y380/darko_lazic_-_sad_sve_imas_.mp3");
- }
- case 8: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Luda noc.",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/yovbo9x5zu/olja_karleusa_mc_yankoo_-_luda_noc.mp3");
- }
- case 9: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Freaky like me....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/k8o1kjxhfq/madcon_feat._ameerah_-_freaky_like_me_official_hd_video_.mp3");
- }
- case 10: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'There she goes....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/2z7p15v4x9/taio_cruz_feat._pitbull_-_there_she_goes_hq_2011_new.mp3");
- }
- case 11: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Memories.",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/w1dpr08c3t/david_guetta_feat_kid_cudi_-_memories_official_videoclip_.mp3");
- }
- case 12: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'The lazy Song....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://1cd.palco.fm/1/1/7/d/divulgamixsound--the-lazy-song.mp3");
- }
- case 13: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Moje leto.....",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/vmg76gf65a/in_vivo_ft._boyant_-_moje_leto_official_video_2012_hd.mp3");
- }
- case 14: {
- format(string, sizeof(string), "* %s Vadi svoj mp3 i pali ga, paljenje 'Samo jedna zena zna.",GetPlayerNameEx(playerid));
- PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/o0h5d94j5d/osman_hadzic_-_samo_jedna_zena_zna_official_hd_video_.mp3");
- }
- default: return SendClientMessage(playerid, COLOR_GREEN, "{330000}/!/{99FFFF}Pogresan broj pjesme[Samo do 14!].");
- }
- ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- return 1;
- }
- public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SendClientMessage(i, col5, string);
- }
- }
- else
- {
- SendClientMessage(i, col1, string);
- }
- }
- }
- return 1;
- }
- //==================Village Rebirth Uskoro==============//
- //=================Skripter:Dimi=======================//
- //=================Maper:Ivan(Stretbooy)===============//
- //=================GrandMaster==Village Rebirth Player=//
Advertisement
Add Comment
Please, Sign In to add comment