Police sources have identified the gunman in a standoff at a Tioga apartment building that left six police officers injured as Maurice Hill, 36, a Philadelphia man with a lengthy history of gun convictions and resisting attempts to bring him to justice.

The police sources declined to be identified because they were not authorized to speak. Reached by phone about 9:30 p.m. Wednesday, Shaka Johnson, the lawyer who most recently represented Hill, confirmed that Hill had a connection to the standoff.

“My client is requesting me to come to the scene,” he said.

The standoff began about 4:30 p.m. Wednesday when a Narcotics Strike Force unit attempted to serve a search warrant at a house on the 3700 block of North 15th Street.

For the next few hours, police used bullhorns and phone calls trying to get the gunman to surrender.

» READ MORE: ‘We got an officer down!’: Inside North Philly shootout that left 6 cops shot

And then, just after midnight, a man left the home and was placed into police custody.

After Hill’s surrender, Johnson said in an interview with CBS3 that Hill called him about 8:30 p.m. on his personal phone “in a panic."

“I told him, ‘You gotta surrender, man,’” said Johnson, who added that he has known Hill for about a decade.

Hill’s history in the adult criminal justice system began in 2001, when he was 18 and was arrested with a gun that had an altered serial number.

» CATCHING UP: What you should know about the Philadelphia police shooting and standoff

Public records show that he has been arrested about a dozen times since turning 18, and convicted six times on charges that involved illegal possession of guns, drug dealing, and aggravated assault. He has been in and out of prison; the longest sentence handed him came in 2010, when a federal judge gave him a 55-month term.

And his record indicates he does not like to go to prison. In 2008, he was convicted of escaping, fleeing from police, and resisting arrest. Along the way, he beat criminal charges on everything from kidnapping to attempted murder.

Maurice Hill, 36, pictured in a mug shot on file with the Pennsylvania Department of Corrections
Pennsylvania Department of Corrections
Maurice Hill, 36, pictured in a mug shot on file with the Pennsylvania Department of Corrections

Hill also spent time in federal prison. In 2008, he pleaded guilty to federal firearms violations after he was caught with a Smith & Wesson .357 and later a Taurus PT .45 semiautomatic. His prior felony convictions should have barred him from owning those weapons. U.S. District Judge Paul S. Diamond sentenced him to four years and seven months in prison.

More recently, Hill was convicted of perjury in 2013 and sentenced to seven years of probation. He appeared before Common Pleas Court Judge Rayford Means for three different alleged violations of probation — at least two of them related to new cases, which he later beat.

In one of those cases, Philadelphia police arrested Hill in May 2014 after spotting him driving an unregistered scooter. But when officers tried to stop him, he raced down an alleyway against traffic on a one-way street and then onto a sidewalk, sending pedestrians scattering, court records say. Hill crashed the scooter and then fled on foot but was apprehended. He was charged with driving without a license, recklessly endangering another person, and fleeing police, but was acquitted on all counts.

Philadelphia police arrested Hill again in October 2014 on charges of drug possession and false imprisonment.

According to court filings, his accuser told police she had agreed to sell marijuana for Hill but then changed her mind. When he summoned her to his house on the 6900 block of Greenway Street in Southwest Philadelphia days later, she said, she overheard Hill and an associate discussing killing her. Fearful for her life, the woman said, she called 911. When officers arrived, she fled as Hill and his associate hid the crack cocaine and marijuana in a tire out back. Investigators discovered 83 grams of marijuana.