Merge pull request #1259 from Sandbird/patch-1

Update server_functions.sqf
This commit is contained in:
vbawol
2014-05-07 13:59:53 -05:00

View File

@@ -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;