A problem with F4 and forcing player spawning
#1

Hi all! I want to create a registration/login by toggling player spectate. When OnPlayerRequestClass is called, I put player in spectate mode and show him registration/login dialog. If it's registration I need to make player select skin by default class selection. When it's login I need to skip class selection (force spawn).
I tried many variants and stopped on one very weird method. It works, but if player is logged in, presses F4 and then dies, he returns again to class selection and I can't skip it.
Have any ideas or examples?

P.S. I'm sorry for my english.
Reply
#2

Problem is solved by using SetSpawnInfo before TogglePlayerSpectating.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)