Tricks Posted January 28, 2015 Report Share Posted January 28, 2015 Hey all, I was hoping someone had a script that would allow players to hit "Server INfo" in their scroll menu to see the rules and feature of the server. Anyone have something like this? Thank you :) Link to comment Share on other sites More sharing options...
Suppe Posted January 28, 2015 Report Share Posted January 28, 2015 hey, yes, this is easy: first create a Menu.sqf with: 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: _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: "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 San 1 Link to comment Share on other sites More sharing options...
Tricks Posted January 28, 2015 Author Report Share Posted January 28, 2015 Thank you, I will try this tonight! :) Link to comment Share on other sites More sharing options...
Suppe Posted January 29, 2015 Report Share Posted January 29, 2015 ahhh, sry... u need only one text... then only: create a Menu.sqf with: 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: "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 More sharing options...
Tricks Posted January 29, 2015 Author Report Share Posted January 29, 2015 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? Link to comment Share on other sites More sharing options...
cheech420now Posted January 29, 2015 Report Share Posted January 29, 2015 Is there a way to put stuff like this in the map briefing window? Link to comment Share on other sites More sharing options...
Suppe Posted January 29, 2015 Report Share Posted January 29, 2015 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. 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 More sharing options...
cheech420now Posted January 29, 2015 Report Share Posted January 29, 2015 I tried every way i found and they dont show up in the Map briefing window. Link to comment Share on other sites More sharing options...
Humpabry Posted January 30, 2015 Report Share Posted January 30, 2015 _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 More sharing options...
Humpabry Posted January 30, 2015 Report Share Posted January 30, 2015 so as admin i get the option for this..but normal players dont. but even the admin i press the menu and get no sub folder to rules/server info etc Link to comment Share on other sites More sharing options...
Humpabry Posted January 30, 2015 Report Share Posted January 30, 2015 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 :/ Link to comment Share on other sites More sharing options...
Suppe Posted January 30, 2015 Report Share Posted January 30, 2015 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. _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 More sharing options...
Humpabry Posted January 30, 2015 Report Share Posted January 30, 2015 so i have my text1 + 2 + 3 in a folder called scripts _pathtotools = "scripts\"; thats right or im totally loosing my marbles? ty for the reply also :) Link to comment Share on other sites More sharing options...
Humpabry Posted February 2, 2015 Report Share Posted February 2, 2015 so anyone got the working with right path in the pathtools? Link to comment Share on other sites More sharing options...
Suppe Posted February 2, 2015 Report Share Posted February 2, 2015 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: //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 More sharing options...
cheech420now Posted February 2, 2015 Report Share Posted February 2, 2015 This would work way better if it was in the map briefing but I cant get a briefing to work. Link to comment Share on other sites More sharing options...
Humpabry Posted February 2, 2015 Report Share Posted February 2, 2015 sorry, had little time the last days.... try to call the text1.sqf direkt, like this: //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 More sharing options...
Tricks Posted February 2, 2015 Author Report Share Posted February 2, 2015 Excited to see this working soon. :) Link to comment Share on other sites More sharing options...
Humpabry Posted February 2, 2015 Report Share Posted February 2, 2015 sorry, had little time the last days.... try to call the text1.sqf direkt, like this: //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 More sharing options...
Suppe Posted February 2, 2015 Report Share Posted February 2, 2015 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.... Tricks 1 Link to comment Share on other sites More sharing options...
Humpabry Posted February 3, 2015 Report Share Posted February 3, 2015 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 More sharing options...
Sporny Posted February 3, 2015 Report Share Posted February 3, 2015 I will post the map briefing script after work (about 5 hours) ;) Link to comment Share on other sites More sharing options...
Humpabry Posted February 3, 2015 Report Share Posted February 3, 2015 I will post the map briefing script after work (about 5 hours) ;) ah sweet ill stop this then my head is melted and wait for your briefing! ty Link to comment Share on other sites More sharing options...
Tricks Posted February 3, 2015 Author Report Share Posted February 3, 2015 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: Link to comment Share on other sites More sharing options...
Sporny Posted February 3, 2015 Report Share Posted February 3, 2015 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 ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now