Killing a Hacker

Blahman919

New Member
So, I got BluePhonix's Admin commands, and I have the problem when I get into a vehicle the server, thinking I'm a hacker, blows up my vehicle that I spawned. I've tried many of the fixes, my server_cleanup.sfm does not have the line of code that I am supposed to replace, the only file I seem to be able to find that has "Killing a Hacker" in it is server_functions, and I tried replacing that with a code I found, and it did not help.
I'm quite new, just rented me and my friend's first DayZ Epoch server, and I'm the one stuck getting all the Addons, and so far as I can tell this is the only one that slightly works. Any help is much appreciated.
 
Replacing the killed a hacker only works if you set that variable on your hacked in vehicle first ... I am not a fan of admin tools unless all the players get the same advantage ... Anyway, vehicle setvariable is what you need to do when it spawns in.
 
For Epoch 1.0.4.2 its in server_functions.sqf. Mine looks like this:
Code:
server_checkHackers = {
    if (DZE_DYN_AntiStuck2nd > 3) then { DZE_DYN_HackerCheck = nil; DZE_DYN_AntiStuck2nd = 0; };
    if(!isNil "DZE_DYN_HackerCheck") exitWith {  DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
    DZE_DYN_HackerCheck = true;
    {
        if(vehicle _x != _x && (vehicle _x getVariable ["Sarge",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x)  && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
            diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
            (vehicle _x) setDamage 1;
            _x setDamage 1;
            sleep 0.25;
        };
        sleep 0.001;
    } forEach allUnits;
    DZE_DYN_HackerCheck = nil;
};
 
I had a long explanation of why this is happening and how to fix it culminating with a 'just stop hacking' comment. Then I got a phone call and my phone lost the post.

So now all you get is a link to a fix for epoch to read and download. Make sure you overwrite your tools with this one.

https://github.com/deannreid/DayZEpoch-VehicleFix

If it doesn't work let me know via pm, post me your mission and server.pbo and I will fix it for.

The getvariable 'sarge' is the standard fix, but the vehicle needs to have setvariable 'sarge' when it spawns so there is more to it than just that check ... Unless its included by default.
 
I finally got it working, thanks for the replies. Now I'm working on getting AI missions, and that is going....somewhere, not sure where.
 
Back
Top