He has to want it
Your friend has to want therapy and medication, and all you can really do is encourage him to seek both and engage deeply and meaningfully in the therapeutic process.
You simply cannot do it for him, much as you'd like to. You can either be his friend or his therapist
. You cannot be both, and even though you want to see him get better, trying to be both simply will not work.