07.05.2015, 13:41
Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z) { if(GetVehicleDistanceFromPoint(vehicleid, new_x, new_y, new_z) > 20) { new Float:ATPX, Float:ATPY, Float:ATPZ; GetVehiclePos(vehicleid, ATPX, ATPY, ATPZ); SetVehiclePos(vehicleid, ATPX, ATPY, ATPZ); return 0; } return 1; }