BALTIMORE (WJZ)—A teen who smashed a traffic cone through the windshield of a city police car during the riots in April was sentenced today.

19-year-old Allen Bullock, who pleaded guilty last month to charges against him was sentenced to 12 years all but six months suspended. Bullock must serve five years of probation, 400 hours of community service, get his GED and write an apology letter to the Baltimore City Police Department.

READ MORE: Maryland Students Suffer From Anxiety Following School Shooting In Texas

RELATED: Family Of Baltimore Teen Accused Of Smashing Police Cruiser Says Bail Unfair

Images show Bullock standing on the hood and damaging the vehicle just two days before riots broke out in the city.

READ MORE: Fewer Blue Crabs In The Chesapeake Bay "Continue A Worrying Trend"

Bullock, who says he was friends with Freddie Gray, was later charged with eight counts of rioting and malicious destruction of property.

“It was crazy, for real. It really happened too fast. I’ve seen a lot in like two days, a day,” said Bullock.

“I think they were trying to make an example. That was just ridiculous,” Bullock’s mother, Bobbie Smallwood, said last year.

MORE NEWS: ‘We Don’t Have To Accept This’ Calls For Action After Texas School Massacre As Shootings Rise In Baltimore, Nationwide

Allen Bullock has served time behind bars before–as a juvenile.