Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock LoadCar()
- {
- new tz = 0;
- for(new carid = 1; carid < 300; carid++)
- {
- if(DOF2_FileExists(CarFile(carid)))
- {
- tz++;
- 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"));
- if(DOF2_GetInt(CarFile(carid),"HaveNitro") == 1) AddVehicleComponent(PlayerCar[tz][carid], 1010);
- if(DOF2_GetInt(CarFile(carid),"CarWheel") != 0)AddVehicleComponent(PlayerCar[tz][carid], DOF2_GetInt(CarFile(carid),"CarWheel"));
- new Text3D:vehicle3Dtext;
- format(String,250,"Owner: %s",DOF2_GetString(CarFile(carid),"Owner"));
- vehicle3Dtext = Create3DTextLabel(String, COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
- Attach3DTextLabelToVehicle(vehicle3Dtext, PlayerCar[tz][carid], 0.0, 0.0, 1.1);
- }}}
Advertisement
Add Comment
Please, Sign In to add comment