SetPlayerVelocity - Not High Enough
#11

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
Код:
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;
}
it goes like this
Код:
SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
If you wwant only in air just remove that 0.5 and set like 5. It will be really high.
Hope this helped you
Reply


Messages In This Thread
SetPlayerVelocity - Not High Enough - by SupperRobin6394 - 04.05.2016, 11:40
Re: SetPlayerVelocity - Not High Enough - by kaisersouse - 04.05.2016, 11:45
Re: SetPlayerVelocity - Not High Enough - by SupperRobin6394 - 04.05.2016, 11:49
Re: SetPlayerVelocity - Not High Enough - by Micko123 - 04.05.2016, 16:47
Re: SetPlayerVelocity - Not High Enough - by SupperRobin6394 - 04.05.2016, 17:50
Re: SetPlayerVelocity - Not High Enough - by Ritzy2K - 04.05.2016, 18:09
Re: SetPlayerVelocity - Not High Enough - by iggy1 - 04.05.2016, 18:35
Re: SetPlayerVelocity - Not High Enough - by SupperRobin6394 - 04.05.2016, 19:38
Re: SetPlayerVelocity - Not High Enough - by iggy1 - 04.05.2016, 19:46
Re: SetPlayerVelocity - Not High Enough - by SupperRobin6394 - 04.05.2016, 19:59
Re: SetPlayerVelocity - Not High Enough - by Micko123 - 05.05.2016, 07:01

Forum Jump:


Users browsing this thread: 1 Guest(s)