Is client_disconnect, disconnecting player is still count as ingame, knowing that, consider (iNum-1).
You can use get_playersnum instead, still you have to consider result-1.
Else, yuo don't need to make _e_AllPlayersLeft function public, you don't even need a function.