SolvedPassword script?

Posts 1–12 of 12 · Page 1 of 1
Password script?
I have been making my own private Menu lately and i want to have a Password on it in order to use the menu? Can someone help me out or maybe give me the code for this pls?

Thanks im new at making menus.
what u want to do exactly?
Do you know like the Infistar password? You need to have one of them to access the menu in game after you close Shift+P menu.
I don't think anyone of them has such an a code like that..
Well i saw this password menu on the Infistar Menu.
Quote Originally Posted by AD4MZ View Post
Well i saw this password menu on the Infistar Menu.
Analyze the source code and you will find the password prompt, perhaps hit ctrl F and search for password
Quote Originally Posted by AD4MZ View Post
I have been making my own private Menu lately and i want to have a Password on it in order to use the menu? Can someone help me out or maybe give me the code for this pls?

Thanks im new at making menus.
You need to create the RscDisplayPassword dialog.

Here's an example I found from Rustler's old menu.

Code:
if (isnil "ronunce") then {ronunce = true; passcheck = true;};
if (passcheck) then {
PasswordCorrect = false;
titleText ["Please Enter In The Correct Password.","PLAIN DOWN"]; titlefadeout 4;
hint "Please Enter In The Correct Password.";
Passwordd = 
{
[] spawn {
	sleep 2;
	disableSerialization;
	closedialog 0;
	createDialog "RscDisplayPassword";
	disableSerialization;
	password = 
	{
	_command = ctrlText 101;
	if (_command == "YOUR MENU PASSWORD WOULD GO HERE") then {hint "Password correct!"; PasswordCorrect = true; passcheck = false;} else {hint "Password incorrect!"; call Passwordd;};
	};

	_display = findDisplay 64;
	_passwordbox =  _display displayctrl 101;
	_okbutton = _display displayctrl 1;
	_okbutton buttonSetAction "call password";};
};
call Passwordd;
};


WaitUntil {PasswordCorrect};
Quote Originally Posted by Woodhouse View Post


You need to create the RscDisplayPassword dialog.

Here's an example I found from Rustler's old menu.

Code:
if (isnil "ronunce") then {ronunce = true; passcheck = true;};
if (passcheck) then {
PasswordCorrect = false;
titleText ["Please Enter In The Correct Password.","PLAIN DOWN"]; titlefadeout 4;
hint "Please Enter In The Correct Password.";
Passwordd = 
{
[] spawn {
	sleep 2;
	disableSerialization;
	closedialog 0;
	createDialog "RscDisplayPassword";
	disableSerialization;
	password = 
	{
	_command = ctrlText 101;
	if (_command == "YOUR MENU PASSWORD WOULD GO HERE") then {hint "Password correct!"; PasswordCorrect = true; passcheck = false;} else {hint "Password incorrect!"; call Passwordd;};
	};

	_display = findDisplay 64;
	_passwordbox =  _display displayctrl 101;
	_okbutton = _display displayctrl 1;
	_okbutton buttonSetAction "call password";};
};
call Passwordd;
};


WaitUntil {PasswordCorrect};
Where should I drop this in a WUAT menu?
In the startup file?
Quote Originally Posted by xCyberxx View Post
Where should I drop this in a WUAT menu?
In the startup file?
you cant just copy and paste the code.. you have to modify it for a different menu since it relies on the startup in rustler v4
Quote Originally Posted by Confin3d View Post
you cant just copy and paste the code.. you have to modify it for a different menu since it relies on the startup in rustler v4
Aha =p
Well nvm then lol

Thanks Confin3d
Thanks But where would i put this? Im really new at this...


Edit:Nvm i know now
All possible support has been provided, Closing thread.
Posts 1–12 of 12 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us