I have a question. I realise that yeah on connect it doesnt count and on disconnect it does. but I have 1 question. Sometime it fucks up when player is connect (it sees that he has connected then it sets a pass), and if he cancels the connection in the middle he just leaves and the password isnt being removed. How can I fix it? Therefore I think that if a player is in the middle of connecting (just passed client_connect), so if he cancels the loading client_disconnect isnt called? Cuz its not disable the password.
OR Maybe since he wasnt counted in get_playersnum() he wont be counted at disconnect either (if he terminated the connection to the server)