Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Client Initialization
- //lea shit
- leaFunction = compile preprocessFileLineNumbers "Scripts\Equipment\lea\loadout-init.sqf";
- /////////////////////////////////////////////////////////////////
- // Player Temp Freeze
- /////////////////////////////////////////////////////////////////
- MMC_startfreeze = {
- player spawn {
- removeallweapons player;
- player enableSimulation false;
- _future = time + 5;
- waitUntil {(time >= _future)};
- call leaFunction;
- waitUntil {!isNil "leadummy"};
- waitUntil {scriptdone leadummy};
- if !(player hasweapon "ace_safe") then {player addweapon "ace_safe";};
- waituntil {player hasweapon "ace_safe"};
- player enableSimulation true;
- player selectweapon "ace_safe";
- player setVariable ["ace_sys_weaponselect_safety",[(primaryweapon player),true]];
- };
- };
- player call MMC_startfreeze;
- /////////////////////////////////////////////////////////////////
- // ACRE Connection Script
- /////////////////////////////////////////////////////////////////
- //execVM "Scripts\ACRE\ts3connect.sqf";
- //execVM "Scripts\ACRE\ts3disconnect.sqf";
- /////////////////////////////////////////////////////////////////
- // Anti Cheat Quick
- /////////////////////////////////////////////////////////////////
- MMC_anticheat = {
- //global variable check
- if (!isNil "loki_LostKey") then {
- [player] spawn {
- _name = name player;
- systemchat format ["%1 is using unauthorized addons",_name];
- player 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 {
- _name = name player;
- systemchat format ["%1 is using unauthorized addons",_name];
- player 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";
- };
- };
- };
- ///////////////////////////////////////////////
- // Player Execution
- ///////////////////////////////////////////////
- MMC_playerexecution = {
- if (isplayer player) then
- {
- waituntil {local player};
- onMapSingleClick {_shift};
- ace_sys_eject_fnc_weaponcheck = {};
- player setskill 0;
- player setVariable ["BIS_noCoreConversations", true];
- player setVariable ["ACE_SYS_STAMINA_MULTI", 0.45];
- {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
- player synchronizeObjectsAdd [server];
- server synchronizeObjectsAdd [player];
- [] call (compile (preprocessFileLineNumbers ("\ca\Modules\MP\data\scripts\MPframework.sqf")));
- };
- };
- player call MMC_playerexecution;
- ///////////////////////////////////////////////
- // JIP Teleport and Actions per params //
- ///////////////////////////////////////////////
- waituntil {!isNil "respawnallowed"};
- if (!isServer && isNull player) then {
- waitUntil {!isNull player};
- waituntil {local player};
- player call MMC_playerexecution;
- player call MMC_anticheat;
- player call MMC_startfreeze;
- player setpos (getmarkerpos "respawn_west");
- hint "You are a JIP player, you have been spawned inside of a waiting area with diminished gear, you can either spectate or teleport to your teamleader";
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement