Officers intervened when Glenn Broadnax tried to run into traffic. Credit: Metro Archive

The deranged man who pretended to point a gun at cops, causing them to accidentally shoot two bystanders near Times Square on Saturday, told police he was trying to kill himself.

Glenn Broadnax, 35, was being pursued by cops after acting "erratically," weaving in and out of car traffic at the intersection of Eighth Avenue and West 42nd Street about 9:35 p.m.

A patrolling officer observed the Brooklyn resident attempt to get hit by a car and tried to take him into custody.

Broadnax told police that he had "smoked a blunt" and remembered very little of the incident.

"I saw my dead relatives and heard them talking to me, and then I tried to kill myself by jumping in front of cars," Broadnax told cops, according to a police source. "I had a mission. The mission was to self-destruct, to kill myself."

Police said Broadnax ran away from the officer and, when more cops arrived, they attempted to corral him.

Donald Romay, who was visiting the city from Florida with his wife, said he saw cops trying to stop Broadnax from getting hit by cars.