Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new b = 0; b < sizeof(FirmaInfo); b++)
- {
- new gFile[80],string[260];
- format(gFile, sizeof(gFile), "Firme/%d.ini", b);
- if(fexist(gFile))
- {
- INI_ParseFile(gFile, "UcitajFirme", .bExtra = true, .extra = b);
- if(FirmaInfo[b][fImaVlasnika] == 0)
- {
- 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]);
- 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);
- 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"[ "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]);
- 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);
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement