Advertisement
PiZZADOX

Arma 2 AntiCheat client init

Dec 18th, 2015
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.73 KB | None | 0 0
  1. /////////////////////////////////////////////////////////////////
  2. //                  Anti Cheat Quick    
  3. /////////////////////////////////////////////////////////////////
  4.  
  5. //Loki Lost Key
  6. //global variable check
  7. if (!isNil "loki_LostKey") then {
  8.     [player] spawn {
  9.     _unit = _this select 0;
  10.     _name = name _unit;
  11.     systemchat format ["%1 is using unauthorized addons",_name];
  12.     _unit enablesimulation false;
  13.     _CheatMessage = "You must remove unauthorized addons/Cheats before you can play on the server. Please disable these addons and relaunch.";
  14.     cutText [_CheatMessage,"BLACK FADED",1];
  15.     sleep 5;
  16.     failMission "LOSER";
  17.     };
  18. };
  19.  
  20. //cfg patches check
  21. if (isClass(configFile >> "CfgPatches" >> "Loki_Lost_Key")) then {
  22.     [player] spawn {
  23.     _unit = _this select 0;
  24.     _name = name _unit;
  25.     systemchat format ["%1 is using unauthorized addons",_name];
  26.     _unit enablesimulation false;
  27.     _CheatMessage = "You must remove unauthorized addons/Cheats before you can play on the server. Please disable these addons and relaunch.";
  28.     cutText [_CheatMessage,"BLACK FADED",1];
  29.     sleep 5;
  30.     failMission "LOSER";
  31.     };
  32. };
  33.  
  34. //MCC Sandbox
  35. //cfg patches check
  36. if (isClass(configFile >> "CfgPatches" >> "mcc_sandbox")) then {
  37.     [player] spawn {
  38.     waituntil {!isNil "mcc_actionInedx"};
  39.     [mcc_actionInedx] call CBA_fnc_removePlayerAction;
  40.     teleportToTeam = false;
  41.     hintsilent "Please disable MCC on your client to increase performance on this server.";
  42.     };
  43. };
  44.  
  45. //Load Out Editor
  46. //public lea variable
  47. enable_lea_addon = false;
  48.  
  49. //cfg patches check
  50. if (isClass(configFile >> "CfgPatches" >> "LEA")) then {
  51.     [player] spawn {
  52.     _unit = _this select 0;
  53.     enable_lea_addon = false;
  54.     _unit removeaction LEA_Action;
  55.     hintsilent "LEA is disabled on this server.";
  56.     };
  57. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement