It's not good to brag.
Jim and his friends were playing basketball, and Jim beat all of them in 1v1 games.
Jim wants to celebrate his victory.
Jim treats everyone to a drink on him the next time they hang out.
Jim lords his wins over his friends for the next week.
Jim's friends see him as generous and keep hanging out with him.
Jim's friends get tired of his bragging and stop hanging out with him.