Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //VEH SISTEM
- for(new b = 0; b < sizeof(CI); b++)
- {
- new gFile[60];
- format(gFile, sizeof(gFile), "BExtra/Vozila/Vozilo_%d.ini", b);
- if(fexist(gFile))
- {
- INI_ParseFile(gFile, "UcitajVozila", .bExtra = true, .extra = b);
- if(CI[b][cPostavljen] == 1)
- {
- DodajVozilo(CI[b][cModel],CI[b][cPosX],CI[b][cPosY],CI[b][cPosZ]+1.0,CI[b][cAngle],CI[b][cBoja1],CI[b][cBoja2],60000);
- SetVehicleVirtualWorld(b, CI[b][cVW]);
- SetVehicleNumberPlate(b,CI[b][cTablice]);
- if(CI[b][cKupljen] == 0)
- {
- new stsr[256];
- new Float:x,Float:y,Float:z;
- GetVehiclePos(b, x,y,z);
- new model[24];
- GetVehicleName(b,model,sizeof(model));
- format(stsr,sizeof(stsr),""ORANGE"Vozilo na prodaju!\n"BELA"%s\n"ORANGE"Cena: "BELA"%d$\n"ORANGE"Udjite u vozilo i pritisnite 'Kupi'",model,CI[b][cCena]);
- CarLabel[b] = Create3DTextLabel(stsr, BELA2, x, y, z, 10, 0, 1);
- Attach3DTextLabelToVehicle(CarLabel[b],b,0,0,0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment