SA-MP Forums Archive
How to change seifadmin login into 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 change seifadmin login into dialog? (/showthread.php?tid=131169)



How to change seifadmin login into dialog? - Torran - 01.03.2010

Title says all


Re: How to change seifadmin v1 login into dialog? - bartje01 - 01.03.2010

joining the question


Re: How to change seifadmin login into dialog? - notime - 01.03.2010

https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: How to change seifadmin login into dialog? - Torran - 01.03.2010

Im not dumb That dosent help me at all,
I know how to make dialogs, I dont know how to trnasfer a login command to a dialog though,
Like getting the password/checking the password ect


Re: How to change seifadmin login into dialog? - adsy - 01.03.2010

Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login","Enter your password below:","Login","Cancel");
well id guess that line as in the link someone gave

then

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(!IsPlayerAdmin(playerid)) return 0; // this is an admin only script
  if(dialogid == 1)
  {
    if(!response) SendClientMessage(playerid, 0xFFFFFFFF, "You canceled!");
    new message[196];
    format(message, sizeof(message), "You replied: %s", inputtext);
    SendClientMessage(playerid, 0xFFFFFFFF, message);
    return 1;
  }
  return 0;
}
(as per the next section but run your register thingy that you have in the other thread)

then i guess you change this:

Код:
    format(message, sizeof(message), "You replied: %s", inputtext);
    SendClientMessage(playerid, 0xFFFFFFFF, message);
to
Код:
YourFunction(playerid, inputtext);



Re: How to change seifadmin login into dialog? - Torran - 02.03.2010

Quote:
Originally Posted by Seif_
I really can't be arsed to update SeifAdmin. But what you can do is take a look at other scripts that use dialogs for login/register.
Do you kow any that are like seifadmin? like use wp_hash or fwrite or something


Re: How to change seifadmin login into dialog? - Torran - 02.03.2010

I tried but did not succeed