McFarland also pleaded guilty to participating in two strong-arm robberies of corner grocery stores on Feb. 28, 2011.
Seated next to defense attorney Jonathan J. Sobel, McFarland said nothing during the hour-long hearing but one-word answers as Common Pleas Court Judge Glenn B. Bronson asked if he understood the constitutional rights he was giving up.
Bronson told McFarland that he would be sentenced to 20 to 40 years in prison if he fulfills his promise to cooperate in the prosecution of Rafael Jones, 25. Bronson said McFarland, who is also facing prison time in a federal carjacking case, would be allowed to serve his state sentence in a federal prison.
Bronson deferred sentencing until after Jones' trial, a death-penalty case set to begin Dec. 1.
The slaying put Pennsylvania probation policies under scrutiny when it was learned Jones had been released by state probation officers three days earlier - after testing positive for marijuana use and failing to find a proper place to live under house arrest.
Assistant District Attorney Jude Conroy said McFarland has given two statements admitting his role in and describing Moses' shooting. The first was after he surrendered to the FBI in Mobile, Ala., on Aug. 26, 2012, and the second last month.