Register Login system - 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: Register Login system (
/showthread.php?tid=654379)
Register Login system -
TechSil - 27.05.2018
Hello everybody i just starting my new gamemode from 0.. And i dont know how can i add i register/login email input? can you give me a tut or something?
Re: Register Login system -
Shadow0707 - 27.05.2018
There's a lot of tutorials about this you can search it.
1.
https://sampforum.blast.hk/showthread.php?tid=273088
2.
https://sampforum.blast.hk/showthread.php?tid=305994
3.
https://sampforum.blast.hk/showthread.php?tid=251714
4.
https://sampforum.blast.hk/showthread.php?tid=267808
Re: Register Login system -
TechSil - 27.05.2018
Quote:
Originally Posted by Shadow0707
|
LOL, dude i ask can someone explan me how to do that and in every that tutorial is not what i asking for..
Sry my bad english :/
Re: Register Login system -
Mugala - 28.05.2018
firstly you have to check if the player is registered or not (in your database)
than you must show the correct dialog with first statement (registered or not registered)
you must use DIALOG_STYLE_PASSWORD or DIALOG_STYLE_INPUT in ShowPlayerDialog.
LOGIN: at the callback OnDialogResponse you must compare output and player's password.
REGISTER: you must create player's account with the typed password (typed thing in code is '
output' in OnDialogResponse)