SA-MP Forums Archive
How to censor text while entering passwords? - 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)
+--- Thread: How to censor text while entering passwords? (/showthread.php?tid=350827)



How to censor text while entering passwords? - Unfriendly - 13.06.2012

I have a dialog system for logging in and registering using Y_INI
I'm just curious if it's possible using Y_INI to change all the characters entered to ******* or the dots or whatever that way if someone is standing behind me they can't read my password as I'm typing it.


Re: How to censor text while entering passwords? - Kindred - 13.06.2012

Example:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Enter your password below:", "Login", "Cancel");
Taken from ShowPlayerDialog on the sa-mp wiki.

Just change your DIALOG_STYLE_INPUT section in your code to DIALOG_STYLE_PASSWORD, and walla, it's works.


Re: How to censor text while entering passwords? - Unfriendly - 13.06.2012

THANK YOU BRO