KeyCheck down
#4

It works, but y + 50 makes me go underground.
pawn Код:
public OnPlayerUpdate( playerid )
{
    new
        Keys,
        ud,
        lr
    ;
    GetPlayerKeys( playerid, Keys, ud, lr );
 
    if(ud > 0)
    {
        if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
        {
            new
                Float:x,
                Float:y,
                Float:z
            ;
            GetVehicleVelocity( GetPlayerVehicleID( playerid ), x, y, z );
            SetVehicleVelocity( GetPlayerVehicleID( playerid ), x, y + 50, z );
        }
    }
    return 1;
}
Reply


Messages In This Thread
KeyCheck down - by klotebandit - 19.03.2013, 10:19
Re: KeyCheck down - by CBCandyBoy - 19.03.2013, 10:22
Re: KeyCheck down - by klotebandit - 19.03.2013, 10:23
Re: KeyCheck down - by Konstantinos - 19.03.2013, 10:35
Re: KeyCheck down - by klotebandit - 19.03.2013, 10:41
Re: KeyCheck down - by Konstantinos - 19.03.2013, 10:44
Re: KeyCheck down - by klotebandit - 19.03.2013, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)