In the 1967 novel of Logan's Run the Deep Sleep (DS) men also known as 'Sandmen' use weapons called simply Guns. They were shaped like a revolver and carried one each of 6 different bullets: homer, tangler (sticky net), nitro, vapor, ripper, and needler, all programmed to to explode if anyone but the registered owner tried to use them.
The Lawgiver from 2000AD's Judge Dredd story also fires 6 different types of ammunition and should an attempt be made by an unauthorized person to use the Lawgiver, it will explode in that person's hand.
It would seem somebody at 2000AD was a fan of Logan's Run at the time of Judge Dredd's writing.
The Sandmen in the film version of Logan's Run carry a different weapon, it appears to only fire one type of bullet, as it fires a bright muzzle flash flares from the end of the gun