19.03.2013, 10:35
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;
}

