11.08.2011, 14:52
i already made that
but the vehicle don't spawn to the saved position
Код:
public OnVehicleSpawn(vehicleid) { new playerid; for(new i = 0; i < MAX_VEHICLES; i++) if(dini_Exists(VFile(i))) { SetVehicleNumberPlate(i, dini_Get(VFile(i), "Plate")); if(VehicleInfoCarOwn[i][Parkedcarown] == 1) { SetVehiclePos(i, dini_Float(VFile(GetPlayerVehicleID(playerid)), "X"), dini_Float(VFile(GetPlayerVehicleID(playerid)), "Y"), dini_Float(VFile(GetPlayerVehicleID(playerid)), "Z")); } } return 1; }