mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Merge pull request #1259 from Sandbird/patch-1
Update server_functions.sqf
This commit is contained in:
@@ -788,12 +788,14 @@ server_checkHackers = {
|
||||
if(!isNil "DZE_DYN_HackerCheck") exitWith { DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
|
||||
DZE_DYN_HackerCheck = true;
|
||||
{
|
||||
if (!((isNil "_x") OR {(isNull _x)})) then {
|
||||
if(vehicle _x != _x && !(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;
|
||||
@@ -898,4 +900,4 @@ server_logUnlockLockEvent = {
|
||||
};
|
||||
diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player), _statusText];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user