Problem with class selection and dialogs - 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: Problem with class selection and dialogs (
/showthread.php?tid=656852)
Problem with class selection and dialogs -
KaryM4Life - 25.07.2018
So my problem is when the player connects first thing happens is Languages dialog shows up, Once the player chooses his language he will be taken to class selection and then register / login dialog will appear
This is how things supposed to be but in case the player had very high ping when joining game, He will be taken to class selection then he has enough time to press spawn button before the login / register dialog shows up so another dialog will appear anddd this is the problem The player won't login nor register, Is there any solution for this? Like making the login/register dialog appear before player gets into class selection Is it possible?
Thanks in advance.
Re: Problem with class selection and dialogs -
augustogdo - 25.07.2018
Create a boolean variable that is set to true only after the player is successfully logged in. After that, check the variable in OnPlayerRequestClass.
Re: Problem with class selection and dialogs -
KaryM4Life - 25.07.2018
Quote:
Originally Posted by augustogdo
Create a boolean variable that is set to true only after the player is successfully logged in. After that, check the variable in OnPlayerRequestClass.
|
Oh yeaaa I did not think of this
Re: Problem with class selection and dialogs -
augustogdo - 25.07.2018
You're welcome