A Cape Coral man is sentenced to 30 years in prison for opening fire on police in Fort Myers back in October of 2021.