As Doc Love puts it, this guy is known as a "Blocker" He is showing her how cool of a guy YOU ARE! Not himself, he is constantly trying to get her attention, proving he has no life, he is trying so hard that you look like Casanova! Yes this will happen all the time when you get a hot girl, play it cool, unless this guy knows what he is doing, which he doesn't, so its all good. Tell her to confront him, get her to even ditch the friend zone with him, it gives her comfort, and makes it easier for him to gain her interest. She knows he's a loser so let her deal with it, if on the other hand someone who knows what they are doing and can gain her interest comes along, tell her what situation she is in, then hope she does the same, if not, its a possible NEXT!
Cheers!
Cheers!