I have a friend; he’s been living in the UK since he was 18. He has applied for family and work visas but the UK has refused all of them. He got married to someone in the UK. Immigration didn’t think it was real and he got deported. He ended up coming back. Now he has met a girl and they are trying to do his papers again. He went back to his country and is applying there but will the visa get approved since he has been deported?
If I've read your post correctly, your friend has been denied visas repeatedly, to the point where he was deported, and, it seems, he's been living in the UK illegally.
He has the worst possible immigration record and, I'd estimate, exactly zero chance of ever getting a visa.
He needs professional help from an expert in UK immigration, not comments from a bunch of strangers on the internet. This will will be expensive, and carries only limited chance of success.