Auto stop car.
#1

Hi all.Maybe can do that command,which when I'am in vehicle and i start moving to another car,and 2 metres left until i knock i will get stopped,is this possible?
Reply
#2

Use timer.
pawn Код:
stock GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
    new Float:a;
    GetVehiclePos(vehicleid, x, y, a);
    GetVehicleZAngle(vehicleid, a);
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
GetVehiclePos.
Then make your own IsVehicleInRangeOfPoint.
Reply
#3

How i can make IsVehicleInRangeOfPoint?
Reply
#4

Quote:
Originally Posted by budelis
Посмотреть сообщение
How i can make IsVehicleInRangeOfPoint?
That doens't exist yet, the 'IsVehicleInRangeOfPoint'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)