Vehicle Jump
#2

https://sampwiki.blast.hk/wiki/Keys

KEY_CROUCH is H/Caps Lock for vehicles. Also you need to add + 0.3 from the z height.

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_CROUCH)))
    {
        if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
           
            new
                Float:x,
                Float:y,
                Float:z;
            GetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z);
            SetVehicleVelocity(GetPlayerVehicleID(playerid),x,y,z+0.3);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Vehicle Jump - by Spike Cena - 26.11.2013, 18:38
Re: Vehicle Jump - by Konstantinos - 26.11.2013, 19:15
Re: Vehicle Jump - by Spike Cena - 26.11.2013, 19:29

Forum Jump:


Users browsing this thread: 1 Guest(s)