Jump to content

Anti-Duping by JustBullet | Block ESC Menu


JustBullet

Recommended Posts

BLOCK ESC MENU BY JUSTBULLET

ver. 1.0.3

This Anti-Duping system block duping with:
1. inventory ->> 30 sec. timer ->> ESC = you can not go out 30 seconds. 
2. inventory ->> 30 sec. timer ->> ((Low FPS ->> ESC) || (ESC --> Low FPS)) = locks the screen and you can not go out 30 seconds. If the FPS will be more, removes the lock screen.

 

Instructions:

add in dayz_spaceInterrupt.sqf:

/* Anti-Duping by JustBullet */
if (_dikCode in actionKeys "Gear") then {
    _nill = execvm "scripts\escmenu_atniduping.sqf";
};

above:

// Disable ESC after death
if (_dikCode == 0x01 && r_player_dead) then {
    _handled = true;
};

in escmenu_atniduping.sqf:

/////////////////////////////////////////////////////
//////////////* Author by JustBullet *///////////////
///////////* BLOCK ESC MENU ver. 1.0.3 */////////////
/////////////////////////////////////////////////////

if (isNil "JustBlock") then {
    private ["_timer","_fps"];
    JustBlock = true;
    disableSerialization;
    waituntil{!isnull (finddisplay 46)};
    _timer = 30;
    _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 ["Anti-dupe: Very low FPS, you are blocked...", "DayZ_loadingScreen"];}
            else {systemchat format["Anti-Dupe: You are can't exit of game 1% sec. after access at inventory.", round(_timer)];};
        };
        uiSleep 0.1;
    };
    if (_trigger) then {endLoadingScreen; disableUserInput false;};
    JustBlock = nil;
};

P.S. I can`t make the description because i am do not know English well enough. If you do not difficult to help me with this.

 

****************************************************

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 1 year later...

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...