A teenager who allegedly shot three high school classmates to death and wounded five others while they prayed told a friend he was planning to bring guns to school, court papers show.

Michael Carneal admitted in a videotaped interview with detectives he had talked with an older schoolmate, Toby Nace, about "the taking of guns to Heath High School," court records reveal.Carneal, who was a 14-year-old freshman at the time of the slayings, is charged as an adult with opening fire in the school's lobby just as classmates ended an informal prayer meeting Dec. 1.

He also traded e-mail messages with Nace about bringing weapons to school, according to an affidavit for a warrant to search the hard drive of Carneal's computer.

One e-mail from Nace referred to the "timing of the event in the hall," the document said.

Nace is not charged. He was served Tuesday with a subpoena to testify next month before a McCracken County grand jury investigating the shootings, said Dennis Null, his attorney.

Records pertaining to the search warrants were filed in court May 7.