Two District residents pleaded guilty yesterday to charges stemming from the 1982 killing of a gas station manager who, police discovered, had hidden in his Northwest apartment the largest cache of pure heroin ever seized in the District.

Randall K. Brown, 29, pleaded guilty in D.C. Superior Court to charges of second-degree murder and second-degree burglary, and Michele A. Anderson, 29, pleaded guilty to manslaughter and being an accessory after the fact to burglary in the shooting of Rasheed K. Zaman, according to prosecutors.

Zaman was found in his apartment on June 26, 1982, with a bullet wound in the head, and police searching the small apartment found large quantities of 90 percent pure heroin in a briefcase and in a kitchen wall, authorities said.

Assistant U.S. Attorney G. William Currier told the court yesterday that Brown, Anderson and Bruce F. Wooten, 25, who previously pleaded guilty in the case, got into Zaman's apartment by pretending to be delivering telephone books. According to Currier, the three planned to rob Zaman and, during the struggle that ensued, Zaman was shot once in the head.

Brown's offenses carry a maximum penalty of 20 years to life in prison. Anderson's carry a maximum of 7 to 22 years. Anderson pleaded guilty to manslaughter under a special plea that allows the defendant to plead without actually admitting that he committed the crime.