Guest User

Untitled

a guest
Dec 30th, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. stock LoadCar()
  2. {
  3. new tz = 0;
  4. for(new carid = 1; carid < 300; carid++)
  5. {
  6. if(DOF2_FileExists(CarFile(carid)))
  7. {
  8. tz++;
  9. PlayerCar[tz][carid] = AddStaticVehicle(DOF2_GetInt(CarFile(carid),"CarID"),DOF2_GetFloat(CarFile(carid),"Carx"),DOF2_GetFloat(CarFile(carid),"Cary"),DOF2_GetFloat(CarFile(carid),"Carz"),DOF2_GetFloat(CarFile(carid),"Carzangel"),DOF2_GetInt(CarFile(carid),"CarColor1"),DOF2_GetInt(CarFile(carid),"CarColor2"));
  10. if(DOF2_GetInt(CarFile(carid),"HaveNitro") == 1) AddVehicleComponent(PlayerCar[tz][carid], 1010);
  11. if(DOF2_GetInt(CarFile(carid),"CarWheel") != 0)AddVehicleComponent(PlayerCar[tz][carid], DOF2_GetInt(CarFile(carid),"CarWheel"));
  12.  
  13. new Text3D:vehicle3Dtext;
  14. format(String,250,"Owner: %s",DOF2_GetString(CarFile(carid),"Owner"));
  15. vehicle3Dtext = Create3DTextLabel(String, COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
  16. Attach3DTextLabelToVehicle(vehicle3Dtext, PlayerCar[tz][carid], 0.0, 0.0, 1.1);
  17. }}}
Advertisement
Add Comment
Please, Sign In to add comment