Question: a guy tells you he has a girlfriend?
Answer: what to do when he has a girlfriend. Let him make the first move to explain the situation, then dial back the come-hither looks. Don't tempt him into dumping her or being unfaithful. Respecting the fact that he has a girlfriend will in turn make him respect you.