Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. for(new b = 0; b < sizeof(FirmaInfo); b++)
  2. {
  3. new gFile[80],string[260];
  4. format(gFile, sizeof(gFile), "Firme/%d.ini", b);
  5. if(fexist(gFile))
  6. {
  7. INI_ParseFile(gFile, "UcitajFirme", .bExtra = true, .extra = b);
  8. if(FirmaInfo[b][fImaVlasnika] == 0)
  9. {
  10. format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"ZPLAVA"Firma na prodaju!\n"ZPLAVA"Cena: "BELA"%d$\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Za kupovinu /kupifirmu\n"ZPLAVA"Neaktivnost (Sati): %d",FirmaInfo[b][fNaziv],FirmaInfo[b][fCena],FirmaInfo[b][fLevel], FirmaInfo[b][fNeaktivnost]);
  11. FirmaLabel[b] = CreateDynamic3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 7.0);
  12. FirmaPickup[b] = CreateDynamicPickup(1274, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
  13. }
  14. else if(FirmaInfo[b][fImaVlasnika] == 1)
  15. {
  16. format(string,sizeof(string),""ZPLAVA"[ "BELA"%s "ZPLAVA"]\n"ZPLAVA"Vlasnik: "BELA"%s\n"ZPLAVA"Level: "BELA"%d\n"ZPLAVA"Iznuda: "BELA"%s\n"ZPLAVA" Neaktivnost (Sati): "BELA"%d",FirmaInfo[b][fNaziv],FirmaInfo[b][fVlasnik],FirmaInfo[b][fLevel],FirmaInfo[b][fIznuda]);
  17. FirmaLabel[b] = CreateDynamic3DTextLabel(string ,0x33CCFFAA,FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ],30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 7.0);
  18. FirmaPickup[b] = CreateDynamicPickup(1239, 1, FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ]);
  19. }
  20. if(FirmaInfo[b][fVrsta] == VRSTA_MARKET) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 56, -1, 0, 0, -1, 150.0);
  21. if(FirmaInfo[b][fVrsta] == VRSTA_BURG) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 10, -1, 0, 0, -1, 150.0);
  22. if(FirmaInfo[b][fVrsta] == VRSTA_CLUCKIN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 14, -1, 0, 0, -1, 150.0);
  23. if(FirmaInfo[b][fVrsta] == VRSTA_PIZZA) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 29, -1, 0, 0, -1, 150.0);
  24. if(FirmaInfo[b][fVrsta] == VRSTA_PIGPEN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
  25. if(FirmaInfo[b][fVrsta] == VRSTA_BAR) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 49, -1, 0, 0, -1, 150.0);
  26. if(FirmaInfo[b][fVrsta] == VRSTA_GYM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 54, -1, 0, 0, -1, 150.0);
  27. if(FirmaInfo[b][fVrsta] == VRSTA_SEXSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 36, -1, 0, 0, -1, 150.0);
  28. if(FirmaInfo[b][fVrsta] == VRSTA_BINCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  29. if(FirmaInfo[b][fVrsta] == VRSTA_GUNSHOP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 6, -1, 0, 0, -1, 150.0);
  30. if(FirmaInfo[b][fVrsta] == VRSTA_DISCO) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 48, -1, 0, 0, -1, 150.0);
  31. if(FirmaInfo[b][fVrsta] == VRSTA_RESTORAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 50, -1, 0, 0, -1, 150.0);
  32. if(FirmaInfo[b][fVrsta] == VRSTA_ZIP) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  33. if(FirmaInfo[b][fVrsta] == VRSTA_VICTIM) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  34. if(FirmaInfo[b][fVrsta] == VRSTA_SUBURBAN) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 45, -1, 0, 0, -1, 150.0);
  35. if(FirmaInfo[b][fVrsta] == VRSTA_BARBER) CreateDynamicMapIcon(FirmaInfo[b][fUlazX], FirmaInfo[b][fUlazY], FirmaInfo[b][fUlazZ], 7, -1, 0, 0, -1, 150.0);
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement