SA-MP Forums Archive
How to make Register script with a dialog? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make Register script with a dialog? (/showthread.php?tid=151220)



How to make Register script with a dialog? - GangsTa_ - 29.05.2010

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



Re: How to make Register script with a dialog? - GangsTa_ - 29.05.2010

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


Re: How to make Register script with a dialog? - NewTorran - 29.05.2010

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


Re: How to make Register script with a dialog? - MadeMan - 29.05.2010

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


Re: How to make Register script with a dialog? - GangsTa_ - 30.05.2010

That one isn't working.

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


Re: How to make Register script with a dialog? - Grim_ - 30.05.2010

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


Re: How to make Register script with a dialog? - Antonio [G-RP] - 30.05.2010

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