What would be your advice for such if they were to be your friends as a caring friend who want them to not get financially drained in the process?
Encourage them to consult a therapist to recover from their addiction, or tell their family so they know what they're doing and can get help more quickly.
However, someone who's out of control often finds it difficult to accept advice or input, so don't stop reminding them.