あなた don't. It's not something あなた can just plan. It's something that happens. If あなた try to get a guy to like you, you're not really being yourself then, are you?
あなた have to be yourself. If not, then he's not going to like you, he's going to like the you that あなた pretend to be. And if he doesn't like the real you, then that's too bad. There's not much that あなた can do about it. あなた can't always get what あなた want. That's life. Deal with it.