Start something more addictive like cocaine. Just kidding! I agree with what some1 said just stop being around people who do it so you are less tempted.
You dont have to ditch them, sorry if i came off like that.... but I'd say don't be around when they toke up. Just be honest and tell them that you are quitting. Maybe you'll be a good influence on them.