A man involved in a shooting at a North Adelaide cafe has pleaded guilty to threatening life.
Rezgar Mohammadi, 25, was due to stand trial in the District Court, charged with an act to endanger life.
Shots were fired at Caffe Paesano in O'Connell Street in December 2011.
Mohammadi instead pleaded guilty to the lesser charge of threatening life.
The prosecution said the man was seen on security vision in a hooded jumper and trying to conceal his face with his hand.
They said he entered the eatery and approached Ahmed Jalloul, 25, who was dining with three other people.
Witnesses heard bangs and saw flashes.
The prosecution said it could not be concluded Jalloul's gun alone discharged the spent bullets and casings found at the scene, because no guns had been recovered.
The court heard Mohammadi fled the cafe with a wound above his right eyebrow.
Jalloul earlier pleaded guilty to endangering life and a firearms offence.
Both men will be sentenced later.