Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new o; o < MAX_VOZILA; o++)
- {
- if(VoziloJeAvion(GetVehicleModel(o)) || VoziloJeBrod(GetVehicleModel(o)) || VoziloJeKamion(GetVehicleModel(o))) Fuel[o] = 80;
- else if(VoziloJeMotor(GetVehicleModel(o))) Fuel[o] = 45;
- else if(VoziloJeBicikla(GetVehicleModel(o)) || GetVehicleModel(o) == 538) Fuel[o] = 1000000;
- else Fuel[o] = 45;
- if(!VoziloJeBicikla(GetVehicleModel(o)))
- {
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(o, engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(o, 0, 0, alarm, doors, bonnet, boot, objective);
- }
- if(DostavljacVozila(GetVehicleModel(o)))
- {
- ProduktiVozila[o] = 0;
- }
- }
- ///////////////////////////////FIRME UCITAVANJE///////////////////////////////
- for(new b = 0; b < sizeof(FirmaInfo); b++)
- {
- new gFile[80],string[260];
- format(gFile, sizeof(gFile), FIRMA_FILE, b);
- if(fexist(gFile))
- {
- INI_ParseFile(gFile, "UcitajFirme", .bExtra = true, .extra = b);
- if(FirmaInfo[b][fImaVlasnika] == 0)
- {
- format(string,sizeof(string),""ZPLAVA"[ "BIJELA"%s "ZPLAVA"]\n"ZPLAVA"Firma na prodaju!\n"ZPLAVA"Cena: "BIJELA"%d$\n"ZPLAVA"Level: "BIJELA"%d\n"ZPLAVA"Za kupovinu /kupifirmu",FirmaInfo[b][fNaziv],FirmaInfo[b][fCena],FirmaInfo[b][fLevel]);
- FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
- FirmaPickup[b] = CreateDynamicPickup(1274, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
- }
- else if(FirmaInfo[b][fImaVlasnika] == 1)
- {
- format(string,sizeof(string),""ZPLAVA"[ "BIJELA"%s "ZPLAVA"]\n"ZPLAVA"Vlasnik: "BIJELA"%s\n"ZPLAVA"Level: "BIJELA"%d\n"ZPLAVA"Iznuda: "BIJELA"%s",FirmaInfo[b][fNaziv],FirmaInfo[b][fVlasnik],FirmaInfo[b][fLevel],FirmaInfo[b][fIznuda]);
- FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
- FirmaPickup[b] = CreateDynamicPickup(1239, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
- }
- if(FirmaInfo[b][fVrsta] == VRSTA_MARKET) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 56, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_BURG) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 10, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_CLUCKIN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 14, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_PIZZA) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 29, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_PIGPEN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_BAR) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 49, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_GYM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 54, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_SEXSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 36, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_BINCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_GUNSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 6, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_DISCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_RESTORAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 50, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_ZIP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_VICTIM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_SUBURBAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_BARBER) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 7, -1, 0, 0, -1, 150.0);
- if(FirmaInfo[b][fVrsta] == VRSTA_KLADIONICA)CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 25, -1, 0, 0, -1, 150.0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment