27.07.2015, 16:52
hey how to script an directional speedboost? not the normal speedboost that increase your speed when you are in a moving vehicle, the speedboost that push your vehicle to where it is facing. hope you understand me.
new
vehicleid = GetPlayerVehicleID(playerid);
new
Float:x,
Float:y,
Float:angle;
GetVehicleZAngle(vehicleid, angle);
x = floatsin(-angle, degrees) * 1.5;
y = floatcos(-angle, degrees) * 1.5;
SetVehicleVelocity(vehicleid, x, y, 0.0);