A Chicago man has been sentenced to 24 years in prison for a shooting inside an amusement park in west suburban Villa Park in 2021.