Kadeem Blackwood was shot dead in November
An alleged gang "general" was seen with a gunman shortly before he shot a teenager dead in Derby, a court hears.
Nottingham Crown Court heard Michael-Paul Hamblett-Sewell and Callum Campbell, were seen together in the hours before Kadeem Blackwood died.
Campbell, 19, who has already admitted carrying out the shooting in 2008, was looking for Kadeem on the fatal night, a witness said.
Mr Hamblett-Sewell, 20, of Marlborough Road, Derby, denies murder.
The prosecution alleges that while Campbell pulled the trigger, he was acting under the orders of Mr Hamblett-Sewell.
The court heard that CCTV images showed Mr Hamblett-Sewell and the gang's "lieutenant" Campbell, outside an off-licence on the evening of the killing.
Campbell was wearing the purple bandana of the A1 Crew gang.
Two witnesesses then saw them at a drive-through takeaway one of them, Stuart Russell, said he agreed to drive them round the city.
Another witness, 17-year-old Jacob Freeman, told the court Campbell had approached him at the bowling alley and seemed to be looking for Kadeem or someone who knew him.
Kadeem was killed at Caxton Street recreation ground on 11 November soon after.
The trial continues.