How to set proxy?

I need to launch games with a socks5 proxy set because login and some other features dont work on my network, is there a way to do this?