A former Chicago man was sentenced to 24 years in prison for shooting another man at a children’s indoor amusement park in west suburban Villa Park in 2021, prosecutors said.