I think this is one of those things you come to learn with age and maturity, but you can't change anyone but yourself. A person will be a liar, or a flirt, or anything else until THEY want to change, not when YOU want them to. You can make suggestions, and let them know how their behavior effects you and makes you feel, but that's it.
It's up to them to decide if change is necessary and take the steps to change, and you to decide if you can accept them for whatever decision they make.