13.11.2015, 22:40
thats because you destroy the vehicle and then save (you save when the vehicle allready destroyed).
pawn Код:
if(!IsPlayerInDynamicArea(playerid, safezone))
{
new Float:x, Float:y, Float:z, Float:a;
if(PlayerInfo[playerid][pVehicle1] != 0)
{
GetVehiclePos(car1[playerid], x, y, z);
GetVehicleZAngle(car1[playerid], a);
PlayerInfo[playerid][pVehicle1X] = x;
PlayerInfo[playerid][pVehicle1Y] = y;
PlayerInfo[playerid][pVehicle1Z] = z;
PlayerInfo[playerid][pVehicle1C] = a;
car1[playerid] = CreateVehicle(PlayerInfo[playerid][pVehicle1Model], Float:x, Float:y, Float:z, Float:a, PlayerInfo[playerid][pVehicle1Color1], PlayerInfo[playerid][pVehicle1Color2], 999999);
DestroyVehicle(car1[playerid]);
}
}