How to change seifadmin login into dialog?
#1

Title says all
Reply
#2

joining the question
Reply
#3

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#4

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

Код:
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);
Reply
#6

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

I tried but did not succeed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)