SA-MP Forums Archive
How to Switch to Request Class as soon as you connect? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to Switch to Request Class as soon as you connect? (/showthread.php?tid=482625)



How to Switch to Request Class as soon as you connect? - ZBits - 22.12.2013

Hello, i have a small question,

When i join my server, i have to login and then it proceeds to the Request Class, i want my class section to be visible while i am typing in my password or registering my account.

What i currently have now is just the regular connection screen, the beach. If someone could either help me change my Connecting screen or make my request class visible when i am logging in would be great!.

thanks in advance!


Re: How to Switch to Request Class as soon as you connect? - xser - 22.12.2013

Just show the registration/login dialog's in 'OnPlayerRequestClass' instead of 'OnPlayerConnect'.


Re: How to Switch to Request Class as soon as you connect? - ZBits - 22.12.2013

i tried that but whenever i switch my person in class selection, i have to type my password again.


Re: How to Switch to Request Class as soon as you connect? - PowerPC603 - 22.12.2013

Keep a variable that holds "true" after that player entered the correct password.
Before showing the dialog, check if it's false. If so, display the dialog, otherwise do nothing.