Jump to content

masterking3000

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by masterking3000

  1. Hello,

     

    is there a way to insert something into the database on startup of the server?

     

    i want, that the server prints the current timestamp from the startup (data + time) into the database in a new table like 'stats'?

     

    Is there a way to do this?

  2. Hey momo,

     

    I need the maximal y-coord from you're map.

     

    For example chernarus has 15360.

     

    I need the maximal Y-Coord to convert the database coords to ingame coords.

     

     

    hope you read this and answer as fast as you can.

     

    best regards

  3. You could try this code:

    //Let Zeds know
    [player,4,true,(getPosATL player)] spawn player_alertZombies;
    
    /*
    Change the UID's below to match those of you and your admin(s)
    Your admins will get the advanced version of your debug monitor,
    while your regular users will get the cut down version. 
    */
    
    if (isnil "permahint") then {permahint=1;};
    if (permahint2==1) exitwith { hintSilent "Debug Off"; permahint2=nil; permahint=nil; };
     
    if ((getPlayerUID player) in ["11111","22222"]) then { 
    
    while {sleep 1;permahint==1;} do { 
             
              hintSilent parseText format ["
            <t size='0.95' font='Bitstream' align='left' >[%18]</t><t size='0.95' font='Bitstream' align='right'>[FPS: %10]</t><br/>
            <t size='0.95' font='Bitstream' align='center' color='#FFBF00'>Survived %7 Days</t><br/>
            <t size='0.95' font='Bitstream' align='left' >Players: %8</t><t size='0.95 'font='Bitstream' align='right'>Within 500m: %11</t><br/>
            <t size='0.95' font='Bitstream' align='left' >Vehicles:</t><t size='0.95' font='Bitstream'align='right'>%13(%14)</t><br/>
            <t size='0.95' font='Bitstream' align='left'>Air: %16</t><t size='0.95' font='Bitstream'align='right'>Sea: %23</t><br/>
            <t size='0.95' font='Bitstream' align='left' >All Bikes: %15</t><t size='0.95' font='Bitstream'align='right'>Cars: %17</t><br/>
            <t size='0.95' font='Bitstream' align='left' >Zombies (alive/total): </t><t size='0.95' font='Bitstream' align='right'>%20(%19)</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='0.95' font='Bitstream' align='right'>%2</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='0.95' font='Bitstream' align='right'>%3</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='0.95' font='Bitstream' align='right'>%4</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='0.95' font='Bitstream' align='right'>%5</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='0.95' font='Bitstream' align='right'>%6</t><br/>
            <t size='0.95' font='Bitstream' align='left' color='#FFBF00'>Blood: </t><t size='0.95' font='Bitstream' align='right'>%9</t><br/>
            <t size='0.95' font='Bitstream' align='left' >GPS: %22</t><t size='0.95' font='Bitstream' align='right'>DIR: %24</t><br/>
            <t size='0.95'font='Bitstream'align='center' >%21</t><br/>",
            (name player),
            (player getVariable['zombieKills', 0]), 
            (player getVariable['headShots', 0]),
            (player getVariable['humanKills', 0]),
            (player getVariable['banditKills', 0]),
            (player getVariable['humanity', 0]),
            (dayz_skilllevel),
            (count playableUnits),
            r_player_blood,
            (round diag_fps),
            (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 500]))-1),
            viewdistance,
            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),
            count vehicles,
            (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),
            (count([6800, 9200, 0] nearEntities [["Air"],25000])),
            (count([6800, 9200, 0] nearEntities [["Car"],25000])),
            (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName')),
            (count entities "zZombie_Base"),
            ({alive _x} count entities "zZombie_Base"),
            (getPosASL player),
            (mapGridPosition getPos player),
            (count([6800, 9200, 0] nearEntities [["Ship"],25000])),
            (round(getDir player))
    ];
    permahint2=1;
    };
    
    } else {
    
    while {sleep 1;permahint==1;} do { 
    
    hintSilent parseText format ["
            <t size='1.20' font='Bitstream' align='center' color='#00CC00'>%1</t><br/>
            <t size='0.95' font='Bitstream' align='center' >[%10]</t><br/>
            <t size='1.15' font='Bitstream' align='center' color='#FFCC00'>Survived %7 Days</t><br/><br/>
            <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Zombies Killed: </t><t size='1.15' font='Bitstream' align='right'>%2</t><br/>
            <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Headshots: </t><t size='1.15' font='Bitstream' align='right'>%3</t><br/>
            <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Murders: </t><t size='1.15' font='Bitstream' align='right'>%4</t><br/>
            <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Bandits Killed: </t><t size='1.15' font='Bitstream' align='right'>%5</t><br/>
            <t size='1.15' font='Bitstream' align='left' color='#FFBF00'>Humanity: </t><t size='1.15' font='Bitstream' align='right'>%6</t><br/><br/>
            <t size='1.15' font='Bitstream' color='#5882FA'>Tinyurl.com/DAYZ487</t><br/>",
            (name player),
            (player getVariable['zombieKills', 0]),
            (player getVariable['headShots', 0]),
            (player getVariable['humanKills', 0]),
            (player getVariable['banditKills', 0]),
            (player getVariable['humanity', 0]),
            (dayz_skilllevel),
            (count entities "zZombie_Base"),
            ({alive _x} count entities "zZombie_Base"),
            (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'displayName'))
    ];
    permahint2=1;
      };
    };
    

    Haven't tested it though, so no guarantees :)

    Thank you!

    It works very fine.

     

    But it is only shown, if a player push Insert.

     

    Is it possible to show it if a player logs into the server, so everyone see the monitor?

     

    mfg

  4. This is one I made back in the days when I could be bothered with late nights and scripting :P

     

    30rp5qx.jpg

     

    https://github.com/nomadichayward/dayz_dual_debug_monitor

     

    The key feature with mine is/was the ability to give admins a more advanced debug than regular users.  Unfortunately I've discontinued development and don't answer technical issues unless I'm getting paid (I was getting dozens of questions a day, mostly relating to requests for help that I'd already clearly explained in the readme).  It's easy to set up, just follow the instructions :)

     

    Is it possible to show the debugmonitor permanently and refresh it every second to refresh the FPS and the within 500m and so on?

×
×
  • Create New...