This is pharmacology 101!
Amphetamines are basic drugs and their excretion depends on the fraction of non-ionised to ionised in urine. Ascorbic acid is an acid hence it will make the urine acidic and will protonate the amphetamines as a result. The distal tubule cells in the lower urinary tract reabsorbs molecules which has no charged hence it will be maintained in the circulatory system. So amphetamines are maintained in the system because it is being reabsorbed (I think the pKa of amphetamines are higher than physiological pH so it won't be protonated). To stop the damaging effects of these drugs, ascorbic acid makes the urine acidic and prevents the amphetamines from being absorbed hence preventing further overdose.
My toxicology lecturer said that some people add ammonium bicarbonate with amphetamines to keep a long term high, but it can leave to immediate overdose though!