Uberanwar, long time no see.
The code inside of "OnPlayerDeath" is only called upon, as the name implies, a player death. None of the code you have inside that callback should be causing a loop. My suggestion to you is to assert no parts of your code are purposefully killing the player or calling the OnPlayerDeath callback.
Likewise, you should also be sure these players aren't trolls using illegitimate clients to fake deaths in order to mess with you, as this is a rather common thing for some to do.
The code inside of "OnPlayerDeath" is only called upon, as the name implies, a player death. None of the code you have inside that callback should be causing a loop. My suggestion to you is to assert no parts of your code are purposefully killing the player or calling the OnPlayerDeath callback.
Likewise, you should also be sure these players aren't trolls using illegitimate clients to fake deaths in order to mess with you, as this is a rather common thing for some to do.