This commit is contained in:
jack77213 2020-03-30 13:44:44 +08:00
parent fd2abaedf8
commit f988593037
Signed by: jack77213
GPG key ID: CA81AA7BB873B9F1
3 changed files with 60 additions and 0 deletions

1
anticheat/$PBOPREFIX$ Normal file
View file

@ -0,0 +1 @@
hijack_server\anticheat

30
anticheat/config.cpp Normal file
View file

@ -0,0 +1,30 @@
class CfgPatches
{
class hijack_server_anticheat
{
name = "Hijack Server 1pp Addon";
author = "jack77213";
url = "https://hijack.moe";
requiredVersion = 1.72;
requiredAddons[] = {"A3_Functions_F"};
units[] = {};
weapons[] = {};
};
};
class CfgFunctions
{
class hijack
{
class server
{
class anticheat
{
file="\hijack_server\anticheat\fn_anticheat.sqf";
postInit=1;
};
};
};
};

View file

@ -0,0 +1,29 @@
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];