29.09.2018, 16:32
Hi everybody, my problem is with this function, i don't know why don't work. I copied this exactly of the wiki
It is assumed that if the vehicle moves 50 meters it would have to return value 0, but not, Thanks!
Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
{
// Check if it moved far
if(GetVehicleDistanceFromPoint(vehicleid, new_x, new_y, new_z) > 50.0)
{
// Reject the update
return 0;
}
return 1;
}


