02.12.2015, 18:03
You can't, really. If a dialog shown in OnPlayerConnect is responded to, either by clicking one of the buttons or pressing escape, the class selection will be shown regardless of whether that dialog gets shown again (e.g. wrong password). You can only prevent players from spawning.