12.02.2015, 14:56
Hi !
I have a little problem to dealer car , buy car, everything is ok , I give / v park, but do not restart remains the place where I gave the park, you have to bring / getcar . Do you have any idea ?
I have a little problem to dealer car , buy car, everything is ok , I give / v park, but do not restart remains the place where I gave the park, you have to bring / getcar . Do you have any idea ?
Quote:
Quote: new Float:CarHP, Float:OldCarHP; new panels,doors,lights,tires; CarInfo[carid][cLocationx] = x; CarInfo[carid][cLocationy] = y; CarInfo[carid][cLocationz] = z; CarInfo[carid][cAngle] = a; GetVehicleDamageStatus(carid,panels,doors,lights,t ires); GetVehicleHealth(carid, CarHP); OldCarHP = CarHP; format(string, sizeof(string), "~n~ You have parked your vehicle in this location. ~n~"); GameTextForPlayer(playerid, "Masina a fost parcata cu scucces..", 10000, 3); OnCarUpdate(); SavePlayerData(playerid); DestroyVehicle(carid); CreateVehicle(CarInfo[carid][cModel],CarInfo[carid][cLocationx],CarInfo[carid][cLocationy],CarInfo[carid][cLocationz]+1.0,CarInfo[carid][cAngle],CarInfo[carid][cColorOne],CarInfo[carid][cColorTwo],60000); LoadComponents(carid); OnCarUpdate(); SavePlayerData(playerid); PutPlayerInVehicle(playerid,carid,0); SetVehicleHealth(carid, OldCarHP); UpdateVehicleDamageStatus(carid,panels,doors,light s,tires); TogglePlayerControllable(playerid, 1); return 1; } } } |