Have your own transportation, so you can leave if things get too uncomfortable.
This is the best one, but it can be dual purpose! When I was sober several years ago, I became the DD (designated driver) for all the outings and stuff that I knew I couldn't drink at, but wanted to go to.
Consider talking to your friends and asking them how are they getting there and if they'd prefer, how bout a lift from you?
Great way to get "off the hook" for drinking and you could save someone's life!