Guest User

Untitled

a guest
Jul 5th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. for(new o; o < MAX_VOZILA; o++)
  2. {
  3. if(VoziloJeAvion(GetVehicleModel(o)) || VoziloJeBrod(GetVehicleModel(o)) || VoziloJeKamion(GetVehicleModel(o))) Fuel[o] = 80;
  4. else if(VoziloJeMotor(GetVehicleModel(o))) Fuel[o] = 45;
  5. else if(VoziloJeBicikla(GetVehicleModel(o)) || GetVehicleModel(o) == 538) Fuel[o] = 1000000;
  6. else Fuel[o] = 45;
  7. if(!VoziloJeBicikla(GetVehicleModel(o)))
  8. {
  9. new engine, lights, alarm, doors, bonnet, boot, objective;
  10. GetVehicleParamsEx(o, engine, lights, alarm, doors, bonnet, boot, objective);
  11. SetVehicleParamsEx(o, 0, 0, alarm, doors, bonnet, boot, objective);
  12. }
  13. if(DostavljacVozila(GetVehicleModel(o)))
  14. {
  15. ProduktiVozila[o] = 0;
  16. }
  17. }
  18. ///////////////////////////////FIRME UCITAVANJE///////////////////////////////
  19. for(new b = 0; b < sizeof(FirmaInfo); b++)
  20. {
  21. new gFile[80],string[260];
  22. format(gFile, sizeof(gFile), FIRMA_FILE, b);
  23. if(fexist(gFile))
  24. {
  25. INI_ParseFile(gFile, "UcitajFirme", .bExtra = true, .extra = b);
  26. if(FirmaInfo[b][fImaVlasnika] == 0)
  27. {
  28. 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]);
  29. FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
  30. FirmaPickup[b] = CreateDynamicPickup(1274, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
  31. }
  32. else if(FirmaInfo[b][fImaVlasnika] == 1)
  33. {
  34. 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]);
  35. FirmaLabel[b] = Create3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, 0, 1);
  36. FirmaPickup[b] = CreateDynamicPickup(1239, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
  37. }
  38. if(FirmaInfo[b][fVrsta] == VRSTA_MARKET) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 56, -1, 0, 0, -1, 150.0);
  39. if(FirmaInfo[b][fVrsta] == VRSTA_BURG) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 10, -1, 0, 0, -1, 150.0);
  40. if(FirmaInfo[b][fVrsta] == VRSTA_CLUCKIN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 14, -1, 0, 0, -1, 150.0);
  41. if(FirmaInfo[b][fVrsta] == VRSTA_PIZZA) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 29, -1, 0, 0, -1, 150.0);
  42. if(FirmaInfo[b][fVrsta] == VRSTA_PIGPEN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
  43. if(FirmaInfo[b][fVrsta] == VRSTA_BAR) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 49, -1, 0, 0, -1, 150.0);
  44. if(FirmaInfo[b][fVrsta] == VRSTA_GYM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 54, -1, 0, 0, -1, 150.0);
  45. if(FirmaInfo[b][fVrsta] == VRSTA_SEXSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 36, -1, 0, 0, -1, 150.0);
  46. if(FirmaInfo[b][fVrsta] == VRSTA_BINCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  47. if(FirmaInfo[b][fVrsta] == VRSTA_GUNSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 6, -1, 0, 0, -1, 150.0);
  48. if(FirmaInfo[b][fVrsta] == VRSTA_DISCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
  49. if(FirmaInfo[b][fVrsta] == VRSTA_RESTORAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 50, -1, 0, 0, -1, 150.0);
  50. if(FirmaInfo[b][fVrsta] == VRSTA_ZIP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  51. if(FirmaInfo[b][fVrsta] == VRSTA_VICTIM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  52. if(FirmaInfo[b][fVrsta] == VRSTA_SUBURBAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  53. if(FirmaInfo[b][fVrsta] == VRSTA_BARBER) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 7, -1, 0, 0, -1, 150.0);
  54. if(FirmaInfo[b][fVrsta] == VRSTA_KLADIONICA)CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 25, -1, 0, 0, -1, 150.0);
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment