J0k3r5 Stats Panel - ( very easy install Stats Panel )

kaysio

Valued Member!
Requirements: mission.pbo & notepad++
  • Easy = Blue <10
Installation Steps -
  1. Copy + Paste the 'Stats' folder into your mission root folder.
  2. Locate your 'init.sqf' in your mission folder
  3. Put this code at the very bottom of the file
Code:
if (!isDedicated) then {[] execVM "Stats\j0k3r5_stats.sqf"};

Thats it, only 1 line of code to be added.

Download: http://www.mediafire.com/download/c3pcesa1hx1hsdk/Stats.zip


Picture/Video

statspanel.png
 
How to change the countdown timer, to server restart.


1. goto line 92
2. change the 180 to what suits your needs.
for example, 180 = 3hr / 120 = 2hrs

3. finished





How to change the 'DAYZ LOGO'

1. Create a picture/logo you want to use and save as a png file.
2. Convert the png file to paa file with 'textview2'
3. Replace my 'stats_logo.paa' , with your saved picture/logo.
4. finished

* you must keep the same file name + must be paa file or it will not work.
** textview2 can be downloaded from BIS



How to change the Message 1 + Message 2

1. goto line 59 + 60
2. replace the text with yours.
3. finished
 
Ive been asked to add various stats to panel.
So Ive done a little update to it.

Vehicles = total on server
Players = players near in a 1000m radius / total on server


Also in the code, you can change it about.
As there is stats for just cars, boats, air, bikes.

Its just a matter of just changing the %number

5tuk.png




Code:
/*

    /////Tweaked j0k3r5 / Original work done by Matt L / and to anyone else that is involved that Ive forgotten////
    ////www.j0k3r5.com////
    If modified and released give credits where due, thank you.
   
*/


dayz_spaceInterrupt = {
    private ["_dikCode", "_handled"];
    _dikCode = _this select 1;
    _handled = false;

    if (_dikCode == 0x44) then {
        if (j0k3r5_stats) then {
            j0k3r5_stats = false;
            hintSilent "";
        } else {[] spawn fnc_debug;};
    };
    _handled
};

fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
    {
       
        _logo = "custom\Stats\stats_logo.paa";
        _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
       
        _nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
        _textCity = "Wilderness";
        if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
           
        if (player == vehicle player) then
        {
            _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));   
        }
        else
        {
            _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));   
        };
       
        _timeleft=                     _combattimeout-time;
        _kills =                     player getVariable["zombieKills",0];
        _killsH =                     player getVariable["humanKills",0];
        _killsB =                     player getVariable["banditKills",0];
        _humanity =                    player getVariable["humanity",0];
        _headShots =                 player getVariable["headShots",0];
        _zombies =                 count entities "zZombie_Base";
        _zombiesA =                 {alive _x} count entities "zZombie_Base";
        _playersnear =                 (({isPlayer _x} count (getPos vehicle player nearEntities [["AllVehicles"], 1000]))-1);

       
        hintSilent parseText format 
            [
                "
                <img size='6' image='%10'/><br/>
                <t size='1.95'           font='Bitstream'align='center'color='#FFFF00'>%15</t><br/>               
                <br/>
                <t size='0.95'        font='Bitstream'align='left'>Location:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%11</t><br/>
                <t size='0.95'         font='Bitstream'align='left'>Vehicles</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%17 (%18)</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Blood:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%1</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Humanity:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%2</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Players near:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%19 (%16)</t><br/>
                <t size='0.95'         font='Bitstream'align='left'>Heroes Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%3</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Bandits Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%4</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Zombies Killed:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%5</t><br/>
                <t size='0.95'         font='Bitstream'align='left'>Zeds:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%13 (%12)</t><br/>
                <t size='0.95'         font='Bitstream'align='left'>FPS:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%14</t><br/>
                <t size='0.95'        font='Bitstream'align='left'>Survived:</t><t size='0.95'font='Bitstream'align='right'color='#FFFF00'>%7 Dayz</t><br/>
                <br/>
                <t size='1.15'        font='Bitstream'align='center'color='#FFFF00'>Restart in %8 minutes!</t><br/>
                <img size='5' image='%9'/><br/>
                <t size='0.95'         font='Bitstream' align='center'>F10 to Toggle Panel</t><br/>
               
               
               
                ",
                r_player_blood,                                                                                                        //1
                round _humanity,                                                                                                    //2
                _killsH,                                                                                                            //3
                _killsB,                                                                                                            //4
                _kills,                                                                                                                //5
                _headShots,                                                                                                            //6
                (dayz_Survived),                                                                                                    //7
                (180-(round(serverTime/60))),                                                                                        //8 change the 180 to suit your server mins for restarts
                _pic,                                                                                                                //9
                _logo,                                                                                                                //10
                _textCity,                                                                                                            //11
                count entities "zZombie_Base",                                                                                        //12
                {alive _x} count entities "zZombie_Base",                                                                            //13
                diag_fps,                                                                                                            //14
                dayz_playerName,                                                                                                    //15
                (count playableUnits),                                                                                                //16
                (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),                //17
                count vehicles,                                                                                                        //18
                _playersnear,                                                                                                        //19
                (count([6800, 9200, 0] nearEntities [["Air"],25000])),                                                                //20
                (count([6800, 9200, 0] nearEntities [["Ship"],25000])),                                                                //21
                (count([6800, 9200, 0] nearEntities [["Motorcycle"],25000])),                                                        //22
                (count([6800, 9200, 0] nearEntities [["Car"],25000]))                                                                //23
               

            ]; 
            sleep 5;
    };
};

[] spawn fnc_debug;
 
Back
Top