24.02.2014, 00:43
TL;DR so I'll just go with the title.
Under OnPlayerRequestClass, TogglePlayerSpectating on. This will hide class selection. You can then set a dialog. When they respond to the dialog, you can toggle spectating off and they will return to class selection.
If you don't want them to return to class selection, call SpawnPlayer when OnPlayerRequestClass is called again. You may need to use SetSpawnInfo if the player didn't select a class.
Under OnPlayerRequestClass, TogglePlayerSpectating on. This will hide class selection. You can then set a dialog. When they respond to the dialog, you can toggle spectating off and they will return to class selection.
If you don't want them to return to class selection, call SpawnPlayer when OnPlayerRequestClass is called again. You may need to use SetSpawnInfo if the player didn't select a class.