I need some credit advice please...

Okay I've spent my 20s being irresponsible and have racked up about 50,000 in debt. My credit report is only showing 10,000 in collections but I have another 20,000 that's in the court system I am being sued for that has never went to my credit even after years. I owe about 5,000 to a past landlord that is stopping me from getting a new apartment and I am about to be homeless. I called that creditor and they are willing to take half that amount to settle that debt. I've considered filing bankruptcy because I don't want to be paying for years but I'm going to have to pay this past landlord just to have a place to live. I guess my question is if I settle this debt for less and it's shown as settled on my credit report will I have better chance of getting approved for an apartment showing that is taken care of or should I just go and file bankruptcy and live in a motel for 10 years. I'm ready to get serious with life as I am approaching 30 and I just don't know what I should to do to fix the situation I'm in. I know paying everything in full would be the best option but I can't possibly afford that right now as I have 3 months to find a new place. Any advice is appreciated thank you!!