Guest User

Untitled

a guest
Jan 16th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. //VEH SISTEM
  2. for(new b = 0; b < sizeof(CI); b++)
  3. {
  4. new gFile[60];
  5. format(gFile, sizeof(gFile), "BExtra/Vozila/Vozilo_%d.ini", b);
  6. if(fexist(gFile))
  7. {
  8. INI_ParseFile(gFile, "UcitajVozila", .bExtra = true, .extra = b);
  9. if(CI[b][cPostavljen] == 1)
  10. {
  11. 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);
  12. SetVehicleVirtualWorld(b, CI[b][cVW]);
  13. SetVehicleNumberPlate(b,CI[b][cTablice]);
  14. if(CI[b][cKupljen] == 0)
  15. {
  16. new stsr[256];
  17. new Float:x,Float:y,Float:z;
  18. GetVehiclePos(b, x,y,z);
  19. new model[24];
  20. GetVehicleName(b,model,sizeof(model));
  21. 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]);
  22. CarLabel[b] = Create3DTextLabel(stsr, BELA2, x, y, z, 10, 0, 1);
  23. Attach3DTextLabelToVehicle(CarLabel[b],b,0,0,0);
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment