mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +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;};
|
if(!isNil "DZE_DYN_HackerCheck") exitWith { DZE_DYN_AntiStuck2nd = DZE_DYN_AntiStuck2nd + 1;};
|
||||||
DZE_DYN_HackerCheck = true;
|
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 {
|
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));
|
diag_log ("CLEANUP: KILLING A HACKER " + (name _x) + " " + str(_x) + " IN " + (typeOf vehicle _x));
|
||||||
(vehicle _x) setDamage 1;
|
(vehicle _x) setDamage 1;
|
||||||
_x setDamage 1;
|
_x setDamage 1;
|
||||||
sleep 0.25;
|
sleep 0.25;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
sleep 0.001;
|
sleep 0.001;
|
||||||
} forEach allUnits;
|
} forEach allUnits;
|
||||||
DZE_DYN_HackerCheck = nil;
|
DZE_DYN_HackerCheck = nil;
|
||||||
|
|||||||
Reference in New Issue
Block a user