Jump to content

[REQUEST] "Server Info" Scroll Option


Tricks

Recommended Posts

hey,

yes, this is easy:

 

first create a Menu.sqf with:

  Reveal hidden contents

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

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

than, create a ActionMenu.sqf with something like this:

  Reveal hidden contents

_pathtotools = "your path\...";
_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"]    
        ];
];

 

and the text things look like this:

  Reveal hidden contents

"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;

Text = put your text in

Link to comment
Share on other sites

ahhh, sry... u need only one text... then only:

 

create a Menu.sqf with:

  Reveal hidden contents

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

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

 

create a Info.sqf with:

  Reveal hidden contents

"Server Info" 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;

 

Text = your Text

 

but this scroll menu is not so good, that addActions have become a lag causer in Arma 3.

Link to comment
Share on other sites

  On 1/29/2015 at 3:40 AM, Tricks said:

Suppe,

 

how could I got 2 or 3 deep? So when u click on "Server Info" you get 3 options like "Rules, Tips, Info". Then when you click on one of those you get the information?

yes, with the first version i post.... I have edited this again.... should look something like this... but I have not tested now....

and for that you have to insert BE filters.

 

  On 1/29/2015 at 3:45 AM, cheech420now said:

Is there a way to put stuff like this in the map briefing window?

yes, its a arma mission, so u can add a briefing, ask goggle for arma 3 add briefing :D

 

Link to comment
Share on other sites

_pathtotools = "your path\..."; <---------------------------------------------------------
_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"]    
        ];
];
 
 
 
so wat is the pathtools?
Link to comment
Share on other sites

  On 1/30/2015 at 12:43 PM, Humpabry said:

ok got it working normal players acn see it too...just cant see anything after the first menu..i press the server info button and nothing appears :/

not hte right path.

  On 1/30/2015 at 11:15 AM, Humpabry said:

 

_pathtotools = "your path\..."; <---------------------------------------------------------
_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"]    
        ];
];
 
 
 
so wat is the pathtools?

 

 

in this case the _pathtotools are text1.sqf ,text2.sqf  and text3.sqf... so the folder were he find the scripts.

 

_pathtotools = "YOURSCRIPTFOLDERNAME\"; 

Link to comment
Share on other sites

  On 2/2/2015 at 8:06 PM, Humpabry said:

so anyone got the working with right path in the pathtools? 

 

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

  Reveal hidden contents

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\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"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

Link to comment
Share on other sites

  On 2/2/2015 at 10:05 PM, Suppe said:

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

  Reveal hidden contents

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\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"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

ty i will try that

Link to comment
Share on other sites

  On 2/2/2015 at 10:05 PM, Suppe said:

sorry, had little time the last days.... try to call the text1.sqf direkt, like this:

  Reveal hidden contents

//customise these menus to fit your server

//menu

menu =

[

["",true],

["Server Info", [2], "", -5, [["[] execVM "YOURSCRIPTFOLDER\text1.sqf";"]]], "1", "1"],

["Server Rules", [4], "", -5, [["[] execVM "YOURSCRIPTFOLDER\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"]

];

];

 

However, I have now tested anything about it .... if I have a lot of time the last days I test the times for you and post it then again.

 

ok this kinda works lol

 

i get a box pop up and screen saying text1 and has all the files inside including config files they dont need to see xD

 

*update* it now opens the text file in game without seeing the serverinfo before it if u get wat i mean..i suck at explaining

Link to comment
Share on other sites

  On 2/2/2015 at 10:09 PM, cheech420now said:

This would work way better if it was in the map briefing but I cant get a briefing to work.

 

yes, I think a briefing would be a nicer solution, that is cleaner: D I try both versions, (briefing and scroll menu) when I have time, but still takes, no time atm....

 

Link to comment
Share on other sites

so tonight i took a script i used in arma 2 and all working perfect.

 

edited it to do and say as i wish but i have 1 problem.

 

after the player died the menu does not show any longer..it will show untill u die then does not show again. any ideas on this? once its fully running ill post it up :)

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

 

  Reveal hidden contents

 

 

ActionMenu.sqf

 

  Reveal hidden contents

I had an error here and had to remove the last ]; from the original post.

 

 

Text1.sqf

 

  Reveal hidden contents

 

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

Link to comment
Share on other sites

Okay here is my briefing menu:

 

init.sqf

  Reveal hidden contents

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

 

scripts\briefing.sqf

  Reveal hidden contents

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 ;)

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...