Jump to content

FragZ

Member
  • Posts

    487
  • Joined

  • Last visited

Posts posted by FragZ

  1. /*
    Player count in area script by FragZ
    You can make this script execute over action menu or with right-click option in the extra_rc.hpp
    You can also execute it over a trigger to make a pvp zone that counts participants!
    */
    //Change 1300 to whatever distance you want the script to check for alive players
    _playercount = (({isPlayer _x} count (getPos vehicle player nearEntities [['AllVehicles'], 1300]))-1);
     
    uisleep 3;
     
    if (_playercount == 0) then {
    cutText ["You are currently the only human in your area.", "PLAIN DOWN"];
    };
    if (_playercount = 1) then {
    cutText ["There is one other human in your area.", "PLAIN DOWN"];
    };
    if (_playercount > 1) then {
    cutText [format["There are %1 in your area!",_playercount], "PLAIN DOWN"];
    };

    Little typo in the last cuttext.

    For the 5 minute delay I can help you but I have to go to sleep, I'll try to do it tomorrow!

     

    xBowBii

     

    What so like I got to add the variable after the cuttext so it recognize the variable to be read by %1? Sorry my brain is being dumb.

    Thanks man!

    And alright will see that :)

  2. I tried putting together a script to execute when players uses either action menu or Right-click option on a map or something similar (you get the idea), that counts players in a X meters radius and hint them the amount.

    However, I would like to make it only usable once every 5 minutes (or any other time lapse) and I do not know how to do it...

    Once this is done I will release it on the Server mods corner even though it's nothing big ;) just for some new features some people loved on my server (instead of keeping track of the players in your area over the debug monitor).


    Any help/recommendation/modification suggestion is welcome!



    Here is the first version of the code I put together fast yesterday:


     

    /*
    Player count in area script by FragZ
    You can make this script execute over action menu or with right-click option in the extra_rc.hpp
    You can also execute it over a trigger to make a pvp zone that counts participants!
    */
    //Change 1300 to whatever distance you want the script to check for alive players
    _playercount = (({isPlayer _x} count (getPos vehicle player nearEntities [['AllVehicles'], 1300]))-1);
    
    uisleep 3;
    
    if (_playercount == 0) then {
    cutText ["You are currently the only human in your area.", "PLAIN DOWN"];
    };
    if (_playercount = 1) then {
    cutText ["There is one other human in your area.", "PLAIN DOWN"];
    };
    if (_playercount > 1) then {
    cutText ["There are %1 in your area!", "PLAIN DOWN"];
    };
    

    NOTE: I might have got some syntax errors I was pretty wasted writing this xD

  3.  

    Hi, a few things:

    you allready can harvest Hemp Plants but only the natural occuring ones (simply by clicking "Harvest Plant") could we add your harvest hemp function to the normal harvesting process?

    So there are not 2 functions which do basically the same.

     

    And the next question, my dynamically generated weedfarm script is not working properly. I use the one provided in the first post and everything is working fine except there are no markers on the map. 

     

    This is the part in my .rpt

    16:27:45 "[Random_Weed_Farm]: waiting for BIS_fnc_findSafePos"
    16:27:45 "[Random_Weed_Farm]: Function loaded ... Server Building 5 Weed Farm(s)"
    16:27:45 "[Random_Weed_Farm]: Found Location for a farm (128052) [12807.8,15183.9] with 4 plants"
    16:27:45 "[Random_Weed_Farm]: Found Location for a farm (189166) [18949.3,3821.38] with 4 plants"
    16:27:45 "[Random_Weed_Farm]: Found Location for a farm (115045) [11597.8,15943.2] with 4 plants"
    16:27:45 "[Random_Weed_Farm]: Found Location for a farm (135127) [13552.1,7706.48] with 4 plants"
    16:27:45 "[Random_Weed_Farm]: Found Location for a farm (188086) [18835.8,11864.3] with 4 plants"
    16:27:45 "[Random_Weed_Farm]: Weed Farm(s) Done ... Broadcasting locations for clients"
    16:27:45 "Res3tting B!S effects..."
    16:27:45 "\z\addons\dayz_code\system\REsec.sqf:Monitoring Remote Exe..."
     
     
    What should i do?

     

    What map are you running?

     

    First of all, if you would follow the topic, I said this is made for CHERNARUS map. On Chernarus, there is NO weed plants thus you cannot harvest em by right clicking knife and using *Harvest Plant*. This is a mod to fit Chernarus. On NAPF or other maps using weed plants, when you harvest the weed plant it should give you ItemKiloHemp I guess... Just add THAT part to the extra_rc.hpp:

     

    class ExtraRc {
    	class ItemKiloHemp {
    class smokeweed {
    text = "Smoke the shit";
    script = "execVM 'scripts\smokeshit.sqf'";
    };
    };
    };
    

    This basicly make the smoking script fit the harvested goods from the plant, no matter where it is taken in the game from (trader etc).

    As of the random fields, they work fine for me. I used HAVL's code since it's all his work so you might want to ask him about that.

     

  4. Anyone having trouble since updating to 1.0.5.1 with the fiber plant exploding when harvested? Just started after the update. I didn't know I was making butane oil!

    My guess would be your antihack... Try disabling it and test it.

    I run it perfectly fine still.

     

    i was wanting to add other plant types to the harvest side of this script, i figured u could add the plants to the array, but how would u handle the output items..

    Just add the item you want it to give... Like add a right click option on for example your hatchet and make it execute a script like for the weed, but make it give you *Ruby* for example... Depends on what you want to work it with :)

    HMU if you are still having trouble or you want more precise infos on it.

  5. Ok, got it mostly working, had a step missing in the maca installation.  Ok so now the weeds spawn, i can smoke it and I can harvest it.  When I smoke it my guy just kinds of walks around funny and then drops on the ground lol.  Is this normal?  Last and most important, are the various weed farms supposed to show up on the map?  If they are then they aren't for me and would like some help figuring that out.  I am using the random weed farm script.

    I copy pasted HAVL's code and it works perfectly fine with green markers on weed farm locations. As of the smokign script, try to go down the OP to see other variants of the smoke script.

    Here is mine:

     

         /*
        by: ZeroK00L edited by FragZ  Original code by Infistar.de and FragZserver.com
        */
        [] spawn {
        hint "You just smoked a kilo of weed! OMG 420 blaze it!";
        player removeMagazine 'ItemKiloHemp';
        Remove_Drug_effects =
        {
        {
        ppEffectDestroy _x;
        } forEach (_this select 0);
        ppEffectDestroy ppe2;
        ppEffectDestroy ppe3;
        setaperture 0;
        };
        _time = time;
        _effects = [];
        while {true} do
        {
        ppe2 = ppEffectCreate ["chromAberration", 1555];
        _effects = _effects + [ppe2];
        ppe2 ppEffectAdjust [random 0.25,random 0.25,true];
        ppe2 ppEffectCommit 1;
        ppe2 ppEffectEnable true;
        ppe3 = ppEffectCreate ["radialBlur", 1555];
        _effects = _effects + [ppe3];
        ppe3 ppEffectEnable true;
        ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15];
        ppe3 ppEffectCommit 1;
        sleep random(1);
        r_player_blood = r_player_bloodTotal;            //set their blood to the maximum allowed
    	r_player_lowblood = false;                        //set lowblood setting to false
    	10 fadeSound 1;                                    //slowly fade their volume back to maximum
    	"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;    //disable post processing blur effect
    	"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1],  [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 5;    //give them their colour back
    	r_player_lowblood = false;                        //just double checking their blood isnt low
    	player setVariable["USEC_BloodQty",r_player_bloodTotal,true];    //set their blood back up to maximum again
        if (_time + 90 < time) exitWith {[_effects] call Remove_Drug_effects;};
        };
        };
    
    
    

    This version have a blur, no animations, and it lasts a minute and a half (look the _time + 90 part) and it replenish player's health.

  6. mine isn't changing with f8 either. but my admin tool might use f8, I havn't seen an f8 function or it yet but i have used f1-6 so idk. If i wanted to change the bind to end. what code would i use. I can't find key codes for this.

     

    thanks.

    Same I would rather like disable Debug monitor of the antihack and make this one END key or make it like F7-F11 or idk

  7. You can replace some existing skins with overwatch models by defining them as customvariables, but no way of adding it litteraly

    Mind telling us how to do that? It would be cool to swap one ugly skin from epoch (from my point of view of course they are all cool) to like a stalker skin?

  8. Nope, running it on chernarus. BTW. Some functions of infiSTAR doesnt work too. (TP Player to me) results in a set pos #restriction. Firing a rocket launcher in a ristrict#17.. Idk whats going on suddenly.. Yesterday it worked fine

    Those are script restrictions... you should mess with the BE filters accordingly.

    As of the TP problem, try disabling the Anti TP in your AHconfig.sqf like so:

     

    /*  Use Anti Teleport?    */ _UAT = false;	/* true or false */	/* recommended:  true */	/* true = teleports them back, false = only logging */
    
    
  9. You must to figure out where is mistake. F8 work if you make hotkey.sqf in same place where is init.sqf  also if F8 not used with something else

    About logo, try to change it smaller <img size='5' image='%10'/>  where 5 is size  or your logo.paa resolution is too big

    I copy pasted the hotkeys.sqf you gave on the thread. As of the size I will try that out ty.

    F8 is not used by anything as far as I know

  10. 
    
    if (!isDedicated) then
    
    [] execVM "custom_monitor.sqf";
    waituntil {!IsNull (findDisplay 46)};
    _SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
    

    Ok now it shows up but won't close or get smaller when pressing f8 xD

    And the logo shows on side of Location so the location is under the logo

  11. It just doesn't show up ingame ...

     

    Init.sqf's IS dedicated part:
     

    if (!isDedicated) then {
    [] execVM "custom\WelcomeCredits.sqf";
    	//Conduct map operations
    	0 fadeSound 0;
    	waitUntil {!isNil "dayz_loadScreenMsg"};
    	dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
    	[] execVM "infistartingadmin.sqf";
    	//Run the player monitor
    	_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
    	_playerMonitor = 	[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";	
    	
    	//Lights
    	//[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
    	//HotKey(F8)
    	waituntil {!IsNull (findDisplay 46)};
    	_SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
    	//Debug Monitor	
    	[] execVM "custom_monitor.sqf";
    };
    

    hotkeys.sqf:

    if (_this select 1 == 66) then {
    	hintSilent "";
    	custom_monitor_state = custom_monitor_state + 1;
    	if (custom_monitor_state>2) then {
    		custom_monitor_state = 0;
    	};
    };
    

    custom_monitor.sqf:
     

    custom_monitor_state = 0;
     
    fnc_debug = {
    j0k3r5_stats = true;
    while {j0k3r5_stats} do
    {
    _logo = "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";
    _text = switch(custom_monitor_state) do {
    case 0:{
    "
    <img size='5' image='%10'/>
    <t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
    <t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    <t color='#708D70' size='1' font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
    <t color='#708B8D' size='1' font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
    <br/>
    <t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
    <t color='#707D8D' size='1' font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    <t color='#707D8D' size='1' font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
    <t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
    <t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    <t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/>
    <t size='1' font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>
    <img size='6' image='%9'/>
    "
    };
    case 1:{
    "
    <t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    <t color='#707D8D' size='1' font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    <t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    <t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/>
    <t size='1' font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>
    "
    };
    case 2:{
    ""
    };
    };
    if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then { // Replace xxx to admins UID
    _position = getPos player;
    _px = _position select 0;//X
    _py = _position select 1;//Y
    _text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
    };
    hintSilent parseText format
    [
    _text,
    r_player_blood,	//1
    round _humanity,	//2
    _killsH,	//3
    _killsB,	//4
    _kills,	//5
    _headShots,	//6
    (dayz_Survived),	//7
    ((floor(serverTime/60)) mod 60), //8
    _pic,	//9
    _logo,	//10
    _textCity,	//11
    0,	//12
    0,	//13
    round diag_fps,	//14
    {side _x == west} count allUnits, //15
    (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
    count vehicles,	//17
    (floor(serverTime/3600))	//18
    ];	
    sleep 1;
    };
    };
     
    [] spawn fnc_debug;
    
  12.  

    For others  working, 

    Here is my.

     

    custom_monitor_state = 0;
    
    fnc_debug = {
        j0k3r5_stats = true;
        while {j0k3r5_stats} do
    	{
    		_logo = "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";
    		_text = switch(custom_monitor_state) do {
    			case 0:{
    				"
    				<img size='5' image='%10'/>
    				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Локация:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#708D70' size='1'	font='Bitstream'align='left'>Человечность:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
    				<t color='#708B8D' size='1'	font='Bitstream'align='left'>В Голову:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                    <br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Игроков Убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Зомби убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Транспорт:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
    				<img size='6' image='%9'/>
    				"
    			};
    			case 1:{
    				"
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Кровь:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Бандитов убито:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>fps: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Игроки онлайн: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Сервер Работает %18ч %8м</t><br/>	
    				"
    			};
    			case 2:{
    				""
    			};
    		};
    		
    		if(((getPlayerUID player) in ["198262150","12614854"]) and custom_monitor_state == 1 ) then {
    			_position = getPos player;//Позиция игрока
    			_px = _position select 0;//X
    			_py = _position select 1;//Y
    			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
    		};
    		
    		hintSilent parseText format 
    			[
    				_text,
    				r_player_blood,												//1
    				round _humanity,											//2
    				_killsH,													//3
    				_killsB,													//4
    				_kills,														//5
    				_headShots,													//6
    				(dayz_Survived),											//7
    				((floor(serverTime/60)) mod 60), 							//8
    				_pic,														//9
    				_logo,														//10
    				_textCity,													//11
    				0,															//12
    				0,															//13
    				round diag_fps,												//14
                    {side _x == west} count allUnits,                           //15
    	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
    	            count vehicles,												//17
    				(floor(serverTime/3600))											//18
    			];			
    			sleep 1;
    	};
    };
    
    [] spawn fnc_debug;
    
    

    First of all, its all in russian lol xD

    Second of all, I tried replacing with original code found before and it still doesn't work. It won't show on join, and won't either when pressing F8.

    Any idea?

  13. My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

    In the end of  your init.sqf paste this one:

    //HotKey(F8)
    waituntil {!IsNull (findDisplay 46)};
    _SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
    //Debug Monitor	
    [] execVM "custom_monitor.sqf";
    

    Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

    custom_monitor_state = 0;
     
    fnc_debug = {
        j0k3r5_stats = true;
        while {j0k3r5_stats} do
    	{
    		
    		_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";
    		_text = switch(custom_monitor_state) do {
    			case 0:{
    				"
    				<img size='5' image='%10'/>
    				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
    				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                    <br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
    				<img size='6' image='%9'/>
    				"
    			};
    			case 1:{
    				"
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
    				"
    			};
    			case 2:{
    				""
    			};
    		};
    		
    		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
    			_position = getPos player;
    			_px = _position select 0;//X
    			_py = _position select 1;//Y
    			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
    		};
    		
    		hintSilent parseText format 
    			[
    				_text,
    				r_player_blood,												//1
    				round _humanity,											//2
    				_killsH,													//3
    				_killsB,													//4
    				_kills,														//5
    				_headShots,													//6
    				(dayz_Survived),											//7
    				((floor(serverTime/60)) mod 60), 							//8
    				_pic,														//9
    				_logo,														//10
    				_textCity,													//11
    				0,															//12
    				0,															//13
    				round diag_fps,												//14
                    {side _x == west} count allUnits,                           //15
    	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
    	            count vehicles,												//17
    				(floor(serverTime/3600))											//18
    			];			
    			sleep 1;
    	};
    };
     
    [] spawn fnc_debug;
     
    

    Same place make file hotkeys.sqf and paste:

    if (_this select 1 == 66) then {
    	hintSilent "";
    	custom_monitor_state = custom_monitor_state + 1;
    	if (custom_monitor_state>2) then {
    		custom_monitor_state = 0;
    	};
    };
    

    Must work!

     

    For me it doesn't work at all no debug appears. I am pretty sure on the typos I checked.

     

     

    Here is my custom_monitor.sqf

    custom_monitor_state = 0;
     
    fnc_debug = {
        j0k3r5_stats = true;
        while {j0k3r5_stats} do
    	{
    		_logo = "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";
    		_text = switch(custom_monitor_state) do {
    			case 0:{
    				"
    				<img size='5' image='%10'/>
    				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
    				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Headshots:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                    <br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Dickheads Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombs Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#0080C0'>Server run %18h %8m</t><br/>	
    			    <t size='1' font='Bitstream' align='center' color='#0080C0'>TS: wastelandgrounds.ts3dns.com</t><br/>",
    				<img size='6' image='%9'/>
    				"
    			};
    			case 1:{
    				"
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
    				"
    			};
    			case 2:{
    				""
    			};
    		};
    		
    		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
    			_position = getPos player;
    			_px = _position select 0;//X
    			_py = _position select 1;//Y
    			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
    		};
    		
    		hintSilent parseText format 
    			[
    				_text,
    				r_player_blood,												//1
    				round _humanity,											//2
    				_killsH,													//3
    				_killsB,													//4
    				_kills,														//5
    				_headShots,													//6
    				(dayz_Survived),											//7
    				((floor(serverTime/60)) mod 60), 							//8
    				_pic,														//9
    				_logo,														//10
    				_textCity,													//11
    				0,															//12
    				0,															//13
    				round diag_fps,												//14
                    {side _x == west} count allUnits,                           //15
    	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
    	            count vehicles,												//17
    				(floor(serverTime/3600))											//18
    			];			
    			sleep 1;
    	};
    };
     
    [] spawn fnc_debug;
    
  14. My debug monitor works fine and closing with F8, first  click make it smaller, second one close it .

    In the end of  your init.sqf paste this one:

    //HotKey(F8)
    waituntil {!IsNull (findDisplay 46)};
    _SpecKeyDown = (findDisplay 46) displayAddEventHandler ["KeyDown", loadFile "hotkeys.sqf"];
    //Debug Monitor	
    [] execVM "custom_monitor.sqf";
    

    Next make file custom_monitor.sqf same place where is init.sqf  and paste inside:

    custom_monitor_state = 0;
     
    fnc_debug = {
        j0k3r5_stats = true;
        while {j0k3r5_stats} do
    	{
    		
    		_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";
    		_text = switch(custom_monitor_state) do {
    			case 0:{
    				"
    				<img size='5' image='%10'/>
    				<t color='#7D8D70' size='1' font='Bitstream'align='left'>Location:</t><t size='1' font='Bitstream'align='right'color='#7D8D70'>%11</t><br/>
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#708D70' size='1'	font='Bitstream'align='left'>Humanity:</t><t size='1' font='Bitstream'align='right'color='#708D70'>%2</t><br/>
    				<t color='#708B8D' size='1'	font='Bitstream'align='left'>Head:</t><t size='1' font='Bitstream'align='right'color='#708B8D'>%6</t><br/>
                    <br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Players Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%3</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Zombie Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%5</t><br/>
    				<t color='#707D8D' size='1' font='Bitstream'align='left'>Vehicles:</t><t size='0.95' font='Bitstream'align='right'color='#707D8D'>%16</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
    				<img size='6' image='%9'/>
    				"
    			};
    			case 1:{
    				"
    				<t color='#708D72' size='1' font='Bitstream'align='left'>Blood:</t><t size='1' font='Bitstream'align='right'color='#708D72'>%1</t><br/>
    				<t color='#707D8D' size='1'	font='Bitstream'align='left'>Bandits Killed:</t><t size='1' font='Bitstream'align='right'color='#707D8D'>%4</t><br/>
    				<t color='#72708D' size='1' font='Bitstream'align='left'>FPS: </t><t size='1' font='Bitstream'align='right'color='#72708D'>%14</t><br/>
    				<t color='#80708D' size='1' font='Bitstream'align='left'>Players Online: </t><t size='1' font='Bitstream'align='right'color='#80708D'>%15</t><br/> 
    				<t size='1'	font='Bitstream'align='center'color='#8D708B'>Server run %18h %8m</t><br/>	
    				"
    			};
    			case 2:{
    				""
    			};
    		};
    		
    		if(((getPlayerUID player) in ["xxxx","xxxxx"]) and custom_monitor_state == 1 ) then {      // Replace xxx to admins UID
    			_position = getPos player;
    			_px = _position select 0;//X
    			_py = _position select 1;//Y
    			_text = _text + format ["<t color='#00bcbc' size='0.8'font='Bitstream'align='left'>x:%1 y:%2</t><br/>",_px,_py];
    		};
    		
    		hintSilent parseText format 
    			[
    				_text,
    				r_player_blood,												//1
    				round _humanity,											//2
    				_killsH,													//3
    				_killsB,													//4
    				_kills,														//5
    				_headShots,													//6
    				(dayz_Survived),											//7
    				((floor(serverTime/60)) mod 60), 							//8
    				_pic,														//9
    				_logo,														//10
    				_textCity,													//11
    				0,															//12
    				0,															//13
    				round diag_fps,												//14
                    {side _x == west} count allUnits,                           //15
    	            (count([6800, 9200, 0] nearEntities [["StaticWeapon","Car","Motorcycle","Tank","Air","Ship"],25000])),//16
    	            count vehicles,												//17
    				(floor(serverTime/3600))											//18
    			];			
    			sleep 1;
    	};
    };
     
    [] spawn fnc_debug;
     
    

    Same place make file hotkeys.sqf and paste:

    if (_this select 1 == 66) then {
    	hintSilent "";
    	custom_monitor_state = custom_monitor_state + 1;
    	if (custom_monitor_state>2) then {
    		custom_monitor_state = 0;
    	};
    };
    

    Must work!

     

     

    How do you change the Server time? Mine is 4 hours each restart. Is it defined itself or does it grab the time somewhere??? XD

    BTW sick ass monitor :)

  15.  

    I had the same issue. I had to remove each catagory until it worked. turned out something wrong with my assault rifles.

     

    //Overpoch VENDOR
    menu_gsc_scientist1 = [
    [["Ammunition",1005],["Pistols",1000],["Assult Rifles",1001],["Sniper Rifles",1002],["MPS",1003],["HeavyMachineGuns",1004]],
    [],
    "neutral"
    ];
     
    I use the skin trader for skins

     

    How using the skin trader can you add the overpoch skins? Like I can use them using admin morphing but you lose it on restart so...

    And as for the trader menu, I tried using a different skin (normnal epoch) and it didint work.

×
×
  • Create New...