16.11.2014, 15:32
Hello , i tried to create an airplane which one fly forward , but the problem is that he's falling.

How can i make the airplane to fly forward? ..

Code:
if(strcmp(cmd, "/test", true) == 0) { TogglePlayerSpectating(playerid, 1); InterpolateCameraPos(playerid,2351.6499, -1926.1400, 111.2500, 2430.1599, -1876.8300, 111.2500, 120000); InterpolateCameraLookAt(playerid, 2352.6599, -1926.2000, 111.2400,2430.2200, -1877.8400, 111.4700,120000); AirplaneTutorialVeh[playerid] = CreateVehicle(592, 2443.4148, -1940.8149, 111.7929, 90.4175, -1, -1, 100); SetVehicleVelocity(AirplaneTutorialVeh[playerid], 3.0, 0.0, 0.2); SetTimerEx("AirplaneTutorial", 5000, 1, "d", playerid); return 1; } Function AirplaneTutorial(playerid) { SetVehicleVelocity(AirplaneTutorialVeh[playerid], 3.0, 0.0, 0.2); return 1; }