Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////
- // Anti Cheat Quick
- /////////////////////////////////////////////////////////////////
- //Loki Lost Key
- //global variable check
- if (!isNil "loki_LostKey") then {
- [player] spawn {
- _unit = _this select 0;
- _name = name _unit;
- systemchat format ["%1 is using unauthorized addons",_name];
- _unit enablesimulation false;
- _CheatMessage = "You must remove unauthorized addons/Cheats before you can play on the server. Please disable these addons and relaunch.";
- cutText [_CheatMessage,"BLACK FADED",1];
- sleep 5;
- failMission "LOSER";
- };
- };
- //cfg patches check
- if (isClass(configFile >> "CfgPatches" >> "Loki_Lost_Key")) then {
- [player] spawn {
- _unit = _this select 0;
- _name = name _unit;
- systemchat format ["%1 is using unauthorized addons",_name];
- _unit enablesimulation false;
- _CheatMessage = "You must remove unauthorized addons/Cheats before you can play on the server. Please disable these addons and relaunch.";
- cutText [_CheatMessage,"BLACK FADED",1];
- sleep 5;
- failMission "LOSER";
- };
- };
- //MCC Sandbox
- //cfg patches check
- if (isClass(configFile >> "CfgPatches" >> "mcc_sandbox")) then {
- [player] spawn {
- waituntil {!isNil "mcc_actionInedx"};
- [mcc_actionInedx] call CBA_fnc_removePlayerAction;
- teleportToTeam = false;
- hintsilent "Please disable MCC on your client to increase performance on this server.";
- };
- };
- //Load Out Editor
- //public lea variable
- enable_lea_addon = false;
- //cfg patches check
- if (isClass(configFile >> "CfgPatches" >> "LEA")) then {
- [player] spawn {
- _unit = _this select 0;
- enable_lea_addon = false;
- _unit removeaction LEA_Action;
- hintsilent "LEA is disabled on this server.";
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement