SA-MP Forums Archive
Login before selecting class, doesnt work. - 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: Login before selecting class, doesnt work. (/showthread.php?tid=372668)



Login before selecting class, doesnt work. - RedFusion - 27.08.2012

When a player logs in, a login dialog pops up. If the password is correct, it proceeds to selecting a class. If it's wrong; It proceeds to selecting a class aswell, but not always. I want something to block this from happening.
So.. When the user inserts the wrong password, it's not supposed to go to class selection.
Any advice?


Re: Login before selecting class, doesnt work. - detter - 27.08.2012

OnPlayerConnect
Код:
 TogglePlayerSpectating(playerid ,1);
When login is finished
Код:
 TogglePlayerSpectating(playerid ,0);



Re: Login before selecting class, doesnt work. - RedFusion - 27.08.2012

And why did i not think of that.. Thanks alot!