Provide tools, strategies, and alternatives. They still have to use them (it can't be forced), but it's definitely possible to smooth the path. For example, if you have a friend who is trying to quit drinking, invite them to fun alcohol-free events.
Then your friend goes home and drinks alone...