Help with password at login
#1

Hi all. What should I do to appear at that kind of login password "● ● ● ● ● ● "
Anyone have an ideea?
Reply
#2

what did you meant?

do you want to make a login dialog like at your attachment into a normal text?

if yes,

find a "ShowPlayerDialog" thingy that you think that it's the login dialog.

change the "DIALOG_STYLE_PASSWORD" into "DIALOG_STYLE_INPUT"
Reply
#3

go to your script press ctrl + h and find

pawn Код:
DIALOG_STYLE_PASSWORD
change it to
pawn Код:
DIALOG_STYLE_INPUT
Reply
#4

Oh thx guys. But one more question. What should i do to appears the player name like that dialog " Bine ai revenit PROOF." how
Reply
#5

You mean like this:
pawn Код:
public OnPlayerConnect(playerid)
{
    new string1[128];
    format(string1,sizeof(string1),"{00CC00}Welcome back %s\nPlease login to contiune.",pName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,""COL_BLUE"Login"COL_WHITE" Panel",string1,"Login","Quit");
    return 1;
}

stock pName(playerid)
{
    new gName[MAX_PLAYER_NAME];
    GetPlayerName( playerid, gName, sizeof gName );
    return gName;
}
Reply
#6

You need to use DIALOG_STYLE_PASSWORD in the dialog style part. If it is not hiding the characters, then you have DIALOG_STYLE_INPUT and must change it to DIALOG_STYLE_PASSWORD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)