I have ankles swollen, knees and hips in pain due to soccer, what to do?

Stop playing. Rest. Take a nice warm bath with epsom salts and take an antiinflammatory if not contraindicated. I would look to see if you are flatfooted or pronated and consider an orthotic. If your pain is persistent i would consult a rheumatologist.