Jump to content
  • 0

Anti dupe? 1.0.6.1 exists?


harcosgoogle

Question

18 answers to this question

Recommended Posts

  • 0

Thanks help @Corpulio_Hun

 

How to install:

Download file: https://drive.google.com/file/d/0B4UOmZbujgeNLTFId1hZdDZtS3NmZGhKSHRHb0xUNUJGWWtV/view?usp=sharing

Extract 2 file youcustomfolder -  dupe.sqf and dupingfix.sqf 

Find file: youmission\description.ext 

Find: onPauseScript = ""

And look like that: onPauseScript = "youcustomfolder\dupingfix.sqf";

 

Example: My description.ext: "scripts\dupingfix.sqf";

Example: extracted 2 file place: scripts/ dupingfix.sqf and dupe.sqf

 

 

 

 

Link to comment
Share on other sites

  • 0
2 hours ago, harcosgoogle said:

How can it be added that it can not be left on a vehicle? So do not leave the vehicle

@juandayz Maybe you know

blockescmenu.sqf  (paste into mpmissions/yourinstance/)

Spoiler

if (isNil "JustBlock") then {
    private["_timer", "_fps"];
    JustBlock = true;
    disableSerialization;
    waituntil {
        !isnull(finddisplay 46)
    };
    _timer = 15;
    _trigger = false;
    while {
        _timer > 0
    }
    do {
        _timer = _timer - 0.1;
        if !(isnull(finddisplay 49)) then {
            findDisplay 106 closeDisplay 1;
            finddisplay 49 closeDisplay 2;
            _fps = round(diag_fps);
            switch true do {
                case (!(_trigger) && (_fps <= 4)):{
                        _trigger = true;
                        disableUserInput true;
                    };
                case ((_trigger) && (_fps > 4)):{
                        endLoadingScreen;
                        _trigger = false;
                        disableUserInput false;
                    };
            };
            if (_trigger) then {
                startLoadingScreen["Your FPS is low - wait to disconnect", "DayZ_loadingScreen"];
            }
            else {
                format["ESC menu is blocked for another %1 seconds due to gear being opened.", round(_timer)] call dayz_rollingMessages;
            };
        };
        uiSleep 0.1;
    };
    if (_trigger) then {
        endLoadingScreen;
        disableUserInput false;
    };
    JustBlock = nil;
};

 

now open your description.ext

find this line:

onPauseScript = "";

replacer by

onPauseScript = "blockescmenu.sqf";

 

Link to comment
Share on other sites

  • 0

now @harcosgoogle  replace your dupingfix.sqf with this code. yoo keep one single file

Spoiler

private ["_escMenu","_typf","_mxBckpcks","_vehicle","_inVehicle"];
 
disableSerialization;
waitUntil {!isNull findDisplay 49};
_escMenu = findDisplay 49;
{
   _typf = typeOf cursortarget;
   _mxBckpcks = getNumber (configFile >> "CfgVehicles" >> _typf >> "transportmaxbackpacks");
   if (!(isNull _x) && (canbuild) && !(_x == player || typeOf _x in ["WeaponHolder","DebugBoxPlayer_DZ"]) && (_mxBckpcks > 0)) exitWith
   {
      titleText ["<Anti-Dupe>: You cannot log out near a storage unit!", "PLAIN DOWN", 3];
      systemchat "<Anti-Dupe>: You cannot log out near a storage unit!";
      _escMenu closedisplay 0;
   };
} foreach (nearestObjects [player, ["All"], 10]);

_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
if (_inVehicle) exitWith {
  systemchat "<Anti-Dupe>: You cannot log out in vehicles!";
  _escMenu closedisplay 0;
 };

 

and in description.ext  do not touch anything just leave the call as you have right now

onPauseScript = "sajat\dupingfix.sqf";
Link to comment
Share on other sites

  • 0
On 5/14/2017 at 5:31 AM, harcosgoogle said:

Thanks help @Corpulio_Hun

 

How to install:

Download file: https://drive.google.com/file/d/0B4UOmZbujgeNLTFId1hZdDZtS3NmZGhKSHRHb0xUNUJGWWtV/view?usp=sharing

Extract 2 file youcustomfolder -  dupe.sqf and dupingfix.sqf 

Find file: youmission\description.ext 

Find: onPauseScript = ""

And look like that: onPauseScript = "youcustomfolder\dupingfix.sqf";

 

Example: My description.ext: "scripts\dupingfix.sqf";

Example: extracted 2 file place: scripts/ dupingfix.sqf and dupe.sqf

 

 

 

 

Where are we loading  dupe.sqf from?

Link to comment
Share on other sites

  • 0

@DieTanx

There will be enough file - dupingfix.sqf

dupe.sqf not tested.

 

