hijack_server/anticheat/fn_anticheat.sqf
2020-03-30 13:44:44 +08:00

29 lines
554 B
Text

if (!isServer) exitWith {};
hijack_anticheat_client = {
[] spawn {
//
sleep 60;
while {true} do {
sleep 10;
player allowDamage true;
(vehicle player) allowDamage true;
{
_x allowDamage true;
_veh = vehicle _x;
_veh allowDamage true;
if (!(_veh isKindOf "man")) then {
if (netId _veh == "0:0") then {
deleteVehicle _veh;
};
};
} forEach units group player;
};
};
};
publicVariable "hijack_anticheat_client";
remoteExecCall ["hijack_anticheat_client", -2, true];