SA-MP Forums Archive
A problem with F4 and forcing player spawning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: A problem with F4 and forcing player spawning (/showthread.php?tid=546954)



A problem with F4 and forcing player spawning - BoPoH - 19.11.2014

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.


Re: A problem with F4 and forcing player spawning - BoPoH - 19.11.2014

Problem is solved by using SetSpawnInfo before TogglePlayerSpectating.