A prison inmate who had implicated a former Los Angeles Police Department officer in the shooting death of rap star Biggie Smalls has renounced his story, tying a new knot in the tangle of intrigue that surrounds the still-unsolved killing.

Waymond Anderson, who was briefly a top-selling R&B artist and is serving a life term for murder, said in a recent deposition that he lied about LAPD involvement in the Smalls slaying as part of a "scam" concocted by two other convicts to squeeze a large monetary settlement out of the city.

Smalls' family has filed a wrongful death suit seeking damages from the city. In a surprising twist, Anderson accused the rapper's family and its lawyer of participating in the scheme and offering to pay him for false testimony implicating the LAPD.

He said he was offered a percentage of any settlement if he testified that former Los Angeles Officer Rafael Perez had told him that another ex-officer, David Mack, was involved in the murder. In the deposition, he repudiated earlier statements to police investigators in which he described conversations with both of the disgraced officers.

"I don't know David Mack, I don't know Rafael Perez," Anderson told lawyers representing relatives of the slain rapper, whose real name was Christopher Wallace.

The two officers "had no involvement with the . . . murder," Anderson said under oath. At various points in the deposition, he said, "It was a lie, and I'm ashamed of it," and, "I did what I had to do to survive."

The slain rapper also was known as Notorious B.I.G. He was gunned down outside the Petersen Automotive Museum in the Mid-Wilshire District after a music industry party on March 9, 1997.

Anderson's testimony, given Aug. 20, was an unexpected reversal for the Wallace family lawyers, who presumably assumed that he would tell the same story he had earlier told detectives.

In some of his most explosive testimony, Anderson charged that the family's lawyer, Perry R. Sanders Jr., offered to pay him to lie in court about Perez and Mack.

Sanders, a Louisiana lawyer who also has offices in Colorado Springs, Colo., said Anderson's allegations were "100%, demonstrably false."

"This is wholesale, made-up-out-of-whole-cloth perjury," he said in an interview.

Sanders added that Anderson appeared to have been acting at the behest of a Times reporter, Chuck Philips, who has written extensively about Wallace's death, including articles that raised questions about the theory that LAPD officers were involved.

The Times published an article by Philips earlier this year that cast doubt on Anderson's conviction in a 1993 arson-murder. Anderson has since filed a writ of habeas corpus seeking his release.

Sanders said Anderson "clearly would like to please Mr. Philips, because he's singing his song, first, second and third verse and certainly the chorus."

In a court filing after the deposition, two attorneys working with Sanders on the Wallace case suggested that an unidentified "third party" had induced Anderson to commit perjury.

Sanders offered no evidence to support his argument, except to say that Philips had been a "detractor" of the Wallace family's theory of the case.

Philips, who won a Pulitzer Prize in 1999 for his coverage of corruption in the entertainment industry, called Sanders' claim "idiotic."

"This guy clearly doesn't understand what an investigative reporter does for a living," he said. "I don't make up stories, I report them."

Times Editor James O'Shea said Sanders' accusations against Philips were "utterly groundless."