juandayz Posted July 22, 2016 Report Share Posted July 22, 2016 This is a small addon to get some info about server or something to your player by a scroll menu option. not credits for me, its just a mixture of varius scripts. INSTALL: at bottom of your init.sqf Spoiler [] execVM "custom\info\info_activate.sqf"; *create this path MPmissions\instance you use \custom\info\ *Paste all this sqf´s into the info folder *create a sqf called : info_activate.sqf Spoiler waituntil {!isnull (finddisplay 46)}; sleep 15; setview = player addaction [("<t color=""#6599FF"">" + ("INFO SERVER") +"</t>"),"custom\info\info_execute.sqf","",5,false,true,"",""]; info_execute.sqf Spoiler [] execVM "custom\info\info_main.sqf"; info_main.sqf (blue lines for text you want) (red lines for name of scripts) Spoiler pathtoinfo = "custom\info\"; EXECscript1 = 'player execVM "'+pathtoinfo+'%1"'; if (speed player <= 1) then { info = [ ["",true], ["Info1", [2], "#USER:Info1", -5, [["expression", ""]], "1", "1"], ["Info2", [3], "#USER:Info2", -5, [["expression", ""]], "1", "1"], ["", [-1], "", -5, [["expression", ""]], "1", "0"], ["Exit", [13], "", -3, [["expression", ""]], "1", "1"] ];} else { info = [ ["",true], ["Info1", [2], "#USER:Info1", -5, [["expression", ""]], "1", "1"], ["Info2", [3], "#USER:Info2", -5, [["expression", ""]], "1", "1"], ["", [-1], "", -5, [["expression", ""]], "1", "0"], ["Exit", [13], "", -3, [["expression", ""]], "1", "1"] ]; }; Info1 = [ ["",true], ["YOUR MENU1", [2], "", -5, [["expression", format[EXECscript1,"1.sqf"]]], "1", "1"],//delete or add more lines ["YOURMENU2", [3], "", -5, [["expression", format[EXECscript1,"2.sqf"]]], "1", "1"], ["YOURMENU3", [4], "", -5, [["expression", format[EXECscript1,"3.sqf"]]], "1", "1"], ["YOURMENU4", [5], "", -5, [["expression", format[EXECscript1,"4.sqf"]]], "1", "1"], ["", [-1], "", -5, [["expression", ""]], "1", "0"], ["Exit", [13], "", -3, [["expression", ""]], "1", "1"] ]; Info2 = [ ["",true], ["YOURMENU5", [2], "", -5, [["expression", format[EXECscript1,"5.sqf"]]], "1", "1"], //delete or add more lines ["YOURMENU6", [2], "", -5, [["expression", format[EXECscript1,"6.sqf"]]], "1", "1"], ["YOURMENU7", [2], "", -5, [["expression", format[EXECscript1,"7.sqf"]]], "1", "1"], ["YOURMENU8", [2], "", -5, [["expression", format[EXECscript1,"8.sqf"]]], "1", "1"], ["", [-1], "", -5, [["expression", ""]], "1", "0"], ["Exit", [13], "", -3, [["expression", ""]], "1", "1"] ]; showCommandingMenu "#USER:info"; 1.sqf (this is only one example, you will need create 8 sqf. 1,2,3,4,5,6,7 and 8.sqf) paste into "info" folder Spoiler "YOUR MAIN TEXT" hintC parseText format [" <t size='1.1' shadow='1'align='left' color='#6599FF'>MY TEXT</t><br/> <t size='.7' shadow='1'align='left' color='#6599FF'></t><br/> <t size='1.1' shadow='1'align='left' color='#6599FF'> MY TEXT</t><br/> <t size='.7' shadow='1'align='left' color='#6599FF'></t><br/> <t size='1.1' shadow='1'align='left' color='#6599FF'> MY TEXT</t><br/> <t size='.7' shadow='1'align='left' color='#6599FF'></t><br/> <t size='1.1' shadow='1'align='left' color='#6599FF'> MY TEXT</t><br/> <t size='.7' shadow='1'align='left' color='#6599FF'></t><br/> <t size='1.1' shadow='1'align='left' color='#6599FF'>MY TEXT</t><br/> "]; *Also if u want, you can execute scripts.. for example if u wanna give players ability of count survived days... then create 2.sqf Spoiler private ["_countsurvived"]; _countsurvived = dayz_Survived; [format["<t size='0.75' color='#FFCC00'>>%2 You Have %1 days survived</t>",_countsurvived,(name player)],0,0,2,2] spawn BIS_fnc_dynamicText; Cherdenko, Linux, RiMMON and 2 others 5 Link to comment Share on other sites More sharing options...
RiMMON Posted July 29, 2016 Report Share Posted July 29, 2016 Many menu scrolling, given the load on the server. Because there is a constant request for some kind of action. It's not quite a delicate script... Link to comment Share on other sites More sharing options...
juandayz Posted July 30, 2016 Author Report Share Posted July 30, 2016 ; ) Cherdenko 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now