.

Former NFL star Darren Sharper told a Las Vegas judge he'll plead guilty to a felony attempted sex assault charge as part of a plea deal in four states that will send him to federal prison for about nine years.

A lawyer for the former all-pro safety appeared Tuesday in a Las Vegas courtroom, while Sharper appeared through an Internet hookup from a courtroom in Los Angeles, where he's jailed.

The judge scheduled Sharper to plead guilty later Tuesday in Nevada state court to attempted sexual assault. Sentencing will come later.

In separate steps Monday, the 39-year-old Sharper pleaded guilty to sexual assault in Arizona and no contest in California to raping two women he drugged into unconsciousness.

He faces a hearing in New Orleans in the next month.

Sharper will serve just nine more years behind bars for drugging and raping women in four states as part of a global plea deal that began to play out Monday with Sharper entering guilty pleas in Los Angeles and Tempe, Arizona.

A source with knowledge of the case said Sharper, 39, has agreed to plead guilty in New Orleans to two counts of forcible rape and a count of simple rape stemming from two incidents that took place within a month of each other in 2013. Had he been convicted as charged on either of two counts of aggravated rape he faced, Sharper would have received an automatic sentence of life in prison.

His deal with Orleans Parish District Attorney Leon Cannizzaro’s office calls for a 20-year sentence on the Louisiana charges, the source said, but he will be required to serve only half that amount under the terms of the deal. Sharper is also getting credit for the year he already has spent in jail.

Under the deal, Sharper will serve the bulk of his prison time in federal custody, followed by probation and lifetime registration as a sex offender. The federal prison stint means a break of sorts for Sharper, as federal prison is generally considered preferable to state prison.

Sharper’s attorney, Blair Berk, who confirmed the global deal on Friday, declined to comment Monday on specifics of the agreement.