Advertisement
RipSaw

j0k3r5_stats.sqf

Feb 19th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.68 KB | None | 0 0
  1. /*
  2.  
  3.     /////Tweaked j0k3r5 / Original work done by Matt L / and to anyone else that is involved that Ive forgotten////
  4.     ////www.j0k3r5.com////
  5.     If modified and released give credits where due, thank you.
  6.    
  7. */
  8.  
  9.  
  10. fnc_debug = {
  11.     j0k3r5_stats = true;
  12.     while {j0k3r5_stats} do
  13.     {
  14.         _logo = "debugmonitor\stats_logo.paa";
  15.         _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
  16.        
  17.         _nearestCity = nearestLocations [getPos player, ["NameCityCapital","NameCity","NameVillage","NameLocal"],750];
  18.         _textCity = "Wilderness";
  19.         if (count _nearestCity > 0) then {_textCity = text (_nearestCity select 0)};
  20.            
  21.         if (player == vehicle player) then
  22.         {
  23.             _pic = (gettext (configFile >> 'cfgWeapons' >> (currentWeapon player) >> 'picture'));  
  24.         }
  25.         else
  26.         {
  27.             _pic = (gettext (configFile >> 'CfgVehicles' >> (typeof vehicle player) >> 'picture'));
  28.         };
  29.        
  30.         _timeleft= _combattimeout-time;
  31.         _kills =        player getVariable["zombieKills",0];
  32.         _killsH =       player getVariable["humanKills",0];
  33.         _killsB =       player getVariable["banditKills",0];
  34.         _humanity =     player getVariable["humanity",0];
  35.         _headShots =    player getVariable["headShots",0];
  36.         _zombies =              count entities "zZombie_Base";
  37.         _zombiesA =             {alive _x} count entities "zZombie_Base";
  38.  
  39.        
  40.         hintSilent parseText format
  41.             [
  42.                 "
  43.                
  44.                 <t size='1'     font='Bitstream'align='center'>Website: NexBoCenter.com</t><br/>
  45.                 <t size='1'     font='Bitstream'align='center'>TS: 173.234.224.210</t>
  46.                 <br/>
  47.                 <t size='0.75'      font='Bitstream'align='left'>Location:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%11</t><br/>
  48.                 <t size='0.75'      font='Bitstream'align='left'>Blood:</t><t size='0.75'                           font='Bitstream'align='right'color='#FF0000'>%1</t><br/>
  49.                 <t size='0.75'      font='Bitstream'align='left'>Humanity:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%2</t><br/>
  50.                 <t size='0.75'      font='Bitstream'align='left'>Headshots:</t><t size='0.75'                       font='Bitstream'align='right'color='#FF0000'>%6</t><br/>
  51.                 <t size='0.75'      font='Bitstream'align='left'>Heroes Killed:</t><t size='0.75'                   font='Bitstream'align='right'color='#FF0000'>%3</t><br/>
  52.                 <t size='0.75'      font='Bitstream'align='left'>Bandits Killed:</t><t size='0.75'                  font='Bitstream'align='right'color='#FF0000'>%4</t><br/>
  53.                 <t size='0.75'      font='Bitstream'align='left'>Zombies Killed:</t><t size='0.75'                  font='Bitstream'align='right'color='#FF0000'>%5</t><br/>
  54.                 <t size='0.75'      font='Bitstream'align='left'>Zeds (alive/total): </t><t size='0.75'             font='Bitstream'align='right'color='#FF0000'>%13/%12</t><br/>
  55.                 <t size='0.75'      font='Bitstream'align='left'>FPS: </t><t size='0.75'                            font='Bitstream'align='right'color='#FF0000'>%14</t><br/>
  56.                 <t size='0.75'      font='Bitstream'align='left'>Survived:</t><t size='0.75'                        font='Bitstream'align='right'color='#FF0000'>%7 Dayz</t>
  57.                 <br/>
  58.                 <t size='1'     font='Bitstream'align='center'color='#FFFF00'>Restart in %8 minutes!</t>
  59.                 <br/>
  60.                 <img size='4' image='%9'/>
  61.            
  62.                
  63.                
  64.                
  65.                 ",
  66.                 r_player_blood,                                             //1
  67.                 round _humanity,                                            //2
  68.                 _killsH,                                                    //3
  69.                 _killsB,                                                    //4
  70.                 _kills,                                                     //5
  71.                 _headShots,                                                 //6
  72.                 (dayz_Survived),                                            //7
  73.                 (360-(round(serverTime/60))),                               //8 change the 180 to suit your server mins for restarts
  74.                 _pic,                                                       //9
  75.                 _logo,                                                      //10
  76.                 _textCity,                                                  //11
  77.                 count entities "zZombie_Base",                              //12
  78.                 {alive _x} count entities "zZombie_Base",                   //13
  79.                 diag_fps                                                    //14
  80.  
  81.             ];
  82.             sleep 5;
  83.     };
  84. };
  85.  
  86. [] spawn fnc_debug;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement