Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- /////////////////////////////////////////////////////////KEY HANDBRAKE///////////////////////////////////////////////////
- if((newkeys & (KEY_FIRE | KEY_CROUCH)) == (KEY_FIRE | KEY_CROUCH) && (oldkeys & (KEY_FIRE | KEY_CROUCH)) != (KEY_FIRE | KEY_CROUCH))
- {
- new weapon = GetPlayerWeapon(playerid);
- if(weapon == 24)
- {
- ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
- GMT(playerid, "~r~Ne smete da radite C-BUG !", 5000, 1);
- }
- }
- if(PRESSED(KEY_ACTION))
- {
- if(VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
- {
- new Float:Poz[5];
- GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]); //
- ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
- GMT(playerid, "~n~~n~~n~~n~~n~~n~~g~~h~~h~Zabranjeno je skakanje Biciklom !", 5000, 3);
- Dimi_SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]+0.7);
- }
- }
- if(newkeys & KEY_NO)
- {
- if(RadiPosao[playerid] == 1)
- {
- if(PostarCP[playerid] == 1 && PI[playerid][pPosao] == 2)
- {
- new Float:vehPos[ 3 ];
- getPosBehindVehicle( vehicleposta[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
- {
- if( IsPlayerInRangeOfPoint( playerid, 2.0, vehPos[0], vehPos[1], vehPos[2 ] ) )
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- LoopingAnim(playerid, "CARRY", "crry_prtial", 4.1, 0, 1, 1, 1, 1);
- SetPlayerAttachedObject( playerid, KANTICA, 1577, 1, 0.173749, 0.403454, -0.027724, 355.012145, 269.655853, 0.000000, 1.000000, 1.000000, 1.000000 ); // drug_yellow -
- UzeoPoscu[playerid] = 1;
- }
- }
- }
- }
- if(PI[playerid][pPosao] == 8 && Prikupsmeca[playerid] == 1 && SmecarCP[playerid] <=5)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- PlayerTimer[playerid][22] =SetTimerEx("PrikupSmeca",5000,false,"i",playerid);
- ClearAnimations(playerid);
- LoopingAnim(playerid,"MISC", "plunger_01", 2.0, 0, 0, 0, 0, 0);
- GMT(playerid,"Vadjenje smeca...",5000,3);
- Kupism[playerid] = 1;
- }
- }
- if(PI[playerid][pPosao] == 8 && StavljaKamion[playerid] == 1 && Prikupsmeca[playerid] == 0)
- {
- new Float:vehPos[ 3 ];
- if(!IsPlayerInAnyVehicle(playerid))
- getPosBehindVehicle( SmecarskoVozilo[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
- if(IsPlayerInRangeOfPoint(playerid,2,vehPos[0],vehPos[1], vehPos[2]))
- {
- ClearAnimations(playerid);
- RemovePlayerAttachedObject(playerid,0);
- DisablePlayerCheckpoint(playerid);
- StavljaKamion[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SmecarCP[playerid] ++;
- if(SmecarCP[playerid] <=5)
- {
- new rand = random(sizeof(gKontejneri));
- SetPlayerCheckpoint(playerid,gKontejneri[rand][0],gKontejneri[rand][1],gKontejneri[rand][2],2);
- SCM(playerid,-1,""GREEN"[Prikup Smeca] "BELA" Sada idite do sledeceg kontjenera i prikupite smece !");
- }
- if(SmecarCP[playerid] == 6)
- {
- SetPlayerCheckpoint(playerid,2179.2932,-1991.6892,13.5469,5);
- SCM(playerid,-1,""GREEN"[Prikup Smeca] "BELA" Sada idite do deponije i ispraznite kamion !");
- }
- }
- }
- if(PizzaCP[playerid] == 1 && PI[playerid][pPosao] == 3)
- {
- new Float:vehPos[ 3 ];
- getPosBehindVehicle( vehiclepizza[playerid], vehPos[0], vehPos[1], vehPos[2], 0.0 );
- {
- if( IsPlayerInRangeOfPoint( playerid, 2.0, vehPos[0], vehPos[1], vehPos[2 ] ) )
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- SetPlayerAttachedObject( playerid, KANTICA, 1582, 1, 0.006999, 0.539000, 0.014999, 0.000000,94.099998,0.000000, 1.000000,1.000000,1.000000, 0, 0 );
- LoopingAnim(playerid, "CARRY", "crry_prtial", 4.1, 0, 1, 1, 1, 1);
- UzeoPizzu[playerid] = 1;
- }
- }
- }
- }
- }
- }
- if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_JUMP && KEY_SPRINT && GetSpeed(playerid) > 1 )
- {
- bhop[playerid] ++;
- PlayerTimer[playerid][23] =SetTimerEx("BhRestart", 4000, false, "i", playerid);
- if(bhop[playerid] == 4)
- {
- new string[120];
- ApplyAnimation(playerid,"PED","IDLE_tired",3.0,0,1,1,0,5000,1);
- format(string, sizeof(string), "{FF7171}[BUNNY HOP] Skocili ste vise puta dok ste trcali uganuli ste clanak !");
- SCM(playerid, -1, string);
- PlayerTimer[playerid][24] =SetTimerEx("SkokoviBH", 5000, false, "i", playerid);
- UganuoClanak[playerid] = 1;
- }
- }
- if(newkeys & KEY_SECONDARY_ATTACK)
- {
- if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
- {
- SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- for(new i; i < MAX_HOUSE; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]))
- {
- if(PlayerInfo[playerid][pPosedovanjeKuce] == i || PI[playerid][pRent] == i || KucaInfo[i][kZatvoreno] == 0)
- {
- SetPlayerVirtualWorld(playerid, KucaInfo[i][kVW]);
- SetPlayerInterior(playerid, KucaInfo[i][kInt]);
- Dimi_SetPlayerPos(playerid, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid, 1);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- TogglePlayerControllable(playerid, 0);
- if(Snegic == 1)
- {
- DeleteSnow(playerid);
- }
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- {
- if(KucaInfo[i][kNeaktivnost] >=1)
- if(PlayerInfo[playerid][pPosedovanjeKuce] == i)
- {
- KucaInfo[i][kNeaktivnost] = 0;
- SacuvajKucu(i);
- SCM(playerid,-1,"Restartovali ste neaktvinost vase kuce !");
- KuceLP(i);
- }
- }
- }
- else
- {
- GMT(playerid,"~r~ZAKLJUCANO",4000,1);
- return 1;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid, 3.0, KucaInfo[i][kIzlazX], KucaInfo[i][kIzlazY], KucaInfo[i][kIzlazZ]) && GetPlayerVirtualWorld(playerid) == KucaInfo[i][kVW])
- {
- SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0);
- Dimi_SetPlayerPos(playerid, KucaInfo[i][kUlazX], KucaInfo[i][kUlazY], KucaInfo[i][kUlazZ]);
- PlayerInfo[playerid][pInt] = 0;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- SetPlayerWeather(playerid, Prognozasys);
- }
- }
- }
- }
- }
- //keywalk
- if(newkeys & KEY_WALK)
- {
- if(IsPlayerInRangeOfPoint(playerid,7.0,1582.53638, -1637.94421, 12.25903))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] <= 4)
- {
- if(OtvorenaVrata == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(pdvrata, 1581.13635, -1637.94421, 12.25900 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata policijske garaze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju policijske garaze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zpdvrata", 7000, 0);
- OtvorenaVrata = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,4.0,239.5169, 117.9142, 1002.2133))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
- {
- if(OtvorenaS == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(spvrata, 239.5169, 116.6742, 1002.2133 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata Saobracajne policije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata Saobaracjane policije.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zspvrata", 5000, 0);
- OtvorenaS = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,4.0,245.8281, 72.5515, 1002.6397))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 1 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(OtvorenaPD == 1) return SCM(playerid,grey,"Vrata su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(pdgate, 247.1881, 72.5315, 1002.6397 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata Policijske uprave zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata Policijske uprave.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvratapd", 5000, 0);
- OtvorenaPD = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,-669.0455, 923.8087, 12.7896))
- {
- if(PlayerInfo[playerid][pAdmin] == 1341 || PI[playerid][pPosedovanjeKuce] == 991)
- {
- if(OtvorenaMarkela2 == 1) return SCM(playerid,grey,"Sporedna Kapija kuce je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(markelagate2, -666.62622, 923.94635, 12.78959,2.0);
- SCM(playerid,-1,"Otvorili ste sporedna vrata kuce zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i otvara sporedna vrata dvorista", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("ZMarkela2", 7000, 0);
- OtvorenaMarkela2 = 1;
- return 1;
- }
- }
- }
- /////SAJ 1 GATE
- if(IsPlayerInRangeOfPoint(playerid,4.0,294.47754, 189.31209, 1006.17004))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(Otvorenasaj1 == 1) return SCM(playerid,grey,"Vrata 1 saja su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(Sajgate1, 294.47754, 189.31209, 1006.17004 ,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata 1 Saja zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 1 Saj uprave.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvratasaj1", 5000, 0);
- Otvorenasaj1 = 1;
- }
- }
- }
- /////SAJ 2 GATE
- if(IsPlayerInRangeOfPoint(playerid,4.0,230.69368, 169.86789, 1002.06116))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(Otvorenasaj2 == 1) return SCM(playerid,grey,"Vrata 2 saja su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(Sajgate2, 230.69368, 169.86789, 999.50867,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata 2 Saja zatvorice se automatski za 5 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 2 Saj uprave.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvratasaj2", 5000, 0);
- Otvorenasaj2 = 1;
- }
- }
- }
- /////SAJ 3 GATE
- if(IsPlayerInRangeOfPoint(playerid,4.0,239.37364, 185.98979, 1002.29132))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(Otvorenasaj3 == 1) return SCM(playerid,grey,"Vrata 2 saja su vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(Sajgate3, 239.37364, 185.98979, 1002.29132,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste vrata 3 Saja zatvorice se automatski za 5 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara vrata 3 Saj uprave.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvratasaj3", 5000, 0);
- Otvorenasaj3 = 1;
- }
- }
- }
- }
- if(newkeys & KEY_JUMP)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if (!IsPlayerInAnyVehicle(playerid)) return 1;
- if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
- {
- if(PlayerInfo[playerid][pAdmin] < 1338)
- {
- if(CarInfo[vehicleid][cProdaja] == 1) return SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
- }
- if(vehicleid >=509 && vehicleid <=MAX_VEHICLES)
- {
- if(PI[playerid][pAdmin] < 1339)
- {
- if(PI[playerid][pVeh1] !=vehicleid && PI[playerid][pVeh2] !=vehicleid && PI[playerid][pVeh3] !=vehicleid)
- {
- return 1;
- }
- }
- }
- for(new v=0;v<sizeof(rentveh);v++)
- {
- if(GetPlayerVehicleID(playerid) == rentveh[v])
- {
- if(RentaoVozilo[playerid] !=GetPlayerVehicleID(playerid))
- {
- SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
- return 1;
- }
- }
- }
- if(! VoziloJeBicikla(GetVehicleModel(vehicleid)))
- {
- if(Fuel[GetPlayerVehicleID(playerid)] < 1) return SCM(playerid,grey, "Nemate goriva u vozilu pa ne mozete upaliti motor.");
- }
- {
- if(VoziloJeBicikla(GetVehicleModel(vehicleid))) return 1;
- {
- if(PlayerInfo[playerid][pAdmin] < 1339)
- {
- if(CarInfo[vehicleid][cProdaja] == 1) return SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
- }
- if(vehicleid >=509 && vehicleid <=brojvozila)
- {
- if(PI[playerid][pAdmin] < 1339)
- {
- if(PI[playerid][pVeh1] !=vehicleid && PI[playerid][pVeh2] !=vehicleid && PI[playerid][pVeh3] !=vehicleid)
- {
- SCM(playerid,grey,"[Greska] Nemate kljuceve ovog vozila !");
- return 1;
- }
- }
- }
- for(new v=0;v<sizeof(rentveh);v++)
- {
- if(GetPlayerVehicleID(playerid) == rentveh[v])
- {
- if(RentaoVozilo[playerid] !=GetPlayerVehicleID(playerid))
- {
- SPD(playerid,DIALOG_MRS,DIALOG_STYLE_MSGBOX,""RED"Greska !","Nemate kljuceve ovog vozila !","Izlaz","");
- return 1;
- }
- }
- }
- if(GetSpeed(playerid) < 1)
- if(vehEngine[vehicleid] == 0) // ako je motor vozila ugasen
- {
- new string[128];
- new sendername[120];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- vehEngine[vehicleid] = 1;
- PlayerTimer[playerid][26] =SetTimerEx("StartEngine", 1000, 0, "i", playerid);
- format(string, sizeof(string), "* %s okrece kljuc i pokusava da upali motor vozila.", sendername); // text
- ProxDetector(30.0, playerid, string, roza2, roza2, roza2, roza2, roza2);
- GMT(playerid, "~w~Motor se pokrece...",3500,3);
- engineOn[GetPlayerVehicleID(playerid)] == 1;
- }
- }
- }
- }
- }
- if(newkeys & KEY_SPRINT)
- {
- if(IsPlayerInRangeOfPoint(playerid,3.0,377.5687,-67.5861,1001.5151))
- {
- SPD(playerid,DIALOG_BURGER,DSL,""LGREEN"Fast Food Burger","Pljeskavica "LGREEN"| 100$ |\n"BELA"Hamburger "LGREEN"| 150$ |\n"BELA"Cheeseburger "LGREEN"| 200$ |\n"BELA"Chickenburger "LGREEN"| 250$ |\n"BELA"Sis Cevap "LGREEN"| 130$ |\n"BELA"Palacinke "LGREEN"| 90$ |","Naruci","Odustani");
- }
- return 1;
- }
- if(newkeys & KEY_ACTION)//keyaction
- {
- if(IsPlayerInAnyVehicle(playerid))
- if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
- if( IsACop(playerid))
- if(IsPlayerInCopCar(playerid))
- {
- new CopV[60],string[256];
- {
- if(PlayerInfo[playerid][pOrgID] == 1) { CopV = "Policija";
- }else if(PlayerInfo[playerid][pOrgID] == 2) { CopV = "SAJ";
- }else if(PlayerInfo[playerid][pOrgID] == 3) { CopV = "Vojska";
- }else if(PlayerInfo[playerid][pOrgID] == 4) { CopV= "Saobracajna Policija";}
- }
- format(string, sizeof(string), ""BELA"[ STOP !! ] {099DF7}%s %s Naredjuemo vam da zaustavite vase vozilo sa strane radi rutinske kontrole !!!",CopV, GetName(playerid)); // text
- ProxDetector(30.0, playerid, string, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF, 0x60B4F9FF);
- }
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pLider] == 6 || PlayerInfo[playerid][pOrgID] == 6 || PlayerInfo[playerid][pMember] == 6 || PI[playerid][pAdmin] >=4)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(GetPlayerState(playerid)==2)
- {
- new Float:pX,Float:pY,Float:pZ;
- GetPlayerPos(playerid,pX,pY,pZ);
- new Float:vX,Float:vY,Float:vZ;
- new Found=0;
- new vid=0;
- while((vid<MAX_VEHICLES)&&(!Found))
- {
- vid++;
- GetVehiclePos(vid,vX,vY,vZ);
- if ((floatabs(pX-vX)<4.0)&&(floatabs(pY-vY)<4.0)&&(floatabs(pZ-vZ)<4.0)&&(vid!=GetPlayerVehicleID(playerid)))
- {
- Found=1;
- vehEngine[vid] = 0; // motor ugasen
- GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(vid, 0, 0, alarm, doors, bonnet, boot, objective); // ovime dobijamo da motor bude ugasen tj da ne ide dim iz auspuha
- if(IsTrailerAttachedToVehicle(vid))
- {
- new ats = GetVehicleTrailer(vid);
- SetVehicleToRespawn(ats);
- }
- SetVehicleToRespawn(vid);
- if(PI[playerid][pAdmin] < 0)
- {
- new string[120];
- format(string, sizeof(string), ""BELA"[ AMS ] Lepo parkirajte vase vozilo inace cemo ga zapleniti !"); // text
- ProxDetector(30.0, playerid, string, -1, -1, 1, -1, -1);
- }
- }
- }
- if(!Found)
- {
- }
- }
- }
- }
- }
- }
- ///////////////////////////////////////////KEY CROUCH//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- if(newkeys & KEY_CROUCH)
- {
- if(IsPlayerInRangeOfPoint(playerid,15.0, 2502.7949, 2773.1838, 9.8162))
- {
- if(PlayerInfo[playerid][pAdmin] >=1)
- {
- if(OtvorenaKapija == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(adminbazagate2, 2497.2585, 2761.4646, 11.5931,3);//DESNA
- MoveDynamicObject(adminbazagate1, 2497.4622, 2784.6123, 11.5931,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste kapiju admin baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Admin baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zadminbaza", 7000, 0);
- SetTimer("Zadminbaza2", 7000, 0);
- OtvorenaKapija = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0, 1041.31287, -1459.98425, 16.06276))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pHelper] >=1)
- {
- if(OtvorenaHelper == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(helpergate, 1041.3129, -1459.9843, 5.2243 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste kapiju helper baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Helper baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zhelperbaza", 7000, 0);
- OtvorenaHelper = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,224.6991,-1441.0713,13.1182))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pPromoter] >=1)
- {
- if(OtvorenaPromoter == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(promotergate, 221.38040, -1437.32190, 8.06426 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste kapiju PROMOTER baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju PROMOTER baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zpromterbaza", 7000, 0);
- OtvorenaPromoter = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,2605.7795, 2303.0913, 13.2265))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pVip] >=1)
- {
- if(OtvorenaVip == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(vipbazagate, 2596.8794, 2303.1750, 13.2265 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste kapiju vip baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i otvara kapiju Vip baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvipbaza", 7000, 0);
- OtvorenaVip = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1544.68616, -1630.97925, 13.12380))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || IsACop(playerid))
- {
- if(OtvorenaRampa == 1) return SCM(playerid,grey,"Rampa je vec podigunta sacekajte 7 sekundi !");
- {
- MoveDynamicObject(pdrampa, 1544.68616, -1630.97925, 13.12380,0.1, 0.00000, 360.00000, 270.00000);//DESNA
- new string[120];
- SCM(playerid,-1,"Podigli ste rampu policijske stanice zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i podize rampu Policijske baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zrampa", 7000, 0);
- OtvorenaRampa = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1590.25806, -1637.97034, 14.77322))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || IsACop(playerid))
- {
- if(OtvorenaGaraza == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(pdgarazagate, 1590.25806, -1637.97034, 9.45993 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Otvorili ste kapiju policijske garaze baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju policijske garaze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zgaraza", 7000, 0);
- OtvorenaGaraza = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,310.58530, -1556.65869, 32.03978))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(OtvorenaSaj1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(sajgate1, 310.58530, -1556.65869, 27.81420 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju saj garaze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju saj garaze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zsaj1", 7000, 0);
- OtvorenaSaj1 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,365.20172, -1468.67993, 31.83939))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 2)
- {
- if(OtvorenaSaj2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(sajgate2, 365.20172, -1468.67993, 27.05549 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju saj garaze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju saj garaze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zsaj2", 7000, 0);
- OtvorenaSaj2 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1642.87268, -1715.33008, 16.34359))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
- {
- if(OtvorenaSp1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(spgate1, 1642.87268, -1715.33008, 11.67224 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju Soabracjane policije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Saobracajne policije.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zsp1", 7000, 0);
- OtvorenaSp1 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1643.41675, -1697.03784, 16.23578))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 4)
- {
- if(OtvorenaSp2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(spgate2, 1643.41675, -1697.03784, 11.50717 ,3);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju Soabracjane policije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Saobracajne policije.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zsp2", 7000, 0);
- OtvorenaSp2 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1144.05920, -1291.34155, 13.29370))
- {
- if(PlayerInfo[playerid][pOrgID] == 5 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaBolnica == 1) return SCM(playerid,grey,"Rampa Bolnice je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(Brampa,1144.7002, -1291.4762, 13.4166,0.5, 0.0000, 0.0000, -180.0000);
- SCM(playerid,-1,"Podigli ste rampu bolnice zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Bolnice", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zrampa2", 7000, 0);
- OtvorenaBolnica = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,15.0,928.5048, -1226.5330, 16.6504))
- {
- if(OtvorenaKRampa == 1) return SCM(playerid,grey,"Rampa Kamiondzije je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(krampa,928.5048, -1226.5330, 16.6504,0.1, 0.0000, 1.0000, 89.0000);
- SCM(playerid,-1,"Podigli ste rampu kamiondzije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Kamiondzije", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zkrampa", 7000, 0);
- OtvorenaKRampa = 1;
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,15.0, 1265.01013, -1842.58533, 13.25010))
- {
- if(PlayerInfo[playerid][pOrgID] == 8 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaTaxi == 1) return SCM(playerid,grey,"Rampa Taxi baze je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(taxirampa,1274.9883, -1840.6486, 13.0905,0.1, 0.0000, -4.0000, 0.0000);
- SCM(playerid,-1,"Podigli ste rampu taxi baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu Taxi kompanije", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Ztaxi", 7000, 0);
- OtvorenaTaxi = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,15.0, 1218.1355, -1840.5867, 13.0905))
- {
- if(PlayerInfo[playerid][pOrgID] == 8 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaTaxi2 == 1) return SCM(playerid,grey,"Rampa Taxi baze je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(taxirampa2,1218.1355, -1840.5867, 13.0905,0.1, 0.0000, -12.0000, 2.0000);
- SCM(playerid,-1,"Podigli ste rampu taxi baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize rampu 2 Taxi kompanije", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Ztaxi2", 7000, 0);
- OtvorenaTaxi2 = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,2720.0854, -2503.9609, 14.2865))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 3)
- {
- if(OtvorenaVojska1 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(Vojskagate, 2720.1367, -2503.8955, 10.7976 ,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju Vojne baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta ogradu Vojne baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvojska1", 7000, 0);
- OtvorenaVojska1 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,720.3855, -2405.5288, 14.2237))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 3)
- {
- if(OtvorenaVojska2 == 1) return SCM(playerid,grey,"Kapija je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(Vojskagate2, 2720.1750, -2405.3428, 10.6039,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju Vojne baze zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta ogradu Vojne baze.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zvojska2", 7000, 0);
- OtvorenaVojska2 = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,15.0,1637.67456, -1143.76392, 25.65180))
- {
- if(OtvorenaPijaca == 1) return SCM(playerid,grey,"Kapije auto pijace je vec otvorena sacekajte 7 sekundi !");
- {
- if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate novca za ulaz !",3000,3);
- new string[128],name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- MoveDynamicObject(Pijacagate,1637.67456, -1143.76392, 19.84495, 2.0);
- SCM(playerid,-1," Sputstili ste kapiju auto pijace zatvorice se automatski za 7 sekundu !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju Auto Pijace.", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zpijaca", 7000, 0);
- g_NovacMinus(playerid,50);
- GMT(playerid,"~r~-50$",3000,1);
- new rand = random(3);
- FirmaNovac(21,24+rand);
- FirmaNovacS(21,11+rand);
- OtvorenaPijaca = 1;
- return 1;
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1022.23969, -928.56720, 41.68950))
- {
- if(PlayerInfo[playerid][pAdmin] >=1337 || PlayerInfo[playerid][pOrgID] == 6)
- {
- if(OtvorenaPs == 1) return SCM(playerid,grey,"Kapija auto moto saveza je vec otvorena sacekajte 7 sekundi !");
- {
- MoveDynamicObject(psgate, 1022.23969, -928.56720, 35.61166,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju Auto moto saveza zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta Kapiju Auto moto saveza.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zps1", 7000, 0);
- OtvorenaPs = 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1245.27869, -767.44641, 93.56210))
- {
- if(PlayerInfo[playerid][pOrgID] == 14 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaLcn == 1) return SCM(playerid,grey,"kapija Ruske Mafije je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(lcngate,1245.27869, -767.44641, 88.05800,3.0);
- SCM(playerid,-1,"Spustili ste kapiju Ruske Mafije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Ruske Mafije", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zlcn", 7000, 0);
- OtvorenaLcn = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1155.40918, -1212.12366, 19.38069))
- {
- if(PlayerInfo[playerid][pOrgID] == 15 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaPo == 1) return SCM(playerid,grey,"Kapija Privatne Organizacije je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(pogate,1157.5330, -1215.1619, 14.0042,2.0);
- SCM(playerid,-1,"Spustili ste kapiju Privatne Organizacije zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Privatne Organizacije", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zpo1", 7000, 0);
- OtvorenaPo = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,1807.45105, -1347.87683, 16.91312))
- {
- if(PlayerInfo[playerid][pOrgID] == 16 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(Otvorena2Po == 1) return SCM(playerid,grey,"Kapija Privatne Organizacije 2 je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(pogate2,1807.4510, -1347.8768, 9.3318,2.0);
- SCM(playerid,-1,"Spustili ste kapiju Privatne Organizacije 2 zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Privatne Organizacije 2", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Z2po", 7000, 0);
- Otvorena2Po = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,15.0,1025.90637, -370.90341, 75.02570))
- {
- if(PlayerInfo[playerid][pOrgID] == 17 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaPo2 == 1) return SCM(playerid,grey,"Kapija Mexican Maffie je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(po2gate,1025.90637, -370.90341, 80.36088,2.0);
- SCM(playerid,-1,"Podigli ste kapiju Mexican Maffie zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i podize kapiju Mexican Maffie", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zpo2", 7000, 0);
- OtvorenaPo2 = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0, 1284.90271, -2057.06665, 60.76602))
- {
- if(PlayerInfo[playerid][pOrgID] == 13 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaRm == 1) return SCM(playerid,grey,"Kapija La Cosa Nostra je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(ruskagate,1284.90271, -2057.06665, 54.94955,2.0);
- SCM(playerid,-1,"Spustili ste kapiju La Cosa Nostre zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju La Cosa Nostre", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zrm", 7000, 0);
- OtvorenaRm = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,2833.9889, -1581.4382, 11.7799))
- {
- if(PlayerInfo[playerid][pOrgID] == 18 || PlayerInfo[playerid][pAdmin] >= 1338)
- {
- if(OtvorenaTriada == 1) return SCM(playerid,grey,"kapija Triade je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(triadagate,2833.9890, -1581.4382, 3.2107,2.0);
- SCM(playerid,-1,"Spustili ste kapiju Triade zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju Triade", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Ztriada", 7000, 0);
- OtvorenaTriada = 1;
- return 1;
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,10.0,-717.8864, 967.6525, 13.2669))
- {
- if(PlayerInfo[playerid][pAdmin] == 1341 || PI[playerid][pPosedovanjeKuce] == 991)
- {
- if(OtvorenaMarkela == 1) return SCM(playerid,grey,"Kapija kuce je vec otvorena sacekajte 7 sekundi !");
- {
- new string[100];
- MoveDynamicObject(markelagate,-717.88641, 967.65247, 8.22169,2.0);
- SCM(playerid,-1,"Spustili ste kapiju dvorista zatvorice se automatski za 7 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj Daljinski i spusta kapiju dvorista", GetName(playerid));
- ProxDetector(30.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("ZMarkela", 7000, 0);
- OtvorenaMarkela = 1;
- return 1;
- }
- }
- }
- /////SA PIJACA GATE
- if(IsPlayerInRangeOfPoint(playerid,10.0,1397.40601, 2697.25269, 11.44260))
- {
- if(OtvorenaSaKapija == 1) return SCM(playerid,grey,"Vrata SA pijace vozile je vec otvorena sacekajte 5 sekundi !");
- {
- if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate dovoljno novca..",3000,3);
- {
- MoveDynamicObject(sakapija, 1397.40601, 2697.25269, 7.98378,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju SA pijace vozila zatvorice se za 5 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju SA pijace automobila.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zsakapija", 7000, 0);
- OtvorenaSaKapija = 1;
- g_NovacMinus(playerid,50);
- new rand = random(3);
- FirmaNovac(21,24+rand);
- FirmaNovacS(21,11+rand);
- GMT(playerid,"~r~-50$",3000,1);
- }
- }
- }
- /////ZG PIJACA GATE
- if(IsPlayerInRangeOfPoint(playerid,10.0, -2566.67749, 581.24316, 15.05248))
- {
- if(OtvorenaZgKapija == 1) return SCM(playerid,grey,"Vrata ZG pijace vozile je vec otvorena sacekajte 5 sekundi !");
- {
- if(50 > PI[playerid][pMoney]) return GMT(playerid,"~r~Nemate dovoljno novca..",3000,3);
- {
- MoveDynamicObject(zgkapija, -2566.67749, 581.24316, 11.72212,2);//DESNA
- new string[120];
- SCM(playerid,-1,"Spustili ste kapiju ZG pijace vozila zatvorice se za 5 sekundi !");
- format(string, sizeof(string), "* %s Vadi svoj daljinski i spusta kapiju ZG pijace automobila.", GetName(playerid));
- ProxDetector(20.0, playerid,string,roza2,roza2,roza2,roza2,roza2);
- SetTimer("Zzgkapija", 5000, 0);
- OtvorenaZgKapija = 1;
- new rand = random(3);
- FirmaNovac(21,24+rand);
- FirmaNovacS(21,11+rand);
- g_NovacMinus(playerid,50);
- GMT(playerid,"~r~-50$",3000,1);
- }
- }
- }
- }
- if(oldkeys & KEY_SECONDARY_ATTACK)
- {
- if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
- {
- SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
- return 1;
- }
- if(!IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerInRangeOfPoint(playerid,2,1498.6240,-1580.5176,13.5498))
- {
- SetPlayerVirtualWorld(playerid,1600);
- Dimi_SetPlayerPos(playerid,1274.9469,-654.1808,1088.3063);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Afk zona.",3000,1);
- SCM(playerid,-1,"[AFK ZONA] Usli ste u afk zonu ovde mozete vaseg karaketra da ostavite AFK !");
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1274.9469,-654.1808,1088.3063))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1498.6240,-1580.5176,13.5498);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1555.0652,-1675.7325,16.1953))
- {
- SetPlayerInterior(playerid,6);
- SetPlayerVirtualWorld(playerid,1500);
- Dimi_SetPlayerPos(playerid,246.9884,62.9616,1003.6406);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~w~Policija..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,246.9884,62.9616,1003.6406))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1555.0652,-1675.7325,16.1953);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1191.7321,-903.7512,43.2038))
- {
- SetPlayerInterior(playerid,10);
- SetPlayerVirtualWorld(playerid,1001);
- Dimi_SetPlayerPos(playerid,363.1017,-74.9086,1001.5078);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Fast Food..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- TogglePlayerControllable(playerid, 0);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,363.1017,-74.9086,1001.5078))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1191.7321,-903.7512,43.2038);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- TogglePlayerControllable(playerid, 0);
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,326.2005,-1514.9053,36.0325))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,1499);
- Dimi_SetPlayerPos(playerid,288.9060,167.3657,1007.1719);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Saj uprava..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,288.9060,167.3657,1007.1719))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,326.2005,-1514.9053,36.0325);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1653.9598,-1655.2192,22.5156))
- {
- SetPlayerInterior(playerid,10);
- SetPlayerVirtualWorld(playerid,1498);
- Dimi_SetPlayerPos(playerid,246.5481,107.5590,1003.2188);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Saobracajna policija..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,246.5481,107.5590,1003.2188))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1653.9598,-1655.2192,22.5156);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- //////////////////////////za bolnicu nes/////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2,1960.7778,1203.8031,-5.2087))
- {
- if(PI[playerid][pOrgID] == 5)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1161.5140,-1329.8545,31.4943);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Krov bolnice.",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1161.5140,-1329.8545,31.4943))
- {
- if(PI[playerid][pOrgID] == 5)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1960.7778,1203.8031,-5.2087);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Bolnica..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1963.0107,1146.7504,-5.2087))
- {
- if(PI[playerid][pOrgID] == 5)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1148.0486,-1317.9724,13.6568);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Dvoriste bolnice.",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1148.0486,-1317.9724,13.6568))
- {
- if(PI[playerid][pOrgID] == 5)
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1963.0107,1146.7504,-5.208);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Bolnica..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- }
- ////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2,2729.4521,-2451.4382,17.5937))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1861.3680,-1699.4238,5202.5859);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Vojna Baza..",3000,1);
- SCM(playerid,grey,"PAZNJA: Ukoliko niste clan Vojske mozete biti uhapseni za ulazak !");
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1861.3680,-1699.4238,5202.5859))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,2729.4521,-2451.4382,17.5937);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ///////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2,1172.0873,-1323.2577,15.4028))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1976.1085,1163.7351,-5.2087);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Gradska Bolnica",3000,1);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1976.1085,1163.7351,-5.2087))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1172.0873,-1323.2577,15.4028);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- //taxi
- if(IsPlayerInRangeOfPoint(playerid,2,1219.1949,-1811.7744,16.5938))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,1600);
- Dimi_SetPlayerPos(playerid,366.8638,162.2953,1019.9844);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~w~Taxi kompanija",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,366.8638,162.2953,1019.9844))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1219.1949,-1811.7744,16.5938);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- //ams
- if(IsPlayerInRangeOfPoint(playerid,2,1072.7174,-896.1559,43.3932))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,1601);
- Dimi_SetPlayerPos(playerid,371.0771,154.1456,1021.7891);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~y~Auto Moto Savez",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,371.0771,154.1456,1021.7891))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1072.7174,-896.1559,43.3932);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- //
- //novinari////////////////////////////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2,732.6662,-1355.7823,15.1563))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,2111.8354,2307.8772,1715.8330);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Novinarski studio",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,2111.8354,2307.8772,1715.8330))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,732.6662,-1355.7823,15.1563);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ////////
- if(IsPlayerInRangeOfPoint(playerid,2,2086.5337,2298.7947,1717.0930))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,727.0333,-1381.5115,25.7167);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Krov novinarske zgrade",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,727.0333,-1381.5115,25.7167))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,2086.5337,2298.7947,1717.0930);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Novinari",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ////////////////////////////////////////////////////////////////////////////////
- //AERODROM ULAZ IZLAZ
- if(IsPlayerInRangeOfPoint(playerid,2,1642.2920,-2238.0466,13.4981))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1630.3199,-2431.1533,754.1790);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Aerodrom..",3000,1);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1630.3199,-2431.1533,754.1790))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1642.2920,-2238.0466,13.4981);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ///////////////////////////////////////oglasnik////////////////////////////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2,1610.8539,-1891.7483,13.5469))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1618.0154,-1758.7495,1068.4534);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Oglasnik..",3000,1);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1618.0154,-1758.7495,1068.4534))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1610.8539,-1891.7483,13.5469);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ///////////////////////////////////////////////////////////////////////////////
- //zlatara ULAZ IZLAZ
- if(IsPlayerInRangeOfPoint(playerid,2,941.0907,-1718.6198,13.9699))
- {
- SetPlayerInterior(playerid,5);
- SetPlayerVirtualWorld(playerid,1105);
- Dimi_SetPlayerPos(playerid,3.2060,-129.6617,1004.2202);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Zlatara Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,3.2060,-129.6617,1004.2202))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,941.0907,-1718.6198,13.9699);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- SetPlayerWeather(playerid,Prognozasys);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////////
- //banka ULAZ IZLAZ
- if(IsPlayerInRangeOfPoint(playerid,2,1466.1101,-1010.3317,26.8438))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid, 204.5982,-202.8242,1002.7834);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Banka Beograd..",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2, 204.5982,-202.8242,1002.7834))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1466.1101,-1010.3317,26.8438);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- SetPlayerWeather(playerid,Prognozasys);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- PlayerInfo[playerid][pInt] = 0; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(PolazeVozacki[playerid] == 1)
- {
- if(IsPlayerInRangeOfPoint(playerid,2,-2029.5785,-119.4927,1035.1719))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- PI[playerid][pInt] = 0;
- Dimi_SetPlayerPos(playerid,-2029.8140,-120.9832,35.1747);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~w~Poligon.",3000,1);
- SCM(playerid,lightred,"[B:RP] Dobro dosli na poligon auto skole udjite u vozilo pored !"); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,-2029.8140,-120.9832,35.1747))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,29);
- Dimi_SetPlayerPos(playerid,-2029.5785,-119.4927,1035.1719);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- GMT(playerid,"~w~Auto skola",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PI[playerid][pInt] = 1;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,1481.1609,-1770.7822,18.7958))
- {
- SetPlayerInterior(playerid,3);
- Dimi_SetPlayerPos(playerid,388.8025,173.9497,1008.3828);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~w~Opstina.",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetPlayerVirtualWorld(playerid,1002);
- PI[playerid][pInt] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,389.8468,173.8213,1008.3828))
- {
- SetPlayerInterior(playerid,0);
- SetPlayerVirtualWorld(playerid,0);
- Dimi_SetPlayerPos(playerid,1481.3462,-1770.3318,18.7958);
- SetCameraBehindPlayer(playerid);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- SetPlayerWeather(playerid,Prognozasys);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- GMT(playerid,"~w~Beograd",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PI[playerid][pInt] = 0;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- ////////////////////////////////BANDE MAFIJE ULAZ/IZLAZ///////////////////////////
- if(IsPlayerInRangeOfPoint(playerid,2.5,2495.3865,-1690.1621,14.7656))
- {
- SetPlayerInterior(playerid,3);
- Dimi_SetPlayerPos(playerid,2496.0120,-1692.9453,1014.7422);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~g~Grove Street Family",3000,1);
- PlayerInfo[playerid][pInt] = 1; antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,2496.0120,-1692.9453,1014.7422))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,2495.3865,-1690.1621,14.7656);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Groove..",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2.5,2515.9651,-1466.5414,24.5987))
- {
- SetPlayerInterior(playerid,5);
- Dimi_SetPlayerPos(playerid,318.7038,1114.4841,1083.8828);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~p~Ballas",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,318.7038,1114.4841,1083.8828))
- {
- if(!IsPlayerInAnyVehicle(playerid))
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,2515.9651,-1466.5414,24.5987);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Ballasi....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- TogglePlayerControllable(playerid,0); Zavezan[playerid] = 1;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2.5,2557.7966,-1131.7148,67.0630))
- {
- SetPlayerInterior(playerid,2);
- Dimi_SetPlayerPos(playerid,2468.7251,-1698.4789,1013.5078);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~y~MS13",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,2468.7251,-1698.4789,1013.5078))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,2557.7966,-1131.7148,67.0630);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- GMT(playerid,"~w~Ms13....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2.5,2787.0718,-1952.5209,13.5469))
- {
- SetPlayerInterior(playerid,10);
- Dimi_SetPlayerPos(playerid, 2270.4104,-1210.3344,1047.5625);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- GMT(playerid,"~b~~h~Surenos",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- }
- else if(IsPlayerInRangeOfPoint(playerid,2, 2270.4104,-1210.3344,1047.5625))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,2787.0718,-1952.5209,13.5469);
- SetCameraBehindPlayer(playerid);
- SetPlayerWeather(playerid,Prognozasys);
- GMT(playerid,"~w~LS....",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2.5,1298.9650,-799.6069,84.1406))
- {
- SetPlayerInterior(playerid,5);
- Dimi_SetPlayerPos(playerid,1279.8193,-789.0797,1084.0078);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid,14);
- GMT(playerid,"~w~Ruska Mafija HQ.",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1279.8193,-789.0797,1084.0078))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1298.9650,-799.6069,84.1406);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid,0);
- GMT(playerid,"~w~Ruska Mafija..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2.5,1123.5188,-2037.1211,69.8868))
- {
- SetPlayerInterior(playerid,5);
- SetPlayerVirtualWorld(playerid,13);
- Dimi_SetPlayerPos(playerid,1261.3114,-785.3129,1091.9063);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~La Cosa Nostra..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,1261.3114,-785.3129,1091.9063))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1123.5188,-2037.1211,69.8868);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid,0);
- GMT(playerid,"~w~Cosa Nostra..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,2,2787.1189,-1616.9078,10.9219))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,1117);
- Dimi_SetPlayerPos(playerid,974.5803,-8.7506,1001.1484);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Triada..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,974.5803,-8.7506,1001.1484))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,2787.1189,-1616.9078,10.9219);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Beograd..",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerVirtualWorld(playerid,0);
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,3.5,1102.0640,-308.6310,73.9922))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,1116);
- Dimi_SetPlayerPos(playerid,966.9965, -53.3372, 999.9889);
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~Mexican Maffia",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,966.9965, -53.3372, 999.9889))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1102.0640,-308.6310,73.9922);
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid,0);
- GMT(playerid,"~w~Mexican maffia...",3000,1); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- if(IsPlayerInRangeOfPoint(playerid,3.5,1764.9974,-1342.0043,15.7586))
- {
- SetPlayerInterior(playerid,3);
- SetPlayerVirtualWorld(playerid,15);
- Dimi_SetPlayerPos(playerid,235.34 ,1186.68, 1080.26); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- GMT(playerid,"~w~PO2",3000,1);
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- }
- else if(IsPlayerInRangeOfPoint(playerid,2,235.34 ,1186.68, 1080.26))
- {
- SetPlayerInterior(playerid,0);
- Dimi_SetPlayerPos(playerid,1764.9974,-1342.0043,15.7586); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- SetPlayerVirtualWorld(playerid,0);
- GMT(playerid,"~w~P02.",3000,1);
- PlayerInfo[playerid][pInt] = 0;
- SetPlayerWeather(playerid,Prognozasys);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- for(new i; i < MAX_FIRMI; i++)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, FI[i][fUlazX], FI[i][fUlazY], FI[i][fUlazZ]) && !IsPlayerInAnyVehicle(playerid))
- {
- if(FI[i][fVrsta] == VRSTA_SBIZZ)
- {
- if(PlayerInfo[playerid][pPosedovanjeFirme] == i)
- {
- FI[i][fNeaktivnost] = 0;
- SacuvajFirmu(i);
- SCM(playerid,-1,"Restartovali ste neaktvinost vaseg biznisa !");
- FirmaLabelIPickup(i);
- }
- }
- if(!IsPlayerInAnyVehicle(playerid))
- if(FI[i][fVrsta] == VRSTA_SBIZZ) return GMT(playerid,"~r~Ne mozete uci u tu firmu",1000,1);
- if(FI[i][fZatvoreno] == 1) return GMT(playerid,"~w~Firma ~b~zakljucana",5000,3);
- SetPlayerVirtualWorld(playerid, FI[i][fVW]);
- SetPlayerInterior(playerid, FI[i][fInt]);
- Dimi_SetPlayerPos(playerid, FI[i][fIzlazX], FI[i][fIzlazY], FI[i][fIzlazZ]); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- UsaoFirma[playerid] = i;
- PlayerInfo[playerid][pInt] = 1;
- SetPlayerWeather(playerid,1); DeleteSnow(playerid);
- TogglePlayerControllable(playerid, 0);
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- {
- if(FI[i][fNeaktivnost] >=1)
- if(PlayerInfo[playerid][pPosedovanjeFirme] == i)
- {
- FI[i][fNeaktivnost] = 0;
- SacuvajFirmu(i);
- SCM(playerid,-1,"Restartovali ste neaktvinost vase firme !");
- FirmaLabelIPickup(i);
- }
- }
- if(FI[i][fVrsta] == VRSTA_MARKET) GMT(playerid,"~w~Market 24/7",5000,1);
- else if(FI[i][fVrsta] == VRSTA_SEXSHOP) GMT(playerid,"~w~Sex Shop",5000,1);
- else if(FI[i][fVrsta] == VRSTA_GUNSHOP) GMT(playerid,"~w~Ammounation Shop",5000,1);
- else if(FI[i][fVrsta] == VRSTA_RESTORAN) GMT(playerid,"~w~Restoran",5000,1);
- else if(FI[i][fVrsta] == VRSTA_BURG) GMT(playerid,"~w~Bureger Shoter",5000,1);
- else if(FI[i][fVrsta] == VRSTA_CLUCKIN) GMT(playerid,"~w~Cluckin Bell",5000,1);
- else if(FI[i][fVrsta] == VRSTA_PIZZA) GMT(playerid,"~w~Picerija",5000,1);
- else if(FI[i][fVrsta] == VRSTA_DISCO) GMT(playerid,"~w~Disco Club",5000,1);
- else if(FI[i][fVrsta] == VRSTA_BAR) GMT(playerid,"~w~Kafana",5000,3);
- else if(FI[i][fVrsta] == VRSTA_PIGPEN) GMT(playerid,"~w~Pig Pen",5000,1);
- else if(FI[i][fVrsta] == VRSTA_GYM) GMT(playerid,"~w~Gym teretana",5000,3);
- else if(FI[i][fVrsta] == VRSTA_BARBER) GMT(playerid,"~w~Frizerski Salon~n~Komanda /hair",5000,1);
- else if(FI[i][fVrsta] == VRSTA_BINCO) GMT(playerid,"~w~Binco Butik",5000,3);
- else if(FI[i][fVrsta] == VRSTA_VICTIM) GMT(playerid,"~w~Victim Butik",5000,1);
- else if(FI[i][fVrsta] == VRSTA_SUBURBAN) GMT(playerid,"~w~Suburban butik",5000,3);
- else if(FI[i][fVrsta] == VRSTA_ZIP) GMT(playerid,"~w~Zip Butik",5000,1);
- else if(FI[i][fVrsta] == VRSTA_KLADIONICA) GMT(playerid,"~w~Kladionica Soocer",5000,11);
- else if(FI[i][fVrsta] == VRSTA_ELECTRONIC) GMT(playerid,"~w~Mobile Shop",5000,11);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, FI[i][fIzlazX], FI[i][fIzlazY], FI[i][fIzlazZ])
- && GetPlayerVirtualWorld(playerid) == FI[i][fVW] && !IsPlayerInAnyVehicle(playerid))
- {
- SetPlayerInterior(playerid, 0);
- SetPlayerVirtualWorld(playerid, 0);
- Dimi_SetPlayerPos(playerid, FI[i][fUlazX], FI[i][fUlazY], FI[i][fUlazZ]); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- UsaoFirma[playerid] = -1;
- PlayerInfo[playerid][pInt] = 0;
- PlayerTimer[playerid][25] =SetTimerEx("unfreezeobject",2000,false,"d",playerid);
- TogglePlayerControllable(playerid, 0);
- antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- if(PI[playerid][pVremenska] == 1)
- {
- SetPlayerWeather(playerid,Prognozasys);
- if(Snegic == 1)
- {
- CreateSnow(playerid);
- }
- }
- }
- }
- }
- }
- if(newkeys & KEY_HANDBRAKE)
- {
- if(ImaLisice[playerid] == 1 || Oboren[playerid] == 1 || Zavezan[playerid] == 1|| IgracTazovan[playerid] == 1 || MrtavIgrac[playerid] == 1)
- {
- SCM(playerid,grey,"Ne mozete stiskati F za izlazak/ulazak iz objekta dok ste /tazovani/oboreni/uhapseni/vezani u animaciji !");
- return 1;
- }
- if(animacija[playerid] == 1)
- {
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
- ClearAnimations(playerid);
- TextDrawHideForPlayer(playerid,RMB0);
- animacija[playerid] = 0;
- }
- }
- ////////////////////////////////////////////////////////////////////////////STRELJANA/////////////////////////////////////////////////////////////////////
- if(StreljanaP[playerid] > 0 && !IsPlayerInAnyVehicle(playerid) && korististreljanu == 1)
- {
- if(GetPlayerWeapon(playerid) > 0)
- {
- if(oldkeys & KEY_RIGHT && newkeys & KEY_FIRE)
- {
- if(IsPlayerAiming(playerid, StreljanaOb[1]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[1]);
- }
- else if(IsPlayerAiming(playerid, StreljanaOb[2]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[2]);
- }
- else if(IsPlayerAiming(playerid, StreljanaOb[3]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[3]);
- }
- else if(IsPlayerAiming(playerid, StreljanaOb[4]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[4]);
- }
- else if(IsPlayerAiming(playerid, StreljanaOb[5]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625);
- SetCameraBehindPlayer(playerid); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[5]);
- }
- else if(IsPlayerAiming(playerid, StreljanaOb[6]))
- {
- UpucaoStr[playerid]++;
- if(UpucaoStr[playerid] > 5)
- {
- if(StreljanaP[playerid] == 1) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, PI[playerid][pPistol]);
- else if(StreljanaP[playerid] == 2) PI[playerid][pSilenced] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PI[playerid][pSilenced]);
- else if(StreljanaP[playerid] == 3) PI[playerid][pDesert] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, PI[playerid][pDesert]);
- else if(StreljanaP[playerid] == 4) PI[playerid][pShotgun] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SHOTGUN, PI[playerid][pShotgun]);
- else if(StreljanaP[playerid] == 5) PI[playerid][pSpas] += 20, SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN, PI[playerid][pSpas]);
- else if(StreljanaP[playerid] == 6) PI[playerid][pMP5] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_MP5, PI[playerid][pMP5]);
- else if(StreljanaP[playerid] == 7) PI[playerid][pAK47] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, PI[playerid][pAK47]);
- else if(StreljanaP[playerid] == 8) PI[playerid][pM4] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, PI[playerid][pM4]);
- else if(StreljanaP[playerid] == 9) PI[playerid][pSniper] += 20, SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, PI[playerid][pSniper]);
- SCM(playerid, -1, "{C3C3C3}STRELJANA: {FFFFFF}Upucali ste sest meta i dobili +20 skilla odabranog oruzja. Cestitamo! (/weaponskills)");
- ResetPlayerWeapons(playerid);
- StreljanaP[playerid] = 0;
- korististreljanu = 0;
- KillTimer(StrTimer[playerid]);
- UnistiSObjekte();
- UpucaoStr[playerid] = 0;
- Dimi_SetPlayerPos(playerid,305.3548,-141.8480,1004.0625); antiCheatCS[ playerid ][ TeleportCheck ] = 4;
- SetCameraBehindPlayer(playerid);
- UnistiSObjekte();
- Ustreljani[playerid] = 0;
- return true;
- }
- new ups[120];
- format(ups,120,"STRELJANA: {FFFFFF}Unistili ste metu. Preostalo %d meta.", 6-UpucaoStr[playerid]);
- SCM(playerid,-1,ups);
- DestroyDynamicObject(StreljanaOb[6]);
- }
- }
- }
- return 1;
- }
- //////////////////////////////////////////////////////////////////////KEY WALK/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //////////////////////////PALI SVETLA/////////////////////////////////////
- if(newkeys == KEY_SUBMISSION )
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- if(IsPlayerConnected(playerid))
- {
- new veh = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
- if(VoziloJeBicikla(GetVehicleModel(veh))) return SCM(playerid,-1,"Ovo biciklo nema svetla !");
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- //if(Svetla[playerid] == 1) return SCM(playerid,grey, "Ne mozes sada!");
- if(lights == VEHICLE_PARAMS_ON)
- {
- SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
- SCM(playerid, -1, ""BELA"[B:RP]: {FFFFFF}Ugasili ste svetla.");
- new mrk[128];
- format(mrk, sizeof(mrk), "* %s gasi svetla na vozilu.", GetName(playerid));
- ProxDetector(30.0, playerid, mrk, roza2,roza2,roza2,roza2,roza2);
- }
- else
- {
- SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
- SCM(playerid, -1,"[B:RP]: {FFFFFF}Upalili ste svetla na vozilu.");
- new mrk[128];
- format(mrk, sizeof(mrk), "* %s pali svetla na vozilu.", GetName(playerid));
- ProxDetector(30.0, playerid, mrk, roza2,roza2,roza2,roza2,roza2);
- }
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement