05.05.2016, 07:01
I made this command tested it, and it is working. When player presses "Y" it will lunch him in the air. Maybe this can help you
it goes like this
If you wwant only in air just remove that 0.5 and set like 5. It will be really high.
Hope this helped you
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_YES) { if(IsPlayerInAnyVehicle(playerid)) { SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.5); return 1; } } return 1; }
Код:
SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
Hope this helped you