13.04.2013, 06:31
Код:
stock SAUGOMNUOSAVAMASINA(playerid, vehicleid ) { new file[ 40 ]; format(file,sizeof(file),"saves/vehicle/%d",vehicleid); if(!fexist(file)) return; new Float:vposX,Float:vposY,Float:vposZ,Float:vposA; GetVehiclePos( vehicleid, vposX,vposY,vposZ ); GetVehicleZAngle( vehicleid, vposA ); dini_IntSet(file,"Modelis",GetVehicleModel( vehicleid ) ); dini_FloatSet(file,"VPosx",vposX); dini_FloatSet(file,"VPosy",vposY); dini_FloatSet(file,"VPosz",vposZ); dini_FloatSet(file,"VPosa",vposA); dini_IntSet(file,"Kuras",vehicleDB[vehicleid][gas]); dini_FloatSet(file,"Rida",vehicleDB[vehicleid][prav]); dini_IntSet(file,"Mod1",GetVehicleComponentInSlot(vehicleid,0)); dini_IntSet(file,"Mod2",GetVehicleComponentInSlot(vehicleid,1)); dini_IntSet(file,"Mod3",GetVehicleComponentInSlot(vehicleid,2)); dini_IntSet(file,"Mod4",GetVehicleComponentInSlot(vehicleid,3)); dini_IntSet(file,"Mod5",GetVehicleComponentInSlot(vehicleid,4)); dini_IntSet(file,"Mod6",GetVehicleComponentInSlot(vehicleid,5)); dini_IntSet(file,"Mod7",GetVehicleComponentInSlot(vehicleid,6)); dini_IntSet(file,"Mod8",GetVehicleComponentInSlot(vehicleid,7)); dini_IntSet(file,"Mod9",GetVehicleComponentInSlot(vehicleid,8)); dini_IntSet(file,"Mod10",GetVehicleComponentInSlot(vehicleid,9)); dini_IntSet(file,"Mod11",GetVehicleComponentInSlot(vehicleid,10)); dini_IntSet(file,"Mod12",GetVehicleComponentInSlot(vehicleid,11)); dini_IntSet(file,"Mod13",GetVehicleComponentInSlot(vehicleid,12)); dini_IntSet(file,"Mod14",GetVehicleComponentInSlot(vehicleid,13)); }