So i reset the value after client disconnect:
g_canJoin[id]= false;
Do i need to reset it also on client_connect?
I heard that sometimes when client crashes or looses internet connection there is a chance that player_disconnect event doesnt trigger after player disconnection.
This means that after one player's disconnect without player_disconnect event then boolean will stay true on connection instead of false.
Is this true? And is it safe to reset boolean value only on disconnect?