Is it possible to make flying cars like cheat
#4

It's possible, but it won't be very 'smooth' like the flyhacks your mentioned.
Just warp a vehicle into the air with SetVehicleVelocity. Then, use a custom function like this to set the vehicle speed:

Код:
stock SetVehicleSpeed(vehicleid, Float: speed, mode = 1)
{
	new Float: vAngle;
	GetVehicleZAngle(vehicleid, vAngle);
	speed = ((!mode) ? (speed / 105.0) : (speed / 170.0));
	return SetVehicleVelocity(vehicleid, speed * floatsin(-vAngle, degrees), speed * floatcos(-vAngle, degrees), 0.0);
}
For example, use the speed 220 (mode 0). Then you'll have to make a timer where you repeat this function in (every 500 milliseconds for example)

Use SetVehicleZAngle to steer in the air. Good luck!
Reply


Messages In This Thread
Is it possible to make flying cars like cheat - by jueix - 04.08.2011, 18:54
Re: Is it possible to make flying cars like cheat - by [HiC]TheKiller - 04.08.2011, 18:58
Re: Is it possible to make flying cars like cheat - by ⒹⒾⓇⒺⒸⓉⓄⓇ - 04.08.2011, 19:02
Re: Is it possible to make flying cars like cheat - by Danny - 04.08.2011, 19:03

Forum Jump:


Users browsing this thread: 1 Guest(s)