Save vehicle position
#2

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]);
   }
}
Reply


Messages In This Thread
Save vehicle position - by SalmaN97 - 13.11.2015, 20:33
Re: Save vehicle position - by UltraScripter - 13.11.2015, 22:40
Re: Save vehicle position - by UltraScripter - 13.11.2015, 22:44

Forum Jump:


Users browsing this thread: 1 Guest(s)