private ["_escMenu","_typf","_mxBckpcks","_vehicle","_inVehicle"];
 
disableSerialization;
waitUntil {!isNull findDisplay 49};
_escMenu = findDisplay 49;
{
   _typf = typeOf cursortarget;
   _mxBckpcks = getNumber (configFile >> "CfgVehicles" >> _typf >> "transportmaxbackpacks");
   if (!(isNull _x) && (canbuild) && !(_x == player || typeOf _x in ["WeaponHolder","DebugBoxPlayer_DZ"]) && (_mxBckpcks > 0)) exitWith
   {
      titleText ["<Anti-Dupe>: You cannot log out near a storage unit!", "PLAIN DOWN", 3];
      systemchat "<Anti-Dupe>: You cannot log out near a storage unit!";
      _escMenu closedisplay 0;
   };
} foreach (nearestObjects [player, ["All"], 10]);

_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
if (_inVehicle) exitWith {
  systemchat "<Anti-Dupe>: You cannot log out in vehicles!";
  _escMenu closedisplay 0;
 };

 
Link to comment
Share on other sites

  • 0
1 hour ago, harcosgoogle said:

@DieTanx

There will be enough file - dupingfix.sqf

dupe.sqf not tested.

 


private ["_escMenu","_typf","_mxBckpcks","_vehicle","_inVehicle"];
 
disableSerialization;
waitUntil {!isNull findDisplay 49};
_escMenu = findDisplay 49;
{
   _typf = typeOf cursortarget;
   _mxBckpcks = getNumber (configFile >> "CfgVehicles" >> _typf >> "transportmaxbackpacks");
   if (!(isNull _x) && (canbuild) && !(_x == player || typeOf _x in ["WeaponHolder","DebugBoxPlayer_DZ"]) && (_mxBckpcks > 0)) exitWith
   {
      titleText ["<Anti-Dupe>: You cannot log out near a storage unit!", "PLAIN DOWN", 3];
      systemchat "<Anti-Dupe>: You cannot log out near a storage unit!";
      _escMenu closedisplay 0;
   };
} foreach (nearestObjects [player, ["All"], 10]);

_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
if (_inVehicle) exitWith {
  systemchat "<Anti-Dupe>: You cannot log out in vehicles!";
  _escMenu closedisplay 0;
 };


 

Thank you

Link to comment
Share on other sites

  • 0

mmm the cannot log out near zeds comes by default with epoch.. you will see the code in your player_onpause.sqf

 

disableSerialization;
_zedCheck = ((count (player nearEntities ["zZombie_Base",10]) > 0) && !_isPZombie);

if (_zedCheck) then {
			_btnAbort ctrlEnable false;
			_btnAbort ctrlSetText format["%1 (in 10)", _btnAbortText];
			[localize "str_abort_zedsclose",1] call dayz_rollingMessages;
		};

 

Link to comment
Share on other sites

  • 0

@harcosgoogle

private ["_escMenu","_typf","_mxBckpcks","_vehicle","_inVehicle","_zedCheck"];
 
disableSerialization;
waitUntil {!isNull findDisplay 49};
_escMenu = findDisplay 49;
{
   _typf = typeOf cursortarget;
   _mxBckpcks = getNumber (configFile >> "CfgVehicles" >> _typf >> "transportmaxbackpacks");
   if (!(isNull _x) && (canbuild) && !(_x == player || typeOf _x in ["WeaponHolder","DebugBoxPlayer_DZ"]) && (_mxBckpcks > 0)) exitWith
   {
      titleText ["<Anti-Dupe>: You cannot log out near a storage unit!", "PLAIN DOWN", 3];
      systemchat "<Anti-Dupe>: You cannot log out near a storage unit!";
      _escMenu closedisplay 0;
   };
} foreach (nearestObjects [player, ["All"], 10]);

_vehicle = vehicle player;
_inVehicle = (_vehicle != player);
if (_inVehicle) exitWith {
  systemchat "<Anti-Dupe>: You cannot log out in vehicles!";
  _escMenu closedisplay 0;
 };
 
_zedCheck = ((count (player nearEntities ["zZombie_Base",10]) > 0));

if (_zedCheck) then {
			_escMenu closedisplay 0;
			systemchat "<Anti-Dupe>: You cannot log out while nearest zeds around you!";
		}; 

 

Link to comment
Share on other sites

  • 0
Just now, harcosgoogle said:

Not worked @juandayz zombie

oh yes sory.. my bad

change:

if (_zedCheck) then {
			_escMenu closedisplay 0;
			systemchat "<Anti-Dupe>: You cannot log out while nearest zeds around you!";
		}; 

by:

if (_zedCheck)exitWith {
			_escMenu closedisplay 0;
			systemchat "<Anti-Dupe>: You cannot log out while nearest zeds around you!";
		}; 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...