Marion Knight, the one-time rap mogul better known as Suge, will be sentenced to 28 years in prison after pleading no contest Thursday to reduced charges in connection with a 2015 hit-and-run death tied to the film “Straight Outta Compton,” after a bizarre chain of events that delayed his murder trial.

Mr. Knight, 53, pleaded no contest to voluntary manslaughter in Los Angeles Superior Court after a plea deal was reached just days before jury selection was to begin. He had been charged with murder, attempted murder and hit-and-run as a result of a dispute on the set of a trailer for the popular N.W.A biopic, which included a depiction of Mr. Knight.

The authorities said Mr. Knight killed Terry Carter, 55, a Compton, Calif., businessman, and injured a security consultant, Cle Sloan, when he ran over both at a local burger stand. His lawyers said at the time that he was fleeing and had acted in self-defense.

The Los Angeles County District Attorney’s Office said in an announcement of the plea bargain that Mr. Knight would be sentenced to 11 years in prison for the manslaughter count, which would be doubled under California’s three-strikes law based on his prior convictions. Because this conviction was for a “serious and violent” felony that used a deadly weapon — a Ford F-150 Raptor pickup truck — he received an additional six years. The official sentencing is scheduled for Oct. 4.