[help]dialog login 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: [help]dialog login problem (
/showthread.php?tid=565316)
[help]dialog login problem -
KomplettMaster - 26.02.2015
hi! i have a problem. i created class system in dialog, but if i type wrong password a time or two it redirects me to class selection, whyy? can someone help?
script here
http://pastebin.com/A3FBnWMU
Re: [help]dialog login problem -
KomplettMaster - 26.02.2015
nobody?
Re: [help]dialog login problem -
Aerotactics - 26.02.2015
On Player Connect:
TogglePlayerSpectating(playerid, true);
On Successful login:
TogglePlayerSpectating(playerid, false);
This will automatically call on player spawn.
(Credits to Mionee)
Re: [help]dialog login problem -
KomplettMaster - 26.02.2015
Quote:
Originally Posted by Aerotactics
On Player Connect:
TogglePlayerSpectating(playerid, true);
On Successful login:
TogglePlayerSpectating(playerid, false);
This will automatically call on player spawn.
(Credits to Mionee)
|
sorry but it wont work, since im going to have another location on login
Re: [help]dialog login problem -
KomplettMaster - 26.02.2015
no one that can help a noob?:a
Re: [help]dialog login problem -
Glenn332 - 27.02.2015
Add on top new logged[MAX_PLAYERS]
Change your return showplayerdialog to
If(logged == 1){
ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your class:", "Class 1\nClass 2\nClass 3", "Choose", "");
}
return 1;
Add onplayerconnect
logged[playerid] = 0;
And on succesful login so where you are giving money and setting score add logged[playerid] = 1;
Hope this helps
Re: [help]dialog login problem -
KomplettMaster - 27.02.2015
Quote:
Originally Posted by Glenn332
Add on top new logged[MAX_PLAYERS]
Change your return showplayerdialog to
If(logged == 1){
ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your class:", "Class 1\nClass 2\nClass 3", "Choose", "");
}
return 1;
Add onplayerconnect
logged[playerid] = 0;
And on succesful login so where you are giving money and setting score add logged[playerid] = 1;
Hope this helps 
|
yes it work, but if i remove TogglePlayerSpectating and adding own location on class selection the same happend, i can input wrong password 1 time and if i do it again it redirects me to class selection..:P