SA-MP Forums Archive
OnUnoccupiedVehicleUpdate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnUnoccupiedVehicleUpdate (/showthread.php?tid=531631)



OnUnoccupiedVehicleUpdate - Banditukas - 13.08.2014

Hi,

OnUnoccupiedVehicleUpdate

If here i GetVehiclePos, i will get old vehicle pos?


Re: OnUnoccupiedVehicleUpdate - Clad - 13.08.2014

Yes, The Wiki says so.
pawn Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
{
    GetVehiclePos(vehicleid, new_x, new_y, new_z);
 
    if(!IsPlayerInRangeOfPoint(playerid, 10, new_x, new_y, new_z))
    {
        // something
    }
    return 1;
}