Jump to content
Sign in to follow this  
juandayz

[INFOSERVER]

Recommended Posts

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.

image.jpg

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;

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Bloodthirsty
      Hey I just need some files for this server, any and all you guys can come up with and think it deserve post that shit in chat rn. I want to see some crazy ideas and additions if you got em :) Lets see what you guys can come up with

    • By juandayz
      I JUST LEAVE THIS ONE CUZ I KNOW YOU GUYS GONNA NEED IT..
       
      The very old safezone script by infistar... i was using it in 1.0.5.1  and made some changes to use in 1.6.
      Instructions:
          1. Copy paste the code of below into a file called 16_safezone.sqf - save the file.
          2. Paste this 16_safezone.sqf into mpmissioms\instance_11.chernarus\custom\
          3. Open your init.sqf
          4. At the very bottom of the file add this line:  [] execVM "custom\16_safezone.sqf";
          5. Save the init.sqf and restart your server.
          6-WARNING!!! if ure using some kind of mod that allow vehicles with GodMode out of safezones..  then you will need in 16_safezone.sqf change the path for veh_handleDam.sqf by the path that youre using your custom veh_handleDam.sqf
      this line:  fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf';
          16_safezone.sqf
       
      OPTIONAL:
      @BetterDeadThanZed here you got.
      REMOVE LOOT FROM TRADER CITIES AND PLOT POLES. (should removes zeds from trader places and poles too)
       
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...