How to make Register script with a dialog?
#1

Hi guys.
I wanna know how to make a register system with dialogs with Register first, then Login, Then if its a wrong password to kick the player, and to give players 60 seconds to write password (Can be without that).
It should look like that:

pawn Code:
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid,1,1,"Register:","Write Password below","Register","Cancel");
    return 1;
}
public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid,1,1,"Login:","Write Password below","Login","Cancel");
    return 1;
}
PS: IF they press Cancel, do Kick(playerid);
Reply
#2

No one responding?
Maybe can you make a Login/Register script for me without a dialog?
Reply
#3

Look at this: http://forum.sa-mp.com/index.php?topic=161484.0
It uses dialogs
Reply
#4

You need to have different IDs for these dialogs, both are 1 at the moment. Make for example 1 for register and 2 for login.

Then use https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#5

That one isn't working.

Atleast make me any kind of register/login script because Admin FS from Wiki isnt working
Reply
#6

Try this, it can be toggled to use dialogs and you decide what it saves.

http://forum.sa-mp.com/index.php?topic=141737.0
Reply
#7

If your asking for login/reg system, look in Script Request Thread
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)