antichat
This commit is contained in:
parent
fd2abaedf8
commit
f988593037
3 changed files with 60 additions and 0 deletions
1
anticheat/$PBOPREFIX$
Normal file
1
anticheat/$PBOPREFIX$
Normal file
|
|
@ -0,0 +1 @@
|
|||
hijack_server\anticheat
|
||||
30
anticheat/config.cpp
Normal file
30
anticheat/config.cpp
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
29
anticheat/fn_anticheat.sqf
Normal file
29
anticheat/fn_anticheat.sqf
Normal 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];
|
||||
Loading…
Add table
Add a link
Reference in a new issue