Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. if(PlayerInfo[playerid][pPosedovanjeAuta2] != -1)
  2. {
  3. new i = PlayerInfo[playerid][pPosedovanjeAuta2];
  4. new vFile[50];
  5. format(vFile, sizeof(vFile), AUTO_FILE, i);
  6. if(fexist(vFile))
  7. {
  8. INI_ParseFile(vFile, "UcitajVozila", .bExtra = true, .extra = i);
  9. if(strcmp(szPlayer, VoziloInfo[i][vVlasnik]) == 0) {
  10. VoziloInfo[i][vID] = CreateVehicle(VoziloInfo[i][vModel],VoziloInfo[i][vPozX],VoziloInfo[i][vPozY],VoziloInfo[i][vPozZ],VoziloInfo[i][vPozA],VoziloInfo[i][vBoja1],VoziloInfo[i][vBoja2],30000);
  11. VoziloInfo[i][vSpawn] = 0;
  12. VoziloInfo[i][vMod][0] = -1;
  13. new PropertyString[65];
  14. format(PropertyString,sizeof(PropertyString),""SPLAVA"Vlasnik vozila: "BELA"%s",VoziloInfo[i][vVlasnik]);
  15. VehicleLabels[VoziloInfo[i][vID]] = Create3DTextLabel(PropertyString, 0xC0C0C0C8, 0.0, 0.0, 0.0, 10.0, 0, 1);
  16. Attach3DTextLabelToVehicle(VehicleLabels[VoziloInfo[i][vID]],VoziloInfo[i][vID],0,0,0);
  17.  
  18. INI_ParseFile(vFile, "UcitajTune", .bExtra = true, .extra = i);
  19. for(new id = 1; id <= 17; id++)
  20. {
  21. if(VoziloInfo[i][vMod][id]!=0) { AddVehicleComponent(VoziloInfo[i][vID],VoziloInfo[i][vMod][id]); }
  22. }
  23. if(VoziloInfo[i][vMod][0]>=0) { ChangeVehiclePaintjob(VoziloInfo[i][vID],VoziloInfo[i][vMod][0]); }
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement