A 30-year-old Yakima man who was shot after pointing a gun at Yakima police officers was sentenced to 20 years in prison.