Jump to content

[REQUEST] "Server Info" Scroll Option


Tricks

Recommended Posts

Okay here is my briefing menu:

 

init.sqf

null =[] execVM "scripts\briefing.sqf";

 

scripts\briefing.sqf

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

player createDiarySubject ["menu1","Name on Map"];

player createDiarySubject ["menu2","Name on Map2"];

player createDiaryRecord ["menu1",

["Name on Map","

<br/>

Put your text here

<br/>

"]];

player createDiaryRecord ["menu2",

["Name on Map2","

<br/>

Put your text here

<br/>

"]];

 

Not on scroll menu but it works :)

 

have fun ;)

could u possible give us a couple screenies of this? ty for the code also :)

Link to comment
Share on other sites

i do have a action menu that works from arma 2 changed few little things..on it also has view distance + flip vehicle that also work..just cant get it to stay after player dies.

 

if anyone with better modding skills them me can fix this i can happily send the files to you.

 

also this aint my work like i said took it from arma 2 dayz epoch and deleted few things kept the rest but they work!

Link to comment
Share on other sites

Okay here is my briefing menu:

 

init.sqf

null =[] execVM "scripts\briefing.sqf";

 

scripts\briefing.sqf

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

player createDiarySubject ["menu1","Name on Map"];

player createDiarySubject ["menu2","Name on Map2"];

player createDiaryRecord ["menu1",

["Name on Map","

<br/>

Put your text here

<br/>

"]];

player createDiaryRecord ["menu2",

["Name on Map2","

<br/>

Put your text here

<br/>

"]];

 

Not on scroll menu but it works :)

 

have fun ;)

 

I put this in and don't see this briefing anywhere. Did I do something wrong?

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

player createDiarySubject ["menu1","Server Info"];
player createDiarySubject ["menu2","Server Features"];

player createDiaryRecord ["menu1",
["Server Info","
<br/>
Website: www.xxxxxxxxx.com
Teamspeak: xxxxxxxxxx
Email: [email protected]
Admins: xxxxxx, xxxxx, and xxxxx
<br/>
"]];

player createDiaryRecord ["menu2",
["Server Features","
<br/>
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
<br/>
"]];

Link to comment
Share on other sites

All working, I didn't realize the briefing was from the map screen. thought it was during load in. I added this and indestructible base parts. Players started getting Autoban #2. So I removed the indestructible items and left this in. Testing now.

Link to comment
Share on other sites

 

if (!hasInterface) exitWith {};

waitUntil {!isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};
waitUntil {isNuLL(uiNameSpace getVariable ["EPOCH_loadingScreen",displayNull])};

player createDiarySubject ["menu1","Server Info"];
player createDiarySubject ["menu2","Server Features"];

player createDiaryRecord ["menu1",
["Server Info","
<br/>
Website: www.xxxxxxxxx.com
Teamspeak: xxxxxxxxxx
Email: [email protected]
Admins: xxxxxx, xxxxx, and xxxxx
<br/>
"]];

player createDiaryRecord ["menu2",
["Server Features","
<br/>
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
xxxxxxxxxxxxxx
<br/>
"]];

only works for admins . any ideas

Link to comment
Share on other sites

Ok I finnaly have had some time to try this script. I too am can't get the second menu up. I have "Server Info" appearing, but when you click on it you don't get a second menu. I don't see any errors popping up either. Here are my files;

 

Menu.sqf

 

private["_veh", "_idx];
Sleep 10;
_idx = -1;

while {alive player} do {
if(_idx == -1) then {
_idx = (vehicle player) addaction [("" + ("Server Info") +""),"Scripts\Menu\InfoMenu\ActionMenu.sqf","",5,false,true,"",""];
_veh = vehicle player;
};
if (_veh != vehicle player) then
{
_veh removeAction _idx;
_idx = -1;
};
Sleep 2;
}; 

 

 

ActionMenu.sqf

 

_pathtotools = "Scripts\Menu\InfoMenu\";
_EXECscript1 = 'player execVM "'+_pathtotools+'%1"';
//customise these menus to fit your server
//menu
        menu =
        [
				["",true],
                ["Server Info", [2], "", -5, [["expression", format[_EXECscript1,"text1.sqf"]]], "1", "1"],
                ["Server Rules", [4], "", -5, [["expression", format[_EXECscript1,"text2.sqf"]]], "1", "1"],
                ["Tips", [6], "", -5, [["expression", format[_EXECscript1,"text3.sqf"]]], "1", "1"],
                ["", [-1], "", -5, [["expression", ""]], "1", "0"],
				["Exit", [13], "", -3, [["expression", ""]], "1", "1"]    
        ]; 
I had an error here and had to remove the last ]; from the original post.

 

 

Text1.sqf

 

"Text1" hintC parseText format ["
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
<t size='.7' shadow='1'align='left' color='#FFFFFF'></t><br/>
<t size='1.1' shadow='1'align='left' color='#FFFFFF'>Text</t><br/>
"];

sleep 10; 

 

Would REALLY appreciate it, if someone could get this working!  :rolleyes:

Anyone had any luck with this? Would really love the scroll option. The briefing method caused my players to be auto banned.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...