Register Login system
#1

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?
Reply
#2

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
Reply
#3

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 :/
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)