28.05.2015, 20:52
PHP код:
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) > 35)
{
new Float:StarX, Float:StarY, Float:StarZ;
GetVehiclePos(vehicleid, StarX, StarY, StarZ);
SetVehiclePos(vehicleid, StarX, StarY, StarZ);
return 0;
}
return 1;
}