The only way to stop a bad guy with a gun is a good guy with a gun.
The one thing we should all understand about laws is that laws do not prevent crime. They only assign punishment. The threat of punishment has little effect on these people who are mentally ill.