25.08.2011, 11:33
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?
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));
}