Login & Register Problem - 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 & Register Problem (
/showthread.php?tid=645321)
Login & Register Problem -
FunKeY53 - 25.11.2017
Hi I have a problem with my login & register system, when I failed my password it appers the class selection and we can spawn how I can block the class selection ?
Here is a screen :
And here is my script :
https://pastebin.com/HruxKH4M
Thanks for your help !
Re: Login & Register Problem -
jasperschellekens - 25.11.2017
This is usually caused by ForceClassSelection(playerid); getting called.
I don't see it in your script so check your gamemode and all your filterscripts for this.
Re: Login & Register Problem -
FunKeY53 - 25.11.2017
I don't have filterscripts
Re: Login & Register Problem -
Kraeror - 25.11.2017
Add TogglePlayerControllable(playerid,1); in case of wrong password and untoggle it in case of correct one using TogglePlayerControllable(playerid,0);
+REP if I helped
Re: Login & Register Problem -
Zeth - 25.11.2017
Use TogglePlayerSpectating.
Unless the password is correctly entered do not make make it TogglePlayerSpectating(playerid, false);
Re: Login & Register Problem -
FunKeY53 - 25.11.2017
Thanks for help it's done
Re: Login & Register Problem -
FunKeY53 - 25.11.2017
I don't see but when I use TogglePlayerSpectating I'm kick when I enter the good password after fail.