Saving Vehicle Position
#8

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
Probably just need this under OnPlayerDisconnect

pawn Код:
for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
{
    new Float:x, Float:y, Float:z, Float:angle, Float:health;
    GetVehicleHealth(PlayerVehicleInfo[playerid][d][pvId], health);
    PlayerVehicleInfo[playerid][d][pvHealth] = health;
    GetVehiclePos(PlayerVehicleInfo[playerid][d][pvId], x, y, z);
    GetVehicleZAngle(PlayerVehicleInfo[playerid][d][pvId], angle);
    UpdatePlayerVehicleParkPosition(playerid, d, x, y, z, angle, health);
}
Assuming UpdatePlayerVehicleParkPosition saves it
Thanks men it worked
Reply


Messages In This Thread
Saving Vehicle Position - by yancarlos4500 - 03.11.2013, 18:45
Re: Saving Vehicle Position - by Gogorakis - 03.11.2013, 18:56
Re: Saving Vehicle Position - by yancarlos4500 - 03.11.2013, 19:00
Re: Saving Vehicle Position - by CJay9209 - 03.11.2013, 19:16
Re: Saving Vehicle Position - by yancarlos4500 - 03.11.2013, 19:43
Re: Saving Vehicle Position - by [ABK]Antonio - 03.11.2013, 20:01
Re: Saving Vehicle Position - by yancarlos4500 - 03.11.2013, 20:16
Re: Saving Vehicle Position - by yancarlos4500 - 03.11.2013, 20:26

Forum Jump:


Users browsing this thread: 2 Guest(s)