21.04.2012, 00:44
Use TogglePlayerSpectating to put the player in to spectating mode, then show your login dialog, and when they respond to the dialog simple set TogglePlayerSpectating to 0/false and it will spawn them. You may also want to set their camera position for a 'login screen' - this should be done on a ~150 MS timer (doesn't work straight after TogglePlayerSpectating).