Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- comment "----------------------------------------------------------";
- comment "JAM V1.5A: J-WoLF's Admin Menu Version One (Alpha Release)";
- comment "----------------------------------------------------------";
- SystemChat "JAM V1.5A | Status: Loading...";
- JAM_myName = name player;
- JAM_mySteam64UID = getPlayerUID player;
- SystemChat format ["JAM V1.5A | Status: Activated | Name: %1 | SteamID: %2",
- JAM_myName, JAM_mySteam64UID];
- comment "----------------------------------------------------------";
- comment "--------------------GLOBAL VARIABLES----------------------";
- comment "----------------------------------------------------------";
- JAM_isLoaded = false;
- JAM_blacklist = []; comment "steamIDs";
- JAM_banList = [];
- JAM_myOwnerID = owner player;
- JAM_myClientID = clientOwner;
- JAM_tColor = [0,0.5,0,0.6];
- JAM_fColor = [0,1,0,1];
- JAM_tColorChanged = false;
- JAM_key_arsenal = "INS";
- JAM_key_mainMenu = "NUM5";
- JAM_key_3DTP = "H";
- JAM_blackListEnabled = false;
- comment "----------------------------------------------------------";
- comment "-----------------INITIATE BLACKLIST-----------------------";
- comment "----------------------------------------------------------";
- _loopBlacklist = [] spawn {
- waitUntil {JAM_blackListEnabled};
- while {JAM_blackListEnabled} do {
- {
- If ((getPlayerUID _x) in JAM_blacklist) then {
- [["BACK-TO-LOBBY"],
- {
- ["LOSER",false,0,true] spawn BIS_fnc_endMission;
- }] remoteExec ["spawn",_x];
- };
- } forEach (allPlayers select {(str (getPlayerUID _x)) in JAM_blacklist});
- };
- };
- comment "----------------------------------------------------------";
- comment "--------------------INTRO & LOADING-----------------------";
- comment "----------------------------------------------------------";
- 0 = [] spawn {
- playMusic ["LeadTrack01_F_Malden", 2.5];
- sleep 2.5;
- playMusic "";
- };
- typeWriter =
- [
- [
- ["J.A.M","<t align = 'center' ,<br\>,size='10' color='#00FF00'>%1</t><br/>"],
- ["Version 1.5 Alpha Release","<t align = 'center' <br\>,size='2' color='#42D6FC'>%1</t><br/>"],
- ["CLIENT INITIALIZING","<t align = 'center' <br\>,size ,color='#ff5134'= '1'>%1</t>"]
- ]
- ] spawn BIS_fnc_typeText;
- [] spawn {
- hint "W";
- sleep 0.1;
- hint "We";
- sleep 0.1;
- hint "Wel";
- sleep 0.1;
- hint "Welc";
- sleep 0.1;
- hint "Welco";
- sleep 0.1;
- hint "Welcom";
- sleep 0.1;
- hint "Welcome";
- sleep 0.1;
- hint "Welcome ";
- sleep 0.1;
- hint "Welcome t";
- sleep 0.1;
- hint "Welcome to";
- sleep 0.1;
- hint "Welcome to ";
- sleep 0.1;
- hint "Welcome to J";
- sleep 0.1;
- hint "Welcome to J-";
- sleep 0.1;
- hint "Welcome to J-W";
- sleep 0.1;
- hint "Welcome to J-Wo";
- sleep 0.1;
- hint "Welcome to J-WoL";
- sleep 0.1;
- hint "Welcome to J-WoLF";
- sleep 0.1;
- hint "Welcome to J-WoLF'";
- sleep 0.1;
- hint "Welcome to J-WoLF's";
- sleep 0.1;
- hint "Welcome to J-WoLF's ";
- sleep 0.1;
- hint "Welcome to J-WoLF's A";
- sleep 0.1;
- hint "Welcome to J-WoLF's Ad";
- sleep 0.1;
- hint "Welcome to J-WoLF's Adm";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admi";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin ";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin M";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin Me";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin Men";
- sleep 0.1;
- hint "Welcome to J-WoLF's Admin Menu";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "Welcome to J-WoLF's Admin Menu V";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "Welcome to J-WoLF's Admin Menu V1";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "Welcome to J-WoLF's Admin Menu V1.";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "Welcome to J-WoLF's Admin Menu V1.5";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "Welcome to J-WoLF's Admin Menu V1.5A";
- sleep 0.3;
- hint " ";
- sleep 0.3;
- hint "-----------------------------\nJ.A.M KEYBINDS\n-----------------------------\nNUM 5 - Main Menu\nINS - Arsenal Menu\nH - 3D Teleport\n-----------------------------";
- };
- comment "Post-Process Effects";
- [] spawn {
- _startEffect = ["ChromAberration", 200, [0.1, 0.1, true]] spawn {
- params ["_name", "_priority", "_effect", "_handle"];
- while {
- _handle = ppEffectCreate [_name, _priority];
- _handle < 0
- } do {
- _priority = _priority + 1;
- };
- _handle ppEffectEnable true;
- _handle ppEffectAdjust _effect;
- _handle ppEffectCommit 0.3;
- };
- sleep 0.3;
- _stopEffect = ["ChromAberration", 200, [0, 0, true]] spawn {
- params ["_name", "_priority", "_effect", "_handle"];
- while {
- _handle = ppEffectCreate [_name, _priority];
- _handle < 0
- } do {
- _priority = _priority + 1;
- };
- _handle ppEffectEnable true;
- _handle ppEffectAdjust _effect;
- _handle ppEffectCommit 1;
- waitUntil {ppEffectCommitted _handle};
- _handle ppEffectEnable false;
- ppEffectDestroy _handle;
- };
- };
- [] spawn {
- sleep 0.2;
- 0 = ["ColorCorrections", 1500, [1, 1, 0, [0, 0, 0, 0], [1, 1, 1, 0], [0.299, 0.587, 0.114, 0]]] spawn
- {
- params ["_name", "_priority", "_effect", "_handle"];
- while {
- _handle = ppEffectCreate [_name, _priority];
- _handle < 0
- } do {
- _priority = _priority + 1;
- };
- _handle ppEffectEnable true;
- _handle ppEffectAdjust _effect;
- _handle ppEffectCommit 0.4;
- };
- sleep 3.6;
- 0 = ["ColorCorrections", 1500, [1, 1, 0, [0, 0, 0, 0], [1, 1, 1, 1], [0.299, 0.587, 0.114, 0]]] spawn
- {
- params ["_name", "_priority", "_effect", "_handle"];
- while {
- _handle = ppEffectCreate [_name, _priority];
- _handle < 0
- } do {
- _priority = _priority + 1;
- };
- _handle ppEffectEnable true;
- _handle ppEffectAdjust _effect;
- _handle ppEffectCommit 7;
- waitUntil {ppEffectCommitted _handle};
- _handle ppEffectEnable false;
- ppEffectDestroy _handle;
- };
- };
- comment "init done message";
- [] spawn {
- waitUntil { scriptDone typeWriter };
- _typeWriter2 =
- [
- [
- ["INIT COMPLETE","<t align = 'center' <br\>,size ,color='#ff5134'= '1'>%1</t><br/>"],
- ["Use JAM responsibly.","<t align = 'center' <br\>,size='2' color='#42D6FC'>%1</t>"]
- ]
- ] spawn BIS_fnc_typeText;
- playSound3D ["A3\Sounds_F_patrol\radio\combatPatrol\02_mission_start_a.ogg", player, false];
- };
- comment "----------------------------------------------------------";
- comment "---------------------QUICK SCRIPTS------------------------";
- comment "----------------------------------------------------------";
- JAM_fnc_mutePlayer =
- {
- params ["_playerName"];
- _playerName = _this select 0;
- {
- if ( ( name _x ) == _playerName ) then
- {
- _textNotif = format ["JAM: Server-muting %1...", (name _x)];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _x setVariable ["BIS_noCoreConversations", true];
- _x disableConversation true;
- [["<t color='#ff0000' size='2'>ADMIN MESSAGE:<br/><t color='#FFFFFF' size='1'>You have been muted [chat, VoN]", "PLAIN", 3, true, true]] remoteExec ["titleText", _x];
- [[],{
- for [{_i=0}, {_i<5}, {_i=_i+1}] do
- {
- _i enableChannel false;
- };
- }] remoteExec ["spawn", _x];
- };
- } forEach allPlayers;
- };
- JAM_fnc_unmutePlayer =
- {
- params ["_playerName"];
- _playerName = _this select 0;
- {
- if ( ( name _x ) == _playerName ) then
- {
- _textNotif = format ["JAM: Un-muting %1...", (name _x)];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _x setVariable ["BIS_noCoreConversations", false];
- _x disableConversation false;
- [["<t color='#ff0000' size='2'>ADMIN MESSAGE:<br/><t color='#000FFF' size='1'>You have been un-muted [chat, VoN]", "PLAIN", 3, true, true]] remoteExec ["titleText", _x];
- [[],{
- for [{_i=0}, {_i<5}, {_i=_i+1}] do
- {
- _i enableChannel true;
- };
- }] remoteExec ["spawn", _x];
- };
- } forEach allPlayers;
- };
- JAM_fnc_autoKickPlayer =
- {
- nameOfCunt = _this select 0;
- comment "identify target";
- {
- if ((name _x) == nameOfCunt) then
- {
- banTarget = _x;
- };
- } forEach allPlayers;
- comment "create ban function";
- JAM_banThisCunt = {
- banTarget = _this select 0;
- comment "do not run if there is no target";
- comment "add this player steam ID to banList array";
- JAM_banList pushBackUnique (getPlayerUID banTarget);
- comment "default ban reason";
- if (isNil "banReason") then
- {
- banReason = "cunt";
- };
- comment "create & run message with unique id of banTarget";
- [[banReason],{
- banReason = _this select 0;
- comment "TIMED BAN MESSAGE";
- titleText [("BAN REASON: " + banReason + "<br/><t color='#ff0000' size='5'>YOU HAVE BEEN BANNED!</t><br/>Courtesy of J-WoLFs Admin Menu,<br/>you will now be kicked and unable to join back."), "BLACK", -1, true, true];
- disableUserInput true;
- sleep 5;
- comment "automatically make admin kick the player, thus effectively banning him";
- nameOfCunt = name player;
- steamIDofCunt = getPlayerUID player;
- [[nameOfCunt, steamIDofCunt],{
- _nameOfCunt = _this select 0;
- _UIDofCunt = _this select 1;
- BANkickCommand = format ["#kick %1", _nameOfCunt];
- BANtextNotif = format ['JAM: Player %1 has been auto-kicked because he is banned. STEAM ID: %2', _nameOfCunt, _UIDofCunt];
- disableSerialization;
- d_autoKicker = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- _mouseDetection3 = d_autoKicker ctrlCreate ["RscButton", 7777];
- _mouseDetection3 ctrlSetBackgroundColor [0,0,0,0];
- _mouseDetection3 ctrlSetPosition [-0.000156274 * safezoneW + safezoneX,-0.00599999 * safezoneH + safezoneY,1.00547 * safezoneW,1.023 * safezoneH];
- _mouseDetection3 ctrladdEventHandler ["MouseMoving",
- "
- serverCommand BANkickCommand;
- d_autoKicker closeDisplay 0;
- BANtextNotif remoteExec ['systemChat',0];
- "];
- _mouseDetection3 ctrlCommit 0;
- }] remoteExec ["spawn", remoteExecutedOwner];
- }] remoteExec ["spawn", banTarget, str (getPlayerUID banTarget)];
- };
- comment "enter ban reason through GUI";
- disableSerialization;
- d_banReason = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- ctrl_GUItitle = d_banReason ctrlCreate ["RscText", 6000];
- ctrl_GUItitle ctrlSetText "JAM: Please enter the reason for banning player.";
- ctrl_GUItitle ctrlSetPosition [0.407187 * safezoneW + safezoneX,0.39 * safezoneH + safezoneY,0.185625 * safezoneW,0.022 * safezoneH];
- ctrl_GUItitle ctrlSetBackgroundColor [-1,-1,-1,1];
- ctrl_GUItitle ctrlCommit 0;
- ctrl_banReason = d_banReason ctrlCreate ["RscEdit", 6001];
- ctrl_banReason ctrlSetPosition [0.407187 * safezoneW + safezoneX,0.423 * safezoneH + safezoneY,0.185625 * safezoneW,0.055 * safezoneH];
- ctrl_banReason ctrlSetBackgroundColor [-1,-1,-1,0.75];
- ctrl_banReason ctrlCommit 0;
- ctrl_GUIban = d_banReason ctrlCreate ["RscButtonMenu", 6002];
- ctrl_GUIban ctrlSetText "BAN";
- ctrl_GUIban ctrlSetPosition [0.407187 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
- ctrl_GUIban ctrladdEventHandler ["ButtonClick",
- "
- banReason = ctrlText ctrl_banReason;
- _textNotif = format ['JAM: Banning player %1...', nameOfCunt];
- cutText [_textNotif, 'PLAIN DOWN', 0, true, false];
- [banTarget] spawn JAM_banThisCunt;
- d_banReason closeDisplay 0;
- "];
- ctrl_GUIban ctrlCommit 0;
- ctrl_GUIcancel = d_banReason ctrlCreate ["RscButtonMenu", 6003];
- ctrl_GUIcancel ctrlSetText "CANCEL";
- ctrl_GUIcancel ctrlSetPosition [0.546406 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
- ctrl_GUIcancel ctrladdEventHandler ["ButtonClick",
- "
- d_banReason closeDisplay 0;
- "];
- ctrl_GUIcancel ctrlCommit 0;
- };
- JAM_fnc_experimentalBan =
- {
- params ["_playerName"];
- _playerName = _this select 0;
- {
- if ( ( name _x ) == _playerName ) then
- {
- _textNotif = "JAM: Banning player, " + _playerName + "...";
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- [[( name _x )],{
- hint format ["You are now being banned, %1.",(_this select 0)];
- disableSerialization;
- _banDisplay = (findDisplay 46) createDisplay "RscDisplayEmpty";
- _mouseDetection = _banDisplay ctrlCreate ["RscButton", 9999];
- _mouseDetection ctrlSetBackgroundColor [0,0,0,0];
- _mouseDetection ctrlSetPosition [-0.000156274 * safezoneW + safezoneX,-0.00599999 * safezoneH + safezoneY,1.00547 * safezoneW,1.023 * safezoneH];
- _mouseDetection ctrladdEventHandler ["MouseMoving",
- "
- serverCommand format ['#Vote Admin %1', (_this select 0)];
- comment 'rapid vote admin leads to restriction ban';
- comment 'player will not be able to join until restart';
- "];
- _mouseDetection ctrlCommit 0;
- }] remoteExec ["spawn",_x];
- };
- } forEach allPlayers;
- };
- JAM_fnc_blacklistPlayer =
- {
- params["_playerName"];
- _playerName = _this select 0;
- {
- if (_playerName find (name _x) > -1) then {
- JAM_blacklist pushBackUnique str (getPlayerUID _x);
- };
- } forEach allPlayers;
- _textNotif = format ["JAM: Adding %1 to the blacklist by SteamID...", _playerName];
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- };
- JAM_fnc_freezePlayer =
- {
- params["_playerName"];
- _playerName = _this select 0;
- if (_playerName == JAM_myName) exitWith
- {
- hint "JAM: Do not freeze yourself, retard."
- };
- {
- if ( ( name _x ) == _playerName ) then
- {
- [[( name _x )],
- {
- if (!userInputDisabled) then
- {
- _textNotif = "JAM: Freezing player, " + (_this select 0) + "...";
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- disableUserInput true;
- hint format ["%1, your input has been disabled by the server Administrator. Standby for unfreeze. If the problem persists, simply ALT+F4.",(_this select 0)];
- }
- else
- {
- _textNotif = "JAM: Un-freezing player, " + (_this select 0) + "...";
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- disableUserInput false;
- hint format ["%1, your input has been re-enabled by the server Administrator.",(_this select 0)];
- };
- }] remoteExec ["spawn",_x];
- };
- } forEach allPlayers;
- };
- JAM_fnc_TP_selfToPlayer =
- {
- params["_selectedPlayerName"];
- _selectedPlayerName = _this select 0;
- _startPos = getPos player;
- {
- if ((name _x) == (_selectedPlayerName)) then
- {
- (vehicle player) setPos (getPos _x);
- comment "if player is in vehicle, move in";
- if ((vehicle _x != _x) && (vehicle player == player)) then
- {
- player moveInAny (vehicle _x);
- };
- _endPos = getPos _x;
- };
- } forEach allPlayers;
- _textNotif = format ["JAM: Teleporting to %1...", _selectedPlayerName];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- (format ["JAM: Player %1 has teleported to %2.",JAM_myName,_selectedPlayerName]) remoteExec ["systemChat",0];
- };
- JAM_fnc_TP_playerToSelf =
- {
- params["_selectedPlayerName"];
- _selectedPlayerName = _this select 0;
- {
- if ((name _x) == (_selectedPlayerName)) then
- {
- _textNotif = format ["JAM: Teleporting to %1...", JAM_myName];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _startPos = getPos _x;
- moveOut _x;
- (vehicle _x) setPos (getPos player);
- comment "if you are in vehicle, move player in";
- if ((vehicle _x == _x) && (vehicle player != player)) then
- {
- _x moveInAny (vehicle player);
- };
- _endPos = getPos _x;
- };
- } forEach allPlayers;
- (format ["JAM: Player %1 has teleported to %2.",_selectedPlayerName,JAM_myName]) remoteExec ["systemChat",0];
- };
- JAM_fnc_TP_allToSelf =
- {
- _textNotif = format ["JAM: Teleporting all players to %1...", JAM_myName];
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- _countPlayers = 0;
- {
- moveOut _x;
- _x setPos (getPos player);
- _countPlayers = _countPlayers + 1;
- (format ["JAM: Player %1 has teleported to %2.",(name _x), JAM_myName]) remoteExec ["systemChat",0];
- } forEach allPlayers - AllCurators;
- Hint format ["JAM: %1 players have been teleported to your coordinates.", _countPlayers];
- };
- JAM_fnc_assignGameMod =
- {
- params["_specifiedPlayerName"];
- _specifiedPlayerName = _this select 0;
- _textNotif = format ["JAM: Assigning Game Moderator to %1...", _specifiedPlayerName];
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- {
- if ((name _x) == _specifiedPlayerName) then
- {
- VVN_x2 = (vehicleVarName _x);
- (format ["JAM: Player %1 has been selected as the new Zeus (Game Moderator Slot).",(name _x)]) remoteExec ["systemChat",0];
- [["<t color='#42D6FC'>YOU ARE NOW ZEUS (Game Moderator)</t><br/><t color='#58D68D'>-Press [Y] to open/close curator interface-</t>", "PLAIN", -1, true, true]] remoteExec ["titleText", _x];
- };
- } forEach allPlayers;
- _text = "[[],{unassignCurator bis_curator_1;}] remoteExec ['spawn',2];[[],{" + VVN_x2 + " assignCurator bis_curator_1;}] remoteExec ['spawn',2];";
- _code = compile _text;
- _result = [] call _code;
- };
- JAM_fnc_assignGameMaster =
- {
- params["_specifiedPlayerName"];
- _specifiedPlayerName = _this select 0;
- _textNotif = format ["JAM: Assigning Game Master to %1...", _specifiedPlayerName];
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- {
- if ((name _x) == _specifiedPlayerName) then
- {
- VVN_x1 = (vehicleVarName _x);
- (format ["JAM: Player %1 has been selected as the new Zeus (Game Master Slot).",(name _x)]) remoteExec ["systemChat",0];
- [["<t color='#42D6FC'>YOU ARE NOW ZEUS (Game Master)</t><br/><t color='#58D68D'>-Press [Y] to open/close curator interface-</t>", "PLAIN", -1, true, true]] remoteExec ["titleText", _x];
- };
- } forEach allPlayers;
- _text = "[[],{unassignCurator bis_curator;}] remoteExec ['spawn',2];[[],{" + VVN_x1 + " assignCurator bis_curator;}] remoteExec ['spawn',2];";
- _code = compile _text;
- _result = [] call _code;
- };
- JAM_fnc_transferAdmin =
- {
- newAdmin = _this select 0;
- _textNotif = format ["JAM: Transferring administration to %1...", newAdmin];
- [[_textNotif, "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- [[newAdmin],
- {
- newAdmin = _this select 0;
- disableSerialization;
- d_adminTransfer = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- _mouseDetection2 = d_adminTransfer ctrlCreate ["RscButton", 8888];
- _mouseDetection2 ctrlSetPosition [-0.000156274 * safezoneW + safezoneX,-0.00599999 * safezoneH + safezoneY,1.00547 * safezoneW,1.023 * safezoneH];
- _mouseDetection2 ctrladdEventHandler ["MouseMoving",
- "
- serverCommand format ['#Vote Admin %1', newAdmin];
- d_adminTransfer closeDisplay 0;
- "];
- _mouseDetection2 ctrlSetBackgroundColor [0,0,0,0];
- _mouseDetection2 ctrlCommit 0;
- }] remoteExec ["spawn",-2];
- (format ["JAM: Administration has been passed from %1 to %2.",JAM_myName,_specifiedPlayerName]) remoteExec ["systemChat",0];
- };
- JAM_fnc_execLocal =
- {
- _text = ctrlText console_inputBox;
- if(_text isEqualTo "") exitWith
- {
- hint "No code to execute.";
- };
- _code = compile _text;
- _result = "";
- _result = [] call _code;
- };
- JAM_fnc_execGlobal =
- {
- _text = ctrlText console_inputBox;
- if (_text isEqualTo "") exitWith
- {
- hint "No code to execute.";
- };
- _code = compile _text;
- _result = _code remoteExec ["bis_fnc_call", 0, false];
- };
- JAM_fnc_execServer =
- {
- _text = ctrlText console_inputBox;
- if (_text isEqualTo "") exitWith
- {
- hint "JAM: Console Error: No code to execute.";
- };
- _code = compile _text;
- _result = _code remoteExec ["bis_fnc_call", 2, false];
- };
- JAM_fnc_execPlayer =
- {
- params ["_selectedPlayer", "_specifiedName", "_specifiedUID"];
- _selectedPlayer = _this select 0;
- _specifiedName = _this select 1;
- _specifiedUID = _this select 2;
- _text = ctrlText console_inputBox;
- if (_text isEqualTo "") exitWith
- {
- hint "JAM: Console Error: No code to execute.";
- };
- consoleCode1 = compile _text;
- if (!tNameSelected && !tUIDSelected) then
- {
- {
- if (name _x == _selectedPlayer) then
- {
- _textNotif = format ["JAM: Executing code on %1s client...", (name _x)];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _result = consoleCode1 remoteExec ["bis_fnc_call", _x, false];
- };
- } forEach allPlayers;
- };
- if (tNameSelected) then
- {
- {
- if (name _x == _specifiedName) then
- {
- _textNotif = format ["JAM: Executing code on %1s client...", (name _x)];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _result = consoleCode1 remoteExec ["bis_fnc_call", _x, false];
- };
- } forEach allPlayers;
- };
- if (tUIDSelected) then
- {
- {
- if (str (getPlayerUID _x) == _specifiedUID) then
- {
- _textNotif = format ["JAM: Executing code on %1s client...", (name _x)];
- cutText [_textNotif, "PLAIN DOWN", 0, true, false];
- _result = consoleCode1 remoteExec ["bis_fnc_call", _x, false];
- };
- } forEach allPlayers;
- };
- };
- JAM_fnc_giveArsenal =
- {
- params["_playerName"];
- _playerName = _this select 0;
- {
- if ((name _x) == _playerName) then
- {
- [["Arsenal_Scroll_Option"],
- {
- action_openArsenal = player addAction ["JAM: <t color='#42D6FC'>Open Arsenal (1x)</t>",
- {
- ["Preload"] call BIS_fnc_arsenal;
- ["Open",true] spawn BIS_fnc_arsenal;
- player removeAction action_openArsenal;
- }];
- }] remoteExec ["spawn",_x];
- };
- } forEach allPlayers;
- };
- comment "----------------------------------------------------------";
- comment "-------------------GLOBAL FUNCTIONS-----------------------";
- comment "----------------------------------------------------------";
- JAM_gui_LoadVeh =
- {
- _kind = _this select 0;
- comment "onLBSelChanged = [] spawn JAM_gui_VehInfo;";
- comment "colorDisabled[] = {1,1,1,0.25};";
- comment "colorScrollbar[] = {1,0,0,0};";
- comment "colorSelect[] = {1,1,1,1};";
- comment "colorSelect2[] = {1,1,1,1};";
- comment "colorSelectBackground[] = {0,0,0,0.5};";
- comment "colorSelectBackground2[] = {0.667,0.714,0.635,1};";
- comment "shadow = 0.75;";
- lbCLear fSM_RscVehList;
- _count = count (configFile >> "cfgVehicles");
- for "_x" from 0 to (_count-1) do
- {
- _veh = ((configFile >> "cfgVehicles") select _x);
- if (isClass _veh) then
- {
- if (getNumber (_veh >> "scope") == 2) then
- {
- _class = configName _veh;
- if (_class isKindOf _kind) then
- {
- _index = fSM_RscVehList lbAdd(getText(configFile >> "cfgVehicles" >> _class>> "displayName"));
- fSM_RscVehList lbSetData[(lbSize fSM_RscVehList)-1, _class];
- _picture = (getText(configFile >> "cfgVehicles" >> _class >> "picture"));
- fSM_RscVehList lbSetPicture[(lbSize fSM_RscVehList)-1,_picture];
- };
- };
- };
- };
- };
- JAM_gui_VehInfo =
- {
- private ["_weapArray","_class","_crewCount","_model","_maxSpeed","_invSpace","_armor"];
- _id = lbCurSel fSM_RscVehList;
- _class = fSM_RscVehList lbData _id;
- _weapons = [];
- _weaponsClass = getArray(configFile >> "cfgVehicles" >> _class >> "weapons");
- {
- _name = getText (configFile >> "cfgWeapons" >> _x >> "displayName");
- _weapons = _weapons + [ _name];
- } forEach _weaponsClass;
- if (isClass (configFile >> "cfgVehicles" >> _class >> "Turrets" >> "M2_Turret")) then
- {
- _weapArray = getArray(configFile >> "cfgVehicles" >> _class >> "Turrets" >> "M2_Turret" >> "weapons");
- }
- else
- {
- _weapArray = getArray(configFile >> "cfgVehicles" >> _class >> "Turrets" >> "MainTurret" >> "weapons");
- _weapArray = _weapArray + (getArray(configFile >> "cfgVehicles" >> _class >> "Turrets" >> "FrontTurret" >> "weapons"));
- _weapArray = _weapArray + (getArray(configFile >> "cfgVehicles" >> _class >> "Turrets" >> "RearTurret" >> "weapons"));
- };
- {
- _name = getText (configFile >> "cfgWeapons" >> _x >> "displayName");
- _weapons = _weapons + [ _name];
- } forEach _weapArray;
- _crewCount = [_class,true] call BIS_fnc_crewCount;
- _model = getText(configFile >> "cfgVehicles" >> _class >> "model");
- _maxSpeed = getNumber(configFile >> "cfgVehicles" >> _class >> "maxSpeed");
- _invSpace = getNumber(configFile >> "cfgVehicles" >> _class >> "maximumLoad");
- _armor = getNumber(configFile >> "cfgVehicles" >> _class >> "armor");
- comment "shadow = 0.75;";
- comment "size = 0.037;";
- _separator = parseText "-------------------------------------------------------------------------------------";
- fSM_vehStatText ctrlSetStructuredText parseText format
- ["<t align='left' shadow='1' shadowColor='#75000000'>Weapons:</t><br/>
- <t align='left' shadow='1' shadowColor='#75000000'>%1</t>
- <t align='left' shadow='1' shadowColor='#75000000'>%6</t><br/>
- <t align='left' shadow='1' shadowColor='#75000000'>Passengers:</t> <t align='right' shadow='1' shadowColor='#75000000'>%2</t>
- <t align='left' shadow='1' shadowColor='#75000000'>%6</t><br/>
- <t align='left' shadow='1' shadowColor='#75000000'>Max Speed:</t> <t align='right' shadow='1' shadowColor='#75000000'>%3</t>
- <t align='left' shadow='1' shadowColor='#75000000'>%6</t><br/>
- <t align='left' shadow='1' shadowColor='#75000000'>Inventory:</t> <t align='right' shadow='1' shadowColor='#75000000'>%4</t>
- <t align='left' shadow='1' shadowColor='#75000000'>%6</t><br/>
- <t align='left' shadow='1' shadowColor='#75000000'>Armor:</t> <t align='right' shadow='1' shadowColor='#75000000'>%5</t>
- <t align='left' shadow='1' shadowColor='#75000000'>%6</t><br/>",_weapons,_crewCount,_maxSpeed,_invSpace,_armor, _separator];
- };
- JAM_gui_VehCreate =
- {
- _idVeh = lbCurSel fSM_RscVehList;
- _classVeh = fSM_RscVehList lbData _idVeh;
- _emptyPos = position player findEmptyPosition [5,50,_classVeh];
- if (count _emptyPos == 0) then
- {
- hint "JAM: Error - Either vehicle cannot be spawned due to a lack of space, or you have not selected anything.";
- }
- else
- {
- _veh = createVehicle [_classVeh, _emptyPos, [], 0,""];
- player moveInAny _veh;
- };
- JAM_d_fullSpawnMenu closeDisplay 0;
- };
- JAM_fnc_disableFatigueGlobal =
- {
- if (isNil "fatigueTgglGlobal") then {fatigueTgglGlobal = 1;};
- if (fatigueTgglGlobal == 1) then {
- comment "init start";
- [["InfStam"],
- {
- JAM_toggle_cardioGlobal = {
- if (isNil 'cardioTggleGlobal') then {cardioTggleGlobal = 1};
- if (cardioTggleGlobal == 1) then {
- cardioTggleGlobal = 0;
- titleText ["<t color='#42D6FC'>Infinite Stamina </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- player enableFatigue false;
- EH_noFatigue = player addEventHandler ["Respawn", {
- player enableFatigue false;
- }];
- Hint "JAM: EH added (Fatigue Disabled)."
- } else {
- cardioTggleGlobal = 1;
- player enableFatigue true;
- titleText ["<t color='#42D6FC'>Infinite Stamina </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- player removeEventHandler ["Respawn", EH_noFatigue];
- Hint "JAM: EH removed (Fatigue Enabled)."
- };
- };
- [] call JAM_toggle_cardioGlobal;
- }] remoteExec ["spawn", 0, "JAM_CardioJIP"];
- comment "init done";
- fatigueTgglGlobal = 0;
- } else {
- comment "toggle off";
- [[],{
- [] call JAM_toggle_cardioGlobal;
- }] remoteExec ["spawn", 0];
- comment "over-write JIP message";
- [[],{comment "do nothing";}] remoteExec ["spawn",0,"JAM_CardioJIP"];
- fatigueTgglGlobal = 1;
- };
- };
- JAM_fnc_show3DPlayerNames =
- {
- if (isNil "shw3DPlrNmTggl") then {shw3DPlrNmTggl = 1;};
- if (shw3DPlrNmTggl == 1) then {
- comment "init start";
- [["shw3DPlrNmJIP"],
- {
- JAM_fini_fnc_compile3 =
- {
- (with missionNamespace do compile (_this select 0));
- };
- JAM_toggle_allPlayers3DESP = {
- if (isNil 'JAM_tggl_Glbl3DESP') then {JAM_tggl_Glbl3DESP = 1};
- if (JAM_tggl_Glbl3DESP == 1) then {
- JAM_tggl_Glbl3DESP = 0;
- titleText ["<t color='#42D6FC'>ShowPlayerNames </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [("
- MissionEH_3DESP = addMissionEventHandler ['Draw3D',
- {
- {
- if (((player distance _x) < 1500) && (_x != player)) then {
- drawIcon3D ['', [1, 1, 1, 1], [visiblePosition _x select 0, visiblePosition _x select 1, (getPosATL _x select 2) + 2.3], 1, 1, 45, (format ['%1', name _x]), 2, 0.025, 'PuristaMedium', 'center', false];
- };
- } forEach allPlayers;
- }];
- ")] call jam_fini_fnc_compile3;
- } else {
- JAM_tggl_Glbl3DESP = 1;
- titleText ["<t color='#42D6FC'>ShowPlayerNames </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [("removeMissionEventHandler['Draw3D',MissionEH_3DESP];")] call jam_fini_fnc_compile;
- };
- };
- [] call JAM_toggle_allPlayers3DESP;
- }] remoteExec ["spawn", 0, "shw3DPlrNmJIP"];
- comment "init done";
- shw3DPlrNmTggl = 0;
- } else {
- comment "toggle off";
- [[],{
- [] call JAM_toggle_allPlayers3DESP;
- }] remoteExec ["spawn", 0];
- comment "over-write JIP message";
- [[],{comment "do nothing";}] remoteExec ["spawn",0,"shw3DPlrNmJIP"];
- shw3DPlrNmTggl = 1;
- };
- };
- JAM_fnc_showPlayersOnMap =
- {
- if (isNil "shwPlyrsOnMapTggl") then {shwPlyrsOnMapTggl = 1;};
- if (shwPlyrsOnMapTggl == 1) then {
- comment "init start";
- [["ShwPlyrsOnMapJIP"],
- {
- JAM_fini_fnc_plrs2 =
- {
- _players = [];
- _all = player nearEntities [['Man','Land','Air','Ship'], 25000];
- {
- if ((_x isKindOf "Man") && (getPlayerUID _x != "")) then {
- _players pushBack _x;
- } else {
- if ((count crew _x) != 0) then {
- for "_i" from 0 to (count crew _x)-1 do {
- _l = (crew _x) select _i;
- if (getPlayerUID _l != "") then {
- _players pushBack _l;
- };
- };
- };
- };
- } forEach (_all - allCurators);
- _players
- };
- JAM_fini_fnc_compile2 =
- {
- (with missionNamespace do compile (_this select 0));
- };
- jam_mesp = {
- if (isNil "mespTggle") then {mespTggle = 1};
- if (mespTggle == 1) then {
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAPESP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- mespTggle = 0;
- } else {
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAPESP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- mespTggle = 1;
- };
- [] spawn {
- [("
- while {mespTggle == 0} do {
- _units = call JAM_fini_fnc_plrs2;
- _unitCount = count _units;
- for '_i' from 0 to (_unitCount-1) do {
- _unit = _units select _i;
- if (alive _unit) then {
- deleteMarkerLocal('jam_plr' + (str _i));
- _namePlayer = name _unit;
- _mark_player = 'jam_plr' + (str _i);
- _mark_player = createMarkerLocal[_mark_player, getPos _unit];
- _mark_player setMarkerTypeLocal 'wayPoint';
- _mark_player setMarkerPosLocal(getPos _unit);
- _mark_player setMarkerColorLocal 'ColorBlue';
- _mark_player setMarkerTextLocal format['%1 - %2', _namePlayer, round(player distance _unit)];
- };
- };
- sleep 0.5;
- };
- for '_i' from 0 to 500 do {
- deleteMarkerLocal('jam_plr' + (str _i));
- };
- ")] call JAM_fini_fnc_compile2;
- };
- };
- [] call jam_mesp;
- }] remoteExec ["spawn", 0, "mapEsp"];
- comment "init done";
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAP-ESP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- shwPlyrsOnMapTggl = 0;
- } else {
- comment "toggle off";
- [[],{
- [] call jam_mesp;
- }] remoteExec ["spawn", 0];
- comment "over-write JIP message";
- [[],{comment "do nothing";}] remoteExec ["spawn",0,"mapEsp"];
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAP-ESP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- shwPlyrsOnMapTggl = 1;
- };
- };
- JAM_open_utils =
- {
- hint "nothing to see here";
- };
- JAM_toggle_blackListing =
- {
- if (!JAM_blackListEnabled) then {
- JAM_blackListEnabled = true;
- hint "JAM: Blacklist Enabled.";
- } else {
- JAM_blackListEnabled = false;
- hint "JAM: Blacklist Disabled.";
- };
- };
- JAM_fnc_clearDead =
- {
- [["JAM: Deleting dead objects...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- _countUpTheDead = 0;
- _deadObjects = 0;
- { deleteVehicle _x; _deadObjects = _deadObjects + 1; } forEach allDead;
- { deleteVehicle _x; _countUpTheDead = _countUpTheDead + 1; } forEach allDeadMen;
- (format ["A grim total of %1 dead objects have been removed from the battlefield. Of those, %2 were soldiers.", _deadObjects, _countUpTheDead]) remoteExec ["hint", 0];
- };
- JAM_fnc_AASJIP =
- {
- if (isNil "AASJIPTggl") then {AASJIPTggl = 1};
- if (AASJIPTggl == 1) then {
- comment "toggle on";
- [["JAM: Applying respawn-arsenal (JIP)...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- [[],{
- EH_AASJIP = player addEventHandler ["Respawn", {
- [] spawn {
- action_openArsenal = player addAction ["JAM: <t color='#42D6FC'>Open Arsenal (1x)</t>",
- {
- ["Preload"] call BIS_fnc_arsenal;
- ["Open",true] spawn BIS_fnc_arsenal;
- titleText ["<t color='#42D6FC'>Arsenal Script <t color='#FFFFFF' size='2'>by</t><t color='#42D6FC'> J-WoLF</t><br/><t color='#58D68D'>-Press ESC to exit Arsenal-</t>", "PLAIN DOWN", -1, true, true];
- player removeAction action_openArsenal;
- }];
- sleep 20;
- player removeAction action_openArsenal;
- };
- }];
- }] remoteExec ["spawn",0,"AASJIP"];
- comment "init done";
- playSound "Hint";
- titleText ["<t color='#42D6FC'>AAS-JIP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN", -1, true, true];
- AASJIPTggl = 0;
- } else {
- comment "toggle off";
- [["JAM: Removing respawn-arsenal (JIP)...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- [[],{
- player removeEventHandler ["Respawn", EH_AASJIP];
- player removeAction action_openArsenal;
- }] remoteExec ["spawn",0];
- [[],{comment "do nothing";}] remoteExec ["spawn",0,"AASJIP"];
- comment "init done";
- playSound "Hint";
- titleText ["<t color='#42D6FC'>AAS-JIP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN", -1, true, true];
- AASJIPTggl = 1;
- };
- };
- JAM_fnc_updateZeusObj =
- {
- [["JAM: Adding new objects to Zeus interface...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", player];
- [["JAM: Adding new objects to Zeus interface...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", allCurators];
- [[],{
- {
- _x addCuratorEditableObjects [nearestObjects [(position _x), ["All"], 35000],true];
- _x addCuratorEditableObjects [allUnits,true];
- _x addCuratorEditableObjects [vehicles,true];
- _x addCuratorEditableObjects [allPlayers,true];
- } forEach allCurators;
- }] remoteExec ["spawn", 2];
- Hint "JAM: Zeus interface updated with new objects.";
- };
- JAM_fnc_viewDistance =
- {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; [] spawn JAM_open_serverMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>12km</t>", {12000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>6km</t>", {6000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>4km</t>", {4000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>3km</t>", {3000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>2km</t>", {2000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>VD: </t><t color='#82E0AA'>1km</t>", {1000 remoteExec ["setViewDistance",0,"jam_VD"];}];
- hint "JAM: Scroll wheel to set view distance.";
- };
- JAM_fnc_respawnAll =
- {
- [["JAM: Re-spawning all players...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- _countPlayers = 0;
- { forceRespawn _x; _countPlayers = (_countPlayers + 1); } forEach (allPlayers - allCurators);
- Hint format ["[%1] Players have been forced to respawn.", _countPlayers];
- };
- JAM_fnc_deleteAll =
- {
- [["JAM: Deleting all objects on server...", "PLAIN DOWN", 0, true, false]] remoteExec ["cutText", 0];
- _countObjects = 0;
- {
- if (!(typeOf _x == "ModuleCuratorAddEditingAreaPlayers_F") && !(typeOf _x == "ModuleCurator_F") && !(typeOf _x == "ModuleMPTypeGameMaster_F")) then {
- deleteVehicle _x; _countObjects = _countObjects + 1;
- };
- } forEach nearestObjects [player, ["all"], 35000] + (allUnits - allPlayers);
- Hint format ["[%1] objects have been deleted.", _countObjects];
- };
- JAM_fnc_3DTP =
- {
- (vehicle player) setPos (screenToWorld [0.5, 0.5]);
- };
- JAM_open_arsenalMenu =
- {
- disableSerialization;
- d_arsenalMenu = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true; comment "Fixes Chat Bug";
- ctrl_arsbckrndMain = d_arsenalMenu ctrlCreate ["RscText", 8765];
- ctrl_arsbckrndMain ctrlSetPosition [0.443281 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.118594 * safezoneW,0.132 * safezoneH];
- ctrl_arsbckrndMain ctrlSetBackgroundColor [-1,-1,-1,0.5];
- ctrl_arsbckrndMain ctrlCommit 0;
- ctrl_background2 = d_arsenalMenu ctrlCreate ["RscText", 8766];
- ctrl_background2 ctrlSetPosition [0.443281 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.0928125 * safezoneW,0.033 * safezoneH];
- ctrl_background2 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- ctrl_background2 ctrlCommit 0;
- ctrl_background3 = d_arsenalMenu ctrlCreate ["RscText", 8767];
- ctrl_background3 ctrlSetPosition [0.469062 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.0670312 * safezoneW,0.033 * safezoneH];
- ctrl_background3 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- ctrl_background3 ctrlCommit 0;
- ctrl_background4 = d_arsenalMenu ctrlCreate ["RscText", 8768];
- ctrl_background4 ctrlSetPosition [0.443281 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.118594 * safezoneW,0.022 * safezoneH];
- ctrl_background4 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- ctrl_background4 ctrlCommit 0;
- ctrl_cancelClose = d_arsenalMenu ctrlCreate ["RscButtonMenu", 8769];
- ctrl_cancelClose ctrlSetText "cursorTarget";
- ctrl_cancelClose ctrlSetPosition [0.479375 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
- ctrl_cancelClose ctrladdEventHandler ["ButtonClick", {
- d_arsenalMenu closeDisplay 0;
- onEachFrame {
- if (name cursorTarget == "Error: No unit") then
- {
- drawIcon3D ['A3\ui_f_curator\Data\CfgCurator\entity_disabled_ca.paa', [0,1,1,1], [visiblePosition cursorTarget select 0, visiblePosition cursorTarget select 1, (getPosATL cursorTarget select 2) + 1], 1, 1, 0, typeOf cursorTarget, 2, 0.05, 'PuristaMedium', 'center', false];
- }
- else
- {
- drawIcon3D ['A3\ui_f_curator\Data\CfgCurator\entity_disabled_ca.paa', [0,1,1,1], [visiblePosition cursorTarget select 0, visiblePosition cursorTarget select 1, (getPosATL cursorTarget select 2) + 1], 1, 1, 0, name cursorTarget, 2, 0.05, 'PuristaMedium', 'center', false];
- };
- };
- [] spawn {
- waitUntil {!alive player};
- onEachFrame {};
- };
- removeAllActions player;
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>[+]Arsenal</t>", {
- ["AmmoboxInit",[cursorTarget,true]] call BIS_fnc_arsenal;
- Hint format ["[%1] (%2) is now a full arsenal.", (name cursorTarget), (typeOf cursorTarget)];
- }];
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {
- onEachFrame {};
- removeAllActions player;
- }];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {
- onEachFrame {};
- removeAllActions player;
- [] spawn JAM_open_arsenalMenu;
- }];
- hint "JAM: Arsenal scroll menu activated.";
- }];
- ctrl_cancelClose ctrlCommit 0;
- ctrl_openarsbtn = d_arsenalMenu ctrlCreate ["RscShortcutButton", 8770];
- ctrl_openarsbtn ctrlSetText "OPEN";
- ctrl_openarsbtn ctrlSetPosition [0.448438 * safezoneW + safezoneX,0.423 * safezoneH + safezoneY,0.0515625 * safezoneW,0.055 * safezoneH];
- ctrl_openarsbtn ctrladdEventHandler ["ButtonClick", {[] spawn {
- ["Preload"] call BIS_fnc_arsenal;
- d_arsenalMenu closeDisplay 0;
- ["Open",true] spawn BIS_fnc_arsenal;
- };}];
- ctrl_openarsbtn ctrlCommit 0;
- ctrl_spawnarsbtn = d_arsenalMenu ctrlCreate ["RscShortcutButton", 8771];
- ctrl_spawnarsbtn ctrlSetText "SPAWN";
- ctrl_spawnarsbtn ctrlSetPosition [0.505156 * safezoneW + safezoneX,0.423 * safezoneH + safezoneY,0.0515625 * safezoneW,0.055 * safezoneH];
- ctrl_spawnarsbtn ctrladdEventHandler ["ButtonClick", {d_arsenalMenu closeDisplay 0;
- [] spawn {
- player playMove 'ainvpercmstpsraswrfldnon_putdown_amovpercmstpsraswrfldnon';
- _arsenalLocation = createLocation [ "ViewPoint" , getPos player, 10, 10];
- _flagpole = createVehicle ["Flag_ARMEX_F",getPos player,[],0,"NONE"];
- _flagpole setDir direction player;
- _box = createVehicle ["B_supplyCrate_F",getPos player,[],0,"NONE"];
- _arsenalLocation attachObject _box;
- ["AmmoboxInit",[_box,true]] call BIS_fnc_arsenal;
- _box allowDamage false;
- _flagpole allowDamage false;
- _box setDir direction player;
- _box attachTo [_flagpole, [-0.1,-0.4,-3.2]];
- _arsenalPosition = mapGridPosition _box;
- (format ["____________High Command____________\nArsenal supply box has been airdropped.\n____________GRID: %1____________", _arsenalPosition]) remoteExec ["hint", 0];
- _arsenalLocation setText " Arsenal";
- };
- }];
- ctrl_spawnarsbtn ctrlCommit 0;
- ctrl_menuTitle = d_arsenalMenu ctrlCreate ["RscText", 8772];
- ctrl_menuTitle ctrlSetText "JAM Arsenal Menu ";
- ctrl_menuTitle ctrlSetPosition [0.443281 * safezoneW + safezoneX,0.39 * safezoneH + safezoneY,0.118594 * safezoneW,0.011 * safezoneH];
- ctrl_menuTitle ctrlSetBackgroundColor [-1,-1,-1,0];
- ctrl_menuTitle ctrlCommit 0;
- ctrl_xClose = d_arsenalMenu ctrlCreate ["RscButton", 8773];
- ctrl_xClose ctrlSetText "X";
- ctrl_xClose ctrlSetPosition [0.536094 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.0257812 * safezoneW,0.033 * safezoneH];
- ctrl_xClose ctrladdEventHandler ["ButtonClick", {
- d_arsenalMenu closeDisplay 0;
- }];
- ctrl_xClose ctrlCommit 0;
- };
- JAM_fini_fnc_plrs =
- {
- _players = [];
- _all = player nearEntities [['Man','Land','Air','Ship'], 25000];
- {
- if ((_x isKindOf "Man") && (getPlayerUID _x != "")) then {
- _players pushBack _x;
- } else {
- if ((count crew _x) != 0) then {
- for "_i" from 0 to (count crew _x)-1 do {
- _l = (crew _x) select _i;
- if (getPlayerUID _l != "") then {
- _players pushBack _l;
- };
- };
- };
- };
- } forEach _all;
- _players
- };
- jam_fini_fnc_hostileAI =
- {
- _hostileai = [];
- {
- if ((_x isKindOf "Man") && (side _x != side player)) then {
- _hostileai pushBack _x;
- } else {
- if ((count crew _x) != 0) then {
- for "_i" from 0 to (count crew _x)-1 do {
- _l = (crew _x) select _i;
- if (side _l != side player) then {
- _hostileai pushBack _l;
- };
- };
- };
- };
- } forEach allUnits - allPlayers;
- _hostileai
- };
- JAM_fini_fnc_compile =
- {
- (with missionNamespace do compile (_this select 0));
- };
- JAM_fnc_unflip =
- {
- params ["_vehicle"];
- _vehicle = _this;
- _pos = getPosATL _vehicle;
- _pos set [2, 7];
- _vehicle setPosATL _pos;
- _vehicle setVectorUp [0,0,1];
- };
- comment "----------------------------------------------------------";
- comment "---------------------MAIN MENU GUI------------------------";
- comment "----------------------------------------------------------";
- JAM_open_mainMenu =
- {
- disableSerialization;
- d_mainMenu = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true; comment "Fixes Chat Bug";
- mainFrame_user = d_mainMenu ctrlCreate ["RscFrame", 7005];
- mainFrame_user ctrlSetText format ["USER: %1", JAM_myName];
- mainFrame_user ctrlSetTextColor JAM_fColor;
- mainFrame_user ctrlSetPosition [0.304062 * safezoneW + safezoneX,0.17 * safezoneH + safezoneY,0.391875 * safezoneW,0.088 * safezoneH];
- mainFrame_user ctrlCommit 0;
- mainFrame_title = d_mainMenu ctrlCreate ["RscStructuredText", 7006];
- mainFrame_title ctrlSetStructuredText parseText "<t color='#00ffffff' shadow='2' size='2' align='center' font='PuristaBold'>J-WoLF's Admin Menu <t font='RobotoCondensed'>V<t color='#E0E0E0'>1.5<t color='#FFFFFF'>A</t>";
- mainFrame_title ctrlSetPosition [0.309219 * safezoneW + safezoneX,0.181 * safezoneH + safezoneY,0.376406 * safezoneW,0.055 * safezoneH];
- mainFrame_title ctrlSetBackgroundColor [0,0,0,0];
- mainFrame_title ctrlCommit 0;
- fadeInTitle1 = [] spawn {
- for [{_i=1}, {_i<9}, {_i=_i+1}] do
- {
- mainFrame_title ctrlSetStructuredText parseText (format ["<t color='#0%1ffffff' shadow='2' size='2' align='center' font='PuristaBold'>J-WoLF's Admin Menu <t font='RobotoCondensed'>V<t color='#E0E0E0'>1.5<t color='#FFFFFF'>A</t>", _i]);
- sleep 0.001;
- };
- };
- fadeInTitle2 = [] spawn {
- waitUntil { scriptDone fadeInTitle1 };
- for [{_i=10}, {_i<101}, {_i=_i+1}] do
- {
- mainFrame_title ctrlSetStructuredText parseText (format ["<t color='#%1ffffff' shadow='2' size='2' align='center' font='PuristaBold'>J-WoLF's Admin Menu <t font='RobotoCondensed'>V<t color='#E0E0E0'>1.5<t color='#FFFFFF'>A</t>", _i]);
- sleep 0.001;
- };
- };
- mainFrame_backgroundLeft = d_mainMenu ctrlCreate ["RscText", 7007];
- mainFrame_backgroundLeft ctrlSetPosition [0.304062 * safezoneW + safezoneX,0.269 * safezoneH + safezoneY,0.108281 * safezoneW,0.341 * safezoneH];
- mainFrame_backgroundLeft ctrlSetBackgroundColor [0,0,0,0.5];
- mainFrame_backgroundLeft ctrlCommit 0;
- mainFrame_backgroundMiddle = d_mainMenu ctrlCreate ["RscText", 7008];
- mainFrame_backgroundMiddle ctrlSetPosition [0.422656 * safezoneW + safezoneX,0.269 * safezoneH + safezoneY,0.154687 * safezoneW,0.341 * safezoneH];
- mainFrame_backgroundMiddle ctrlSetBackgroundColor [0,0,0,0.5];
- mainFrame_backgroundMiddle ctrlCommit 0;
- mainFrame_backgroundRight = d_mainMenu ctrlCreate ["RscText", 7009];
- mainFrame_backgroundRight ctrlSetPosition [0.587656 * safezoneW + safezoneX,0.269 * safezoneH + safezoneY,0.108281 * safezoneW,0.341 * safezoneH];
- mainFrame_backgroundRight ctrlSetBackgroundColor [0,0,0,0.5];
- mainFrame_backgroundRight ctrlCommit 0;
- playerList_title = d_mainMenu ctrlCreate ["RscStructuredText", 7010];
- playerList_title ctrlSetStructuredText parseText "<t align='center'>PLAYER LIST</t>";
- playerList_title ctrlSetPosition [0.304063 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.108281 * safezoneW,0.022 * safezoneH];
- playerList_title ctrlSetBackgroundColor JAM_tColor;
- playerList_title ctrlCommit 0;
- menuSelection_title = d_mainMenu ctrlCreate ["RscStructuredText", 7011];
- menuSelection_title ctrlSetStructuredText parseText "<t align='center'>MENU SELECTION</t>";
- menuSelection_title ctrlSetPosition [0.422656 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.154687 * safezoneW,0.022 * safezoneH];
- menuSelection_title ctrlSetBackgroundColor JAM_tColor;
- menuSelection_title ctrlCommit 0;
- quickScripts_title = d_mainMenu ctrlCreate ["RscStructuredText", 7012];
- quickScripts_title ctrlSetStructuredText parseText "<t align='center'>QUICK SCRIPTS</t>";
- quickScripts_title ctrlSetPosition [0.587656 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.108281 * safezoneW,0.022 * safezoneH];
- quickScripts_title ctrlSetBackgroundColor JAM_tColor;
- quickScripts_title ctrlCommit 0;
- playerList_listBox = d_mainMenu ctrlCreate ["RscListbox", 7013];
- playerList_listBox ctrlSetPosition [0.309219 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.0979687 * safezoneW,0.319 * safezoneH];
- { _pL_index = playerList_listBox lbAdd name _x; } forEach allPlayers;
- playerList_listBox ctrlCommit 0;
- menuSelection_listBox = d_mainMenu ctrlCreate ["RscListbox", 7014];
- menuSelection_listBox ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.144375 * safezoneW,0.253 * safezoneH];
- menuSelection_listBox ctrlCommit 0;
- MMG_mL_lb_Arsenal = menuSelection_listBox lbAdd "ArsenalMenu";
- MMG_mL_lb_Target = menuSelection_listBox lbAdd "TargetMenu";
- MMG_mL_lb_Player = menuSelection_listBox lbAdd "PlayerMenu";
- MMG_mL_lb_Vehicle = menuSelection_listBox lbAdd "VehicleMenu";
- MMG_mL_lb_CustomVehicles = menuSelection_listBox lbAdd "CustomVehicles";
- MMG_mL_lb_Cheat = menuSelection_listBox lbAdd "CheatMenu";
- MMG_mL_lb_Dev = menuSelection_listBox lbAdd "DevMenu*";
- MMG_mL_lb_Server = menuSelection_listBox lbAdd "ServerMenu";
- MMG_mL_lb_SpawnMenu = menuSelection_listBox lbAdd "SpawnMenu";
- menuSelection_listBox lbSetColor [MMG_mL_lb_Arsenal, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Target, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Player, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Vehicle, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_CustomVehicles, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Cheat, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Dev, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_Server, [1, 1, 1, 1]];
- menuSelection_listBox lbSetColor [MMG_mL_lb_SpawnMenu, [1, 1, 1, 1]];
- menuSelection_openButton = d_mainMenu ctrlCreate ["RscButton", 7015];
- menuSelection_openButton ctrlSetText "OPEN";
- menuSelection_openButton ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.144375 * safezoneW,0.055 * safezoneH];
- menuSelection_openButton ctrlSetBackgroundColor [0, 0, 0, 0.6];
- menuSelection_openButton ctrlSetEventHandler ["ButtonClick",
- "
- If (menuSelection_listBox lbIsSelected MMG_mL_lb_Arsenal) then
- {
- d_mainMenu closeDisplay 0;
- [] spawn JAM_open_arsenalMenu;
- };
- If (menuSelection_listBox lbIsSelected MMG_mL_lb_Target) then
- {
- d_mainMenu closeDisplay 0;
- Hint 'TargetMenu Activated. Scroll for actions.';
- [] call JAM_toggle_targetOverlay;
- [] call JAM_open_targetMenu;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_Player) then
- {
- d_mainMenu closeDisplay 0;
- Hint 'PlayerMenu Activated. Scroll for actions.';
- [] call JAM_open_playerMenu;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_Vehicle) then
- {
- d_mainMenu closeDisplay 0;
- Hint 'VehicleMenu Activated. Scroll for actions.';
- [] call JAM_open_vehicleMenu;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_CustomVehicles) then
- {
- d_mainMenu closeDisplay 0;
- Hint 'CustomVehicles Spawn Menu Activated. Scroll for actions.';
- [] call JAM_open_CustomVehicles;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_Cheat) then
- {
- d_mainMenu closeDisplay 0;
- Hint 'CheatMenu Activated. Scroll for actions.';
- [] call JAM_open_cheatMenu;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_Dev) then
- {
- hint 'ERROR: Menu is not yet finished.';
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_Server) then
- {
- d_mainMenu closeDisplay 0;
- [] spawn JAM_open_serverMenu;
- };
- if (menuSelection_listBox lbIsSelected MMG_mL_lb_SpawnMenu) then
- {
- d_mainMenu closeDisplay 0;
- [] spawn JAM_fnc_OpenVehUI;
- };
- "];
- menuSelection_openButton ctrlCommit 0;
- quickScipts_SERVERMUTE = d_mainMenu ctrlCreate ["RscButton", 7500];
- quickScipts_SERVERMUTE ctrlSetText "MUTE";
- quickScipts_SERVERMUTE ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
- quickScipts_SERVERMUTE ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_mutePlayer;
- d_mainMenu closeDisplay 0;
- "];
- quickScipts_SERVERMUTE ctrlSetTooltip "Disable communication of player.";
- quickScipts_SERVERMUTE ctrlCommit 0;
- quickScipts_SERVERUNMUTE = d_mainMenu ctrlCreate ["RscButton", 7501];
- quickScipts_SERVERUNMUTE ctrlSetText "UNMUTE";
- quickScipts_SERVERUNMUTE ctrlSetPosition [0.639219 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.0515625 * safezoneW,0.022 * safezoneH];
- quickScipts_SERVERUNMUTE ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_unmutePlayer;
- d_mainMenu closeDisplay 0;
- "];
- quickScipts_SERVERUNMUTE ctrlSetTooltip "Enable communication of player.";
- quickScipts_SERVERUNMUTE ctrlCommit 0;
- quickScipts_AUTOKICKBAN = d_mainMenu ctrlCreate ["RscButton", 7017];
- quickScipts_AUTOKICKBAN ctrlSetText "AUTOKICK";
- quickScipts_AUTOKICKBAN ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0515625 * safezoneW,0.022 * safezoneH];
- quickScipts_AUTOKICKBAN ctrladdEventHandler ["ButtonClick",
- {
- hint "JAM: Error - The auto-kick button has been disabled in this version due to reports of game crashes.\n
- If you still wish to use it, type this command in the debug console with the desired player name:\n
- [playerNameInQuotes] call JAM_fnc_autoKickPlayer;\n
- You can always check back on the steam guide for JAM to see if the latest update fixes this issue.";
- }];
- quickScipts_AUTOKICKBAN ctrlSetTooltip "Permanently ban player with message.";
- quickScipts_AUTOKICKBAN ctrlCommit 0;
- quickScipts_BAN = d_mainMenu ctrlCreate ["RscButton", 7018];
- quickScipts_BAN ctrlSetText "BAN";
- quickScipts_BAN ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0464063 * safezoneW,0.022 * safezoneH];
- quickScipts_BAN ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_experimentalBan;
- "];
- quickScipts_BAN ctrlSetTooltip "Trigger ban via BE restriction.";
- quickScipts_BAN ctrlCommit 0;
- quickScipts_BLACKLIST = d_mainMenu ctrlCreate ["RscButton", 7019];
- quickScipts_BLACKLIST ctrlSetText "BLACKLIST PLAYER";
- quickScipts_BLACKLIST ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.346 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_BLACKLIST ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_blacklistPlayer;
- "];
- quickScipts_BLACKLIST ctrlSetTooltip "Add player to blacklist.";
- quickScipts_BLACKLIST ctrlCommit 0;
- quickScipts_FREEZE = d_mainMenu ctrlCreate ["RscButton", 7020];
- quickScipts_FREEZE ctrlSetText "FREEZE PLAYER";
- quickScipts_FREEZE ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_FREEZE ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_freezePlayer;
- "];
- quickScipts_FREEZE ctrlSetTooltip "Disable/Enable player input.";
- quickScipts_FREEZE ctrlCommit 0;
- quickScipts_TPSELFTOPLAYER = d_mainMenu ctrlCreate ["RscButton", 7021];
- quickScipts_TPSELFTOPLAYER ctrlSetText "TP Self-To-Player";
- quickScipts_TPSELFTOPLAYER ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.412 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_TPSELFTOPLAYER ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_TP_selfToPlayer;
- "];
- quickScipts_TPSELFTOPLAYER ctrlCommit 0;
- quickScipts_TPPLAYERTOSELF = d_mainMenu ctrlCreate ["RscButton", 7022];
- quickScipts_TPPLAYERTOSELF ctrlSetText "TP Player-To-Self";
- quickScipts_TPPLAYERTOSELF ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.445 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_TPPLAYERTOSELF ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_TP_playerToSelf;
- "];
- quickScipts_TPPLAYERTOSELF ctrlCommit 0;
- quickScipts_GIVEARSENAL = d_mainMenu ctrlCreate ["RscButton", 7023];
- quickScipts_GIVEARSENAL ctrlSetText "Give Arsenal (1x)";
- quickScipts_GIVEARSENAL ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.478 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_GIVEARSENAL ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_giveArsenal;
- "];
- quickScipts_GIVEARSENAL ctrlCommit 0;
- quickScipts_ASSIGNGAMEMASTER = d_mainMenu ctrlCreate ["RscButton", 7024];
- quickScipts_ASSIGNGAMEMASTER ctrlSetText "ASSIGN GAMEMASTER";
- quickScipts_ASSIGNGAMEMASTER ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.511 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_ASSIGNGAMEMASTER ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_assignGameMaster;
- "];
- quickScipts_ASSIGNGAMEMASTER ctrlCommit 0;
- quickScipts_ASSIGNGAMEMOD = d_mainMenu ctrlCreate ["RscButton", 7025];
- quickScipts_ASSIGNGAMEMOD ctrlSetText "ASSIGN GAMEMOD";
- quickScipts_ASSIGNGAMEMOD ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_ASSIGNGAMEMOD ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_assignGameMod;
- "];
- quickScipts_ASSIGNGAMEMOD ctrlCommit 0;
- quickScipts_TRANSFERADMIN = d_mainMenu ctrlCreate ["RscButton", 7026];
- quickScipts_TRANSFERADMIN ctrlSetText "TRANSFER ADMIN";
- quickScipts_TRANSFERADMIN ctrlSetPosition [0.592812 * safezoneW + safezoneX,0.577 * safezoneH + safezoneY,0.0979687 * safezoneW,0.022 * safezoneH];
- quickScipts_TRANSFERADMIN ctrladdEventHandler ["ButtonClick",
- "
- _selectedItem = lbCurSel playerList_listBox;
- [playerList_listBox lbText _selectedItem] call JAM_fnc_transferAdmin;
- "];
- quickScipts_TRANSFERADMIN ctrlCommit 0;
- scriptTarget_title = d_mainMenu ctrlCreate ["RscStructuredText", 7027];
- scriptTarget_title ctrlSetStructuredText parseText "<t font='PuristaMedium'>TARGET</t>";
- scriptTarget_title ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- scriptTarget_title ctrlSetBackgroundColor JAM_tColor;
- scriptTarget_title ctrlCommit 0;
- console_title = d_mainMenu ctrlCreate ["RscStructuredText", 7028];
- console_title ctrlSetStructuredText parseText "<t shadow='0' font='PuristaMedium'>Debug console</t><t align='center'>-</t><t align='right'>created by J-WoLF</t>";
- console_title ctrlSetPosition [0.365937 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.273281 * safezoneW,0.022 * safezoneH];
- console_title ctrlSetBackgroundColor JAM_tColor;
- console_title ctrlCommit 0;
- console_backgound = d_mainMenu ctrlCreate ["RscText", 7029];
- console_backgound ctrlSetPosition [0.365937 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.273281 * safezoneW,0.121 * safezoneH];
- console_backgound ctrlsetbackgroundColor [0,0,0,0.5];
- console_backgound ctrlCommit 0;
- console_inputBox = d_mainMenu ctrlCreate ["RscEdit", 7030];
- console_inputBox ctrlSetPosition [0.371094 * safezoneW + safezoneX,0.676 * safezoneH + safezoneY,0.262969 * safezoneW,0.066 * safezoneH];
- console_inputBox ctrlSetBackgroundColor [0,0,0,0.3];
- console_inputBox ctrlSetTooltip "Paste SQF script here.";
- console_inputBox ctrlCommit 0;
- console_outputBox = d_mainMenu ctrlCreate ["RscText", 7031];
- console_outputBox ctrlSetPosition [0.371094 * safezoneW + safezoneX,0.742 * safezoneH + safezoneY,0.262969 * safezoneW,0.022 * safezoneH];
- console_outputBox ctrlSetBackgroundColor [0,0,0,0.8];
- console_outputBox ctrlCommit 0;
- console_executeText = d_mainMenu ctrlCreate ["RscStructuredText", 7032];
- console_executeText ctrlSetStructuredText parseText "<t size='0.75'>Execute</t>";
- console_executeText ctrlSetPosition [0.365937 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.0309375 * safezoneW,0.022 * safezoneH];
- console_executeText ctrlSetBackgroundColor [0,0,0,0];
- console_executeText ctrlCommit 0;
- scriptTarget_playerName_edit = d_mainMenu ctrlCreate ["RscEdit", 7033];
- scriptTarget_playerName_edit ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.687 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerName_edit ctrlSetBackgroundColor [0,0,0,0.3];
- scriptTarget_playerName_edit ctrlSetTooltip "Type target name here.";
- scriptTarget_playerName_edit ctrlCommit 0;
- scriptTarget_playerUID_edit = d_mainMenu ctrlCreate ["RscEdit", 7034];
- scriptTarget_playerUID_edit ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.753 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerUID_edit ctrlSetBackgroundColor [0,0,0,0.3];
- scriptTarget_playerUID_edit ctrlSetTooltip "Type target steamID here.";
- scriptTarget_playerUID_edit ctrlCommit 0;
- scriptTarget_playerName = d_mainMenu ctrlCreate ["RscText", 7035];
- scriptTarget_playerName ctrlSetText "Name:";
- scriptTarget_playerName ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerName ctrlSetBackgroundColor [0,0,0,0.5];
- scriptTarget_playerName ctrlCommit 0;
- scriptTarget_playerUID = d_mainMenu ctrlCreate ["RscText", 7036];
- scriptTarget_playerUID ctrlSetText "UID:";
- scriptTarget_playerUID ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.72 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerUID ctrlSetBackgroundColor [0,0,0,0.5];
- scriptTarget_playerUID ctrlCommit 0;
- scriptTarget_playerName_cb = d_mainMenu ctrlCreate ["RscCheckbox", 7037];
- scriptTarget_playerName_cb ctrlSetPosition [0.345312 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerName_cb ctrladdEventHandler ["ButtonClick",
- "
- If (!tNameSelected) then {
- tNameSelected = true;
- } else {
- tNameSelected = false;
- };
- "];
- scriptTarget_playerName_cb ctrlSetTooltip "Define target by name.";
- scriptTarget_playerName_cb ctrlCommit 0;
- scriptTarget_playerUID_cb = d_mainMenu ctrlCreate ["RscCheckbox", 7038];
- scriptTarget_playerUID_cb ctrlSetPosition [0.345312 * safezoneW + safezoneX,0.72 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- scriptTarget_playerUID_cb ctrladdEventHandler ["ButtonClick",
- "
- If (!tUIDSelected) then {
- tUIDSelected = true;
- } else {
- tUIDSelected = false;
- };
- "];
- scriptTarget_playerUID_cb ctrlSetTooltip "Define target by UID.";
- scriptTarget_playerUID_cb ctrlCommit 0;
- console_playerExec = d_mainMenu ctrlCreate ["RscButtonMenu", 7039];
- console_playerExec ctrlSetText "PLAYER EXEC";
- console_playerExec ctrlSetPosition [0.273125 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- console_playerExec ctrladdEventHandler ["ButtonClick",
- "
- [playerList_listBox lbText (lbCurSel playerList_listBox),ctrlText scriptTarget_playerName_edit,ctrlText scriptTarget_playerUID_edit] spawn JAM_fnc_execPlayer;
- "];
- console_playerExec ctrlCommit 0;
- console_serverExec = d_mainMenu ctrlCreate ["RscButtonMenu", 7040];
- console_serverExec ctrlSetText "SERVER EXEC";
- console_serverExec ctrlSetPosition [0.365937 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- console_serverExec ctrlSetBackgroundColor [0,0.1,0,0.75];
- console_serverExec ctrladdEventHandler ["ButtonClick",
- "
- [] spawn JAM_fnc_execServer;
- "];
- console_serverExec ctrlCommit 0;
- console_globalExec = d_mainMenu ctrlCreate ["RscButtonMenu", 7041];
- console_globalExec ctrlSetText "GLOBAL EXEC";
- console_globalExec ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- console_globalExec ctrlSetBackgroundColor [0.1,0,0,0.75];
- console_globalExec ctrladdEventHandler ["ButtonClick",
- "
- [] spawn JAM_fnc_execGlobal;
- "];
- console_globalExec ctrlCommit 0;
- console_localExec = d_mainMenu ctrlCreate ["RscButtonMenu", 7042];
- console_localExec ctrlSetText "LOCAL EXEC";
- console_localExec ctrlSetPosition [0.551563 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- console_localExec ctrlSetBackgroundColor [0,0,0.1,0.75];
- console_localExec ctrladdEventHandler ["ButtonClick",
- "
- [] spawn JAM_fnc_execLocal;
- "];
- console_localExec ctrlCommit 0;
- configure_title = d_mainMenu ctrlCreate ["RscStructuredText", 7043];
- configure_title ctrlSetStructuredText parseText "<t font='PuristaMedium'>CONFIGURE</t>";
- configure_title ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.621 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_title ctrlSetBackgroundColor JAM_tColor;
- configure_title ctrlCommit 0;
- configure_options = d_mainMenu ctrlCreate ["RscButtonMenu", 7044];
- configure_options ctrlSetText "OPTIONS";
- configure_options ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_options ctrladdEventHandler ["ButtonClick",
- "
- [] spawn JAM_open_optionsPanel;
- "];
- configure_options ctrlCommit 0;
- configure_playerVehicleVarNameList = d_mainMenu ctrlCreate ["RscButtonMenu", 7045];
- configure_playerVehicleVarNameList ctrlSetText "vehicleVarName List";
- configure_playerVehicleVarNameList ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.687 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_playerVehicleVarNameList ctrladdEventHandler ["ButtonClick",
- "
- [] spawn JAM_open_playerVehicleVarNameList;
- "];
- configure_playerVehicleVarNameList ctrlCommit 0;
- configure_blacklist = d_mainMenu ctrlCreate ["RscButtonMenu", 7046];
- configure_blacklist ctrlSetText "BLACKLIST";
- configure_blacklist ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.72 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_blacklist ctrladdEventHandler ["ButtonClick",
- "
- d_mainMenu closeDisplay 0;
- [] spawn JAM_open_blacklistMenu;
- "];
- configure_blacklist ctrlCommit 0;
- configure_credits = d_mainMenu ctrlCreate ["RscButtonMenu", 7047];
- configure_credits ctrlSetText "CREDITS";
- configure_credits ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.753 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_credits ctrladdEventHandler ["ButtonClick",
- "
- hint 'This menu (JAM) was created by J-WoLF.';
- "];
- configure_credits ctrlCommit 0;
- configure_close = d_mainMenu ctrlCreate ["RscButtonMenu", 7048];
- configure_close ctrlSetText "CLOSE";
- configure_close ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.0876563 * safezoneW,0.022 * safezoneH];
- configure_close ctrladdEventHandler ["ButtonClick",
- "
- d_mainMenu closeDisplay 0;
- "];
- configure_close ctrlCommit 0;
- comment "Load Saved States of Controls";
- if (isNil "tNameSelected") then {tNameSelected = false;};
- if (tNameSelected) then {scriptTarget_playerName_cb cbSetChecked true;};
- if (isNil "tUIDSelected") then {tUIDSelected = false;};
- if (tUIDSelected) then {scriptTarget_playerUID_cb cbSetChecked true;};
- };
- comment "----------------------------------------------------------";
- comment "--------------------SPAWN MENU GUI------------------------";
- comment "----------------------------------------------------------";
- JAM_fnc_OpenVehUI =
- {
- private ["_flag"];
- disableSerialization;
- player action ["WeaponOnBack", player];
- JAM_d_fullSpawnMenu = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- fSM_vehBack = JAM_d_fullSpawnMenu ctrlCreate ["IGUIBack", 9204];
- fSM_vehBack ctrlSetPosition [0 * safezoneW + safezoneX,0 * safezoneH + safezoneY,1 * safezoneW,1 * safezoneH];
- fSM_vehBack ctrlSetBackgroundColor [0,0,0,0.5];
- fSM_vehBack ctrlCommit 0;
- fSM_vehFrame = JAM_d_fullSpawnMenu ctrlCreate ["IGUIBack", 9205];
- fSM_vehFrame ctrlSetPosition [0.25 * safezoneW + safezoneX,0.25 * safezoneH + safezoneY,0.5 * safezoneW,0.5 * safezoneH];
- fSM_vehFrame ctrlSetBackgroundColor [0.529,0.565,0.49,1];
- fSM_vehFrame ctrlCommit 0;
- fSM_RscHeaderBack = JAM_d_fullSpawnMenu ctrlCreate ["IGUIBack", 9206];
- fSM_RscHeaderBack ctrlSetPosition [0.255 * safezoneW + safezoneX,0.2575 * safezoneH + safezoneY,0.49 * safezoneW,0.05 * safezoneH];
- fSM_RscHeaderBack ctrlSetBackgroundColor [0.333,0.333,0.333,0.75];
- fSM_RscHeaderBack ctrlCommit 0;
- fSM_RscVehBack = JAM_d_fullSpawnMenu ctrlCreate ["IGUIBack", 9207];
- fSM_RscVehBack ctrlSetPosition [0.255 * safezoneW + safezoneX,0.3125 * safezoneH + safezoneY,0.2425 * safezoneW,0.4275 * safezoneH];
- fSM_RscVehBack ctrlSetBackgroundColor [0.333,0.333,0.333,0.75];
- fSM_RscVehBack ctrlCommit 0;
- fSM_RscVehInfoBack = JAM_d_fullSpawnMenu ctrlCreate ["IGUIBack", 9208];
- fSM_RscVehInfoBack ctrlSetPosition [0.5025 * safezoneW + safezoneX,0.355 * safezoneH + safezoneY,0.2425 * safezoneW,0.34 * safezoneH];
- fSM_RscVehInfoBack ctrlSetBackgroundColor [0.333,0.333,0.333,0.75];
- fSM_RscVehInfoBack ctrlCommit 0;
- fSM_btnCancel = JAM_d_fullSpawnMenu ctrlCreate ["RscShortcutButton", 9209];
- fSM_btnCancel ctrlSetText "Cancel";
- fSM_btnCancel ctrlSetPosition [0.5025 * safezoneW + safezoneX,0.7025 * safezoneH + safezoneY,0.12 * safezoneW,0.0375 * safezoneH];
- fSM_btnCancel ctrlSetBackgroundColor [0.4,0.4,0.4,1];
- fSM_btnCancel ctrladdEventHandler ["ButtonClick",
- {
- JAM_d_fullSpawnMenu closeDisplay 0;
- }];
- fSM_btnCancel ctrlCommit 0;
- fSM_btnConfirm = JAM_d_fullSpawnMenu ctrlCreate ["RscShortcutButton", 9210];
- fSM_btnConfirm ctrlSetText "Confirm";
- fSM_btnConfirm ctrlSetPosition [0.625 * safezoneW + safezoneX,0.7025 * safezoneH + safezoneY,0.12 * safezoneW,0.0375 * safezoneH];
- fSM_btnConfirm ctrlSetBackgroundColor [0.4,0.4,0.4,1];
- fSM_btnConfirm ctrladdEventHandler ["ButtonClick",
- {
- [] call JAM_gui_VehCreate;
- }];
- fSM_btnConfirm ctrlCommit 0;
- comment "insertEssentialControls";
- fSM_RscVehList = JAM_d_fullSpawnMenu ctrlCreate ["RscListBox", 9202];
- fSM_RscVehList ctrlSetTextColor [1,1,1,1];
- fSM_RscVehList ctrlSetBackgroundColor [0.667,0.714,0.635,1];
- fSM_RscVehList ctrlSetPosition [0.26 * safezoneW + safezoneX,0.3225 * safezoneH + safezoneY,0.2325 * safezoneW,0.41 * safezoneH];
- fSM_RscVehList ctrladdEventHandler ["LBSelChanged",
- {
- [] spawn JAM_gui_VehInfo;
- }];
- fSM_RscVehList ctrlCommit 0;
- fSM_vehStatText = JAM_d_fullSpawnMenu ctrlCreate ["RscStructuredText", 9203];
- fSM_vehStatText ctrlSetTextColor [1,1,1,1];
- fSM_vehStatText ctrlSetBackgroundColor [0.667,0.714,0.635,1];
- fSM_vehStatText ctrlSetPosition [0.508 * safezoneW + safezoneX,0.365 * safezoneH + safezoneY,0.2325 * safezoneW,0.32 * safezoneH];
- fSM_vehStatText ctrlCommit 0;
- ["Car"] call JAM_gui_LoadVeh;
- fSM_serverTitleText = JAM_d_fullSpawnMenu ctrlCreate ["RscStructuredText", 9200];
- fSM_serverTitleText ctrlSetTextColor [1,1,1,1];
- fSM_serverTitleText ctrlSetBackgroundColor [0,0,0,0];
- fSM_serverTitleText ctrlSetPosition [0.305 * safezoneW + safezoneX,0.265 * safezoneH + safezoneY,0.435 * safezoneW,0.04 * safezoneH];
- _plr = profileName;
- _title = "JAM | FULL VEHICLE SPAWN MENU | <a underline='true' color='#0000FF' hRef='https://www.youtube.com/watch?v=nQygf2qKIU4'>Credit: soolie</a>";
- fSM_serverTitleText ctrlSetStructuredText parseText format ["<t align='left' shadow='1' shadowColor='#75000000'>%1</t><t align='right' shadow='1' shadowColor='#75000000'>%2</t>",_plr,_title];
- fSM_serverTitleText ctrlCommit 0;
- _plrClass = typeOf player;
- _side = getNumber(configFile >> "cfgVehicles" >> _plrClass>> "side");
- fSM_RscPlayerFlagLeft = JAM_d_fullSpawnMenu ctrlCreate ["RscPicture", 9201];
- fSM_RscPlayerFlagLeft ctrlSetBackgroundColor [0,0,0,1];
- comment "fSM_RscPlayerFlagLeft | sizeEx = 0.1 (text size is 0.1)";
- fSM_RscPlayerFlagLeft ctrlSetPosition [0.2575 * safezoneW + safezoneX,0.26 * safezoneH + safezoneY,0.05 * safezoneW,0.045* safezoneH];
- switch (_side) do
- {
- case 0: {_flag = "\A3\Data_F\Flags\Flag_CSAT_CO.paa";};
- case 1: {_flag = "\A3\Data_F\Flags\Flag_nato_CO.paa";};
- case 2: {_flag = "\A3\Data_F\Flags\Flag_AAF_CO.paa";};
- };
- fSM_RscPlayerFlagLeft ctrlSetText _flag;
- fSM_RscPlayerFlagLeft ctrlCommit 0;
- fSM_btnLand = JAM_d_fullSpawnMenu ctrlCreate ["RscShortcutButton", 9211];
- fSM_btnLand ctrlSetText "Land";
- fSM_btnLand ctrlSetBackgroundColor [0.4,0.4,0.4,1];
- fSM_btnLand ctrlSetPosition [0.5025 * safezoneW + safezoneX,0.3125 * safezoneH + safezoneY,0.0775 * safezoneW,0.0375 * safezoneH];
- fSM_btnLand ctrladdEventHandler ["ButtonClick",
- {
- ["Car"] call JAM_gui_LoadVeh;
- }];
- fSM_btnLand ctrlCommit 0;
- fSM_btnSea = JAM_d_fullSpawnMenu ctrlCreate ["RscShortcutButton", 9212];
- fSM_btnSea ctrlSetText "Sea";
- fSM_btnSea ctrlSetBackgroundColor [0.4,0.4,0.4,1];
- fSM_btnSea ctrlSetPosition [0.585 * safezoneW + safezoneX,0.3125 * safezoneH + safezoneY,0.0775 * safezoneW,0.0375 * safezoneH];
- fSM_btnSea ctrladdEventHandler ["ButtonClick",
- {
- ["Ship"] call JAM_gui_LoadVeh;
- }];
- fSM_btnSea ctrlCommit 0;
- fSM_btnAir = JAM_d_fullSpawnMenu ctrlCreate ["RscShortcutButton", 9213];
- fSM_btnAir ctrlSetText "Air";
- fSM_btnAir ctrlSetBackgroundColor [0.4,0.4,0.4,1];
- fSM_btnAir ctrlSetPosition [0.6675 * safezoneW + safezoneX,0.3125 * safezoneH + safezoneY,0.0775 * safezoneW,0.0375 * safezoneH];
- fSM_btnAir ctrladdEventHandler ["ButtonClick",
- {
- ["Air"] call JAM_gui_LoadVeh;
- }];
- fSM_btnAir ctrlCommit 0;
- };
- comment "----------------------------------------------------------";
- comment "-------------------OPTIONS PANEL GUI----------------------";
- comment "----------------------------------------------------------";
- JAM_open_optionsPanel =
- {
- comment "GUI START";
- disableSerialization;
- d_optionsPanel = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true; comment "Fixes Chat Bug";
- comment "Create Controls";
- optionsPanel_bkrnd = d_optionsPanel ctrlCreate ["RscText", 7049];
- optionsPanel_bkrnd ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_bkrnd ctrlSetPosition [0.304062 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.397031 * safezoneW,0.363 * safezoneH];
- optionsPanel_bkrnd ctrlCommit 0;
- optionsPanel_title = d_optionsPanel ctrlCreate ["RscText", 7050];
- optionsPanel_title ctrlSetText "JAM | Options Panel";
- optionsPanel_title ctrlSetBackgroundColor JAM_tColor;
- optionsPanel_title ctrlSetPosition [0.304062 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.397031 * safezoneW,0.044 * safezoneH];
- optionsPanel_title ctrlCommit 0;
- optionsPanel_bkrnd1 = d_optionsPanel ctrlCreate ["RscText", 7051];
- optionsPanel_bkrnd1 ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_bkrnd1 ctrlSetPosition [0.319531 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0773437 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd1 ctrlCommit 0;
- optionsPanel_bkrnd2 = d_optionsPanel ctrlCreate ["RscFrame", 7052];
- optionsPanel_bkrnd2 ctrlSetTextColor [0,0,0,1];
- optionsPanel_bkrnd2 ctrlSetBackgroundColor [0,0,0,1];
- optionsPanel_bkrnd2 ctrlSetPosition [0.319531 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0773437 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd2 ctrlCommit 0;
- optionsPanel_bkrnd3 = d_optionsPanel ctrlCreate ["RscText", 7053];
- optionsPanel_bkrnd3 ctrlSetBackgroundColor [0,0,0,0.3];
- optionsPanel_bkrnd3 ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0825 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd3 ctrlCommit 0;
- optionsPanel_bkrnd4 = d_optionsPanel ctrlCreate ["RscFrame", 7054];
- optionsPanel_bkrnd4 ctrlSetTextColor [0,0,0,1];
- optionsPanel_bkrnd4 ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_bkrnd4 ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0825 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd4 ctrlCommit 0;
- optionsPanel_bkrnd5 = d_optionsPanel ctrlCreate ["RscText", 7055];
- optionsPanel_bkrnd5 ctrlSetBackgroundColor [0,0,0,0.3];
- optionsPanel_bkrnd5 ctrlSetPosition [0.510312 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0825 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd5 ctrlCommit 0;
- optionsPanel_bkrnd6 = d_optionsPanel ctrlCreate ["RscFrame", 7056];
- optionsPanel_bkrnd6 ctrlSetTextColor [0,0,0,1];
- optionsPanel_bkrnd6 ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_bkrnd6 ctrlSetPosition [0.510312 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0825 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd6 ctrlCommit 0;
- optionsPanel_bkrnd7 = d_optionsPanel ctrlCreate ["RscText", 7057];
- optionsPanel_bkrnd7 ctrlSetBackgroundColor [0,0,0,0.3];
- optionsPanel_bkrnd7 ctrlSetPosition [0.608281 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0773437 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd7 ctrlCommit 0;
- optionsPanel_bkrnd8 = d_optionsPanel ctrlCreate ["RscFrame", 7058];
- optionsPanel_bkrnd8 ctrlSetTextColor [0,0,0,1];
- optionsPanel_bkrnd8 ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_bkrnd8 ctrlSetPosition [0.608281 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.0773437 * safezoneW,0.077 * safezoneH];
- optionsPanel_bkrnd8 ctrlCommit 0;
- optionsPanel_menuColor = d_optionsPanel ctrlCreate ["RscText", 7059];
- optionsPanel_menuColor ctrlSetText "Select Menu Color:";
- optionsPanel_menuColor ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_menuColor ctrlSetPosition [0.319531 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.0773437 * safezoneW,0.022 * safezoneH];
- optionsPanel_menuColor ctrlCommit 0;
- optionsPanel_menuColorRed = d_optionsPanel ctrlCreate ["RscButtonMenu", 7060];
- optionsPanel_menuColorRed ctrlSetText "R";
- optionsPanel_menuColorRed ctrlSetBackgroundColor [0.5,0,0,0.6];
- optionsPanel_menuColorRed ctrlSetPosition [0.335 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- optionsPanel_menuColorRed ctrladdEventHandler ["ButtonClick",
- "
- JAM_tColor = [0.5,0,0,0.6];
- JAM_fColor = [1,0,0,1];
- optionsPanel_title ctrlSetBackgroundColor JAM_tColor;
- hint 'JAM: Menu colors updated.';
- "];
- optionsPanel_menuColorRed ctrlCommit 0;
- optionsPanel_menuColorGreen = d_optionsPanel ctrlCreate ["RscButtonMenu", 7061];
- optionsPanel_menuColorGreen ctrlSetText "G";
- optionsPanel_menuColorGreen ctrlSetBackgroundColor [0,0.5,0,0.6];
- optionsPanel_menuColorGreen ctrlSetPosition [0.350469 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- optionsPanel_menuColorGreen ctrladdEventHandler ["ButtonClick",
- "
- JAM_tColor = [0,0.5,0,0.6];
- JAM_fColor = [0,1,0,1];
- optionsPanel_title ctrlSetBackgroundColor JAM_tColor;
- hint 'JAM: Menu colors updated.';
- "];
- optionsPanel_menuColorGreen ctrlCommit 0;
- optionsPanel_menuColorBlue = d_optionsPanel ctrlCreate ["RscButtonMenu", 7062];
- optionsPanel_menuColorBlue ctrlSetText "B";
- optionsPanel_menuColorBlue ctrlSetBackgroundColor [0,0,0.5,0.6];
- optionsPanel_menuColorBlue ctrlSetPosition [0.365937 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- optionsPanel_menuColorBlue ctrladdEventHandler ["ButtonClick",
- "
- JAM_tColor = [0,0,0.5,0.6];
- JAM_fColor = [0,0,1,1];
- optionsPanel_title ctrlSetBackgroundColor JAM_tColor;
- hint 'JAM: Menu colors have been updated.';
- "];
- optionsPanel_menuColorBlue ctrlCommit 0;
- optionsPanel_keyBind_arsenal = d_optionsPanel ctrlCreate ["RscText", 7063];
- optionsPanel_keyBind_arsenal ctrlSetText "Arsenal Keybind:";
- optionsPanel_keyBind_arsenal ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.0825 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_arsenal ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_arsenal ctrlCommit 0;
- optionsPanel_keyBind_arsenalEdit = d_optionsPanel ctrlCreate ["RscEdit", 7064];
- optionsPanel_keyBind_arsenalEdit ctrlSetPosition [0.4175 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0309375 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_arsenalEdit ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_arsenalEdit ctrlSetText JAM_key_arsenal;
- optionsPanel_keyBind_arsenalEdit ctrlCommit 0;
- optionsPanel_keyBind_arsenalApply = d_optionsPanel ctrlCreate ["RscButtonMenu", 7065];
- optionsPanel_keyBind_arsenalApply ctrlSetText "APPLY";
- optionsPanel_keyBind_arsenalApply ctrlSetPosition [0.453594 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0360937 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_arsenalApply ctrladdEventHandler ["ButtonClick",
- "
- JAM_key_Arsenal = (ctrlText optionsPanel_keyBind_arsenalEdit);
- hint 'JAM: Key has not changed. Wait for future updates.';
- "];
- optionsPanel_keyBind_arsenalApply ctrlCommit 0;
- optionsPanel_keyBind_mainMenu = d_optionsPanel ctrlCreate ["RscText", 7066];
- optionsPanel_keyBind_mainMenu ctrlSetText "MainMenu Key:";
- optionsPanel_keyBind_mainMenu ctrlSetPosition [0.510312 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.0825 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_mainMenu ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_mainMenu ctrlCommit 0;
- optionsPanel_keyBind_mainMenuEdit = d_optionsPanel ctrlCreate ["RscEdit", 7067];
- optionsPanel_keyBind_mainMenuEdit ctrlSetPosition [0.515469 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0309375 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_mainMenuEdit ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_mainMenuEdit ctrlSetText JAM_key_mainMenu;
- optionsPanel_keyBind_mainMenuEdit ctrlCommit 0;
- optionsPanel_keyBind_mainMenuApply = d_optionsPanel ctrlCreate ["RscButtonMenu", 7068];
- optionsPanel_keyBind_mainMenuApply ctrlSetText "APPLY";
- optionsPanel_keyBind_mainMenuApply ctrlSetPosition [0.551562 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0360937 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_mainMenuApply ctrladdEventHandler ["ButtonClick",
- "
- JAM_key_mainMenu = (ctrlText optionsPanel_keyBind_mainMenuEdit);
- hint 'JAM: Key has not changed. Wait for next update.';
- "];
- optionsPanel_keyBind_mainMenuApply ctrlCommit 0;
- optionsPanel_keyBind_3DTP = d_optionsPanel ctrlCreate ["RscText", 7069];
- optionsPanel_keyBind_3DTP ctrlSetText "3DTP Key:";
- optionsPanel_keyBind_3DTP ctrlSetPosition [0.608281 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.0773437 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_3DTP ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_3DTP ctrlCommit 0;
- optionsPanel_keyBind_3DTPEdit = d_optionsPanel ctrlCreate ["RscEdit", 7070];
- optionsPanel_keyBind_3DTPEdit ctrlSetPosition [0.613437 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0257812 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_3DTPEdit ctrlSetBackgroundColor [0,0,0,0.5];
- optionsPanel_keyBind_3DTPEdit ctrlSetText JAM_key_3DTP;
- optionsPanel_keyBind_3DTPEdit ctrlCommit 0;
- optionsPanel_keyBind_3DTPApply = d_optionsPanel ctrlCreate ["RscButtonMenu", 7071];
- optionsPanel_keyBind_3DTPApply ctrlSetText "APPLY";
- optionsPanel_keyBind_3DTPApply ctrlSetPosition [0.644375 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0360937 * safezoneW,0.022 * safezoneH];
- optionsPanel_keyBind_3DTPApply ctrladdEventHandler ["ButtonClick",
- "
- JAM_key_3DTP = (ctrlText optionsPanel_keyBind_3DTPEdit);
- hint 'JAM: Key has not changed. Wait for next update.';
- "];
- optionsPanel_keyBind_3DTPApply ctrlCommit 0;
- optionsPanel_return = d_optionsPanel ctrlCreate ["RscButtonMenu", 7072];
- optionsPanel_return ctrlSetText "RETURN";
- optionsPanel_return ctrlSetPosition [0.304062 * safezoneW + safezoneX,0.665 * safezoneH + safezoneY,0.0670312 * safezoneW,0.033 * safezoneH];
- optionsPanel_return ctrladdEventHandler ["ButtonClick",
- "
- d_optionsPanel closeDisplay 0;
- [] spawn JAM_open_mainMenu;
- "];
- optionsPanel_return ctrlCommit 0;
- optionsPanel_close = d_optionsPanel ctrlCreate ["RscButtonMenu", 7073];
- optionsPanel_close ctrlSetText "EXIT ALL";
- optionsPanel_close ctrlSetPosition [0.634062 * safezoneW + safezoneX,0.665 * safezoneH + safezoneY,0.0670312 * safezoneW,0.033 * safezoneH];
- optionsPanel_close ctrladdEventHandler ["ButtonClick",
- "
- d_optionsPanel closeDisplay 0;
- removeAllActions player;
- if (not (isNil Overlay_TargetInfo)) then { ctrlDelete Overlay_TargetInfo; };
- "];
- optionsPanel_close ctrlCommit 0;
- optionsPanel_info1 = d_optionsPanel ctrlCreate ["RscText", 7074];
- optionsPanel_info1 ctrlSetText "Current Version of JAM:";
- optionsPanel_info1 ctrlSetPosition [0.453594 * safezoneW + safezoneX,0.467 * safezoneH + safezoneY,0.0928125 * safezoneW,0.022 * safezoneH];
- optionsPanel_info1 ctrlCommit 0;
- optionsPanel_info2 = d_optionsPanel ctrlCreate ["RscText", 7075];
- optionsPanel_info2 ctrlSetText "V1.5A";
- optionsPanel_info2 ctrlSetPosition [0.486 * safezoneW + safezoneX,0.522 * safezoneH + safezoneY,0.0257812 * safezoneW,0.022 * safezoneH];
- optionsPanel_info2 ctrlCommit 0;
- optionsPanel_info3 = d_optionsPanel ctrlCreate ["RscText", 7076];
- optionsPanel_info3 ctrlSetText "More options and settings to come in the future!";
- optionsPanel_info3 ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.412 * safezoneH + safezoneY,0.180469 * safezoneW,0.033 * safezoneH];
- optionsPanel_info3 ctrlCommit 0;
- comment "GUI END";
- };
- comment "----------------------------------------------------------";
- comment "------------------BLACKLIST CFG GUI-----------------------";
- comment "----------------------------------------------------------";
- JAM_open_blacklistMenu =
- {
- disableSerialization;
- d_blacklistMenu = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- bList_title = d_blacklistMenu ctrlCreate ["RscText", 7077];
- bList_title ctrlSetText "JAM | BLACKLIST CONFIGURATION";
- bList_title ctrlSetPosition [0.386563 * safezoneW + safezoneX,0.247 * safezoneH + safezoneY,0.221719 * safezoneW,0.022 * safezoneH];
- bList_title ctrlSetBackgroundColor [-1,-1,-1,0.8];
- bList_title ctrlCommit 0;
- bList_bkrnd1 = d_blacklistMenu ctrlCreate ["RscText", 7078];
- bList_bkrnd1 ctrlSetPosition [0.386562 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.226875 * safezoneW,0.044 * safezoneH];
- bList_bkrnd1 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- bList_bkrnd1 ctrlCommit 0;
- bList_enableT = d_blacklistMenu ctrlCreate ["RscText", 7079];
- bList_enableT ctrlSetText "Enable Blacklisting";
- bList_enableT ctrlSetPosition [0.469062 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.0773437 * safezoneW,0.022 * safezoneH];
- bList_enableT ctrlSetBackgroundColor [-1,-1,-1,0.8];
- bList_enableT ctrlCommit 0;
- bList_bkrnd2 = d_blacklistMenu ctrlCreate ["RscText", 7080];
- bList_bkrnd2 ctrlSetPosition [0.448438 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- bList_bkrnd2 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- bList_bkrnd2 ctrlCommit 0;
- bList_cb = d_blacklistMenu ctrlCreate ["RscCheckbox", 7081];
- bList_cb ctrlSetPosition [0.448438 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.0154688 * safezoneW,0.022 * safezoneH];
- bList_cb ctrladdEventHandler ["ButtonClick",
- "
- If (!JAM_blackListEnabled) then {
- JAM_blackListEnabled = true;
- [] call JAM_toggle_blackListing;
- } else {
- JAM_blackListEnabled = false;
- };
- "];
- bList_cb ctrlCommit 0;
- bList_bkrnd3 = d_blacklistMenu ctrlCreate ["RscText", 7082];
- bList_bkrnd3 ctrlSetPosition [0.386562 * safezoneW + safezoneX,0.335 * safezoneH + safezoneY,0.226875 * safezoneW,0.22 * safezoneH];
- bList_bkrnd3 ctrlSetBackgroundColor [-1,-1,-1,0.5];
- bList_bkrnd3 ctrlCommit 0;
- bList_list = d_blacklistMenu ctrlCreate ["RscListbox", 7083];
- bList_list ctrlSetPosition [0.438125 * safezoneW + safezoneX,0.346 * safezoneH + safezoneY,0.12375 * safezoneW,0.165 * safezoneH];
- { _bL_index = bList_list lbAdd _x; } forEach JAM_blacklist;
- bList_list ctrlCommit 0;
- bList_remove = d_blacklistMenu ctrlCreate ["RscButtonMenu", 7084];
- bList_remove ctrlSetText "REMOVE FROM BLACKLIST";
- bList_remove ctrlSetPosition [0.438125 * safezoneW + safezoneX,0.522 * safezoneH + safezoneY,0.12375 * safezoneW,0.022 * safezoneH];
- bList_remove ctrladdEventHandler ["ButtonClick",
- "
- JAM_blacklist deleteAt (JAM_blacklist find (bList_list lbText (lbCurSel bList_list)));
- lbClear bList_list;
- { _bL_index = bList_list lbAdd _x; } forEach JAM_blacklist;
- "];
- bList_remove ctrlCommit 0;
- bList_permaFuck = d_blacklistMenu ctrlCreate ["RscButtonMenu", 7085];
- bList_permaFuck ctrlSetText "PERMA FUCK";
- bList_permaFuck ctrlSetPosition [0.391719 * safezoneW + safezoneX,0.401 * safezoneH + safezoneY,0.04125 * safezoneW,0.055 * safezoneH];
- bList_permaFuck ctrladdEventHandler ["ButtonClick",
- "
- comment 'test';
- hint 'permanent fuckery is currently not available';
- "];
- bList_permaFuck ctrlCommit 0;
- bList_earRape = d_blacklistMenu ctrlCreate ["RscButtonMenu", 7086];
- bList_earRape ctrlSetText "EAR RAPE";
- bList_earRape ctrlSetPosition [0.567031 * safezoneW + safezoneX,0.401 * safezoneH + safezoneY,0.04125 * safezoneW,0.055 * safezoneH];
- bList_earRape ctrladdEventHandler ["ButtonClick",
- "
- comment 'test';
- hint 'ear rape not available';
- "];
- bList_earRape ctrlCommit 0;
- bList_close = d_blacklistMenu ctrlCreate ["RscButtonMenu", 7087];
- bList_close ctrlSetText "CLOSE";
- bList_close ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.566 * safezoneH + safezoneY,0.04125 * safezoneW,0.022 * safezoneH];
- bList_close ctrladdEventHandler ["ButtonClick",
- "
- d_blacklistMenu closeDisplay 0;
- "];
- bList_close ctrlCommit 0;
- bList_return = d_blacklistMenu ctrlCreate ["RscButtonMenu", 7088];
- bList_return ctrlSetText "RETURN";
- bList_return ctrlSetPosition [0.386562 * safezoneW + safezoneX,0.566 * safezoneH + safezoneY,0.04125 * safezoneW,0.022 * safezoneH];
- bList_return ctrladdEventHandler ["ButtonClick",
- "
- d_blacklistMenu closeDisplay 0;
- [] spawn JAM_open_mainMenu;
- "];
- bList_return ctrlCommit 0;
- comment "Load Saved States of Controls";
- if (isNil "JAM_blackListEnabled") then {JAM_blackListEnabled = false;};
- if (JAM_blackListEnabled) then {bList_cb cbSetChecked true;};
- };
- comment "----------------------------------------------------------";
- comment "----------------PLAYERVehicleVarNameLIST------------------";
- comment "----------------------------------------------------------";
- JAM_open_playerVehicleVarNameList =
- {
- disableSerialization;
- d_playerVehicleVarNameList = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- VVN_listBox = d_playerVehicleVarNameList ctrlCreate ["RscListbox", 7612];
- VVN_listBox ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.154687 * safezoneW,0.209 * safezoneH];
- { _pL_index = VVN_listBox lbAdd ((name _x) + " | " + (vehicleVarName _x));} forEach allPlayers;
- VVN_listBox ctrlCommit 0;
- VVN_titleBar = d_playerVehicleVarNameList ctrlCreate ["RscText", 7613];
- VVN_titleBar ctrlSetText "JAM | Player (VehicleVarName) List";
- VVN_titleBar ctrlSetBackgroundColor [-1,-1,-1,1];
- VVN_titleBar ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.154687 * safezoneW,0.022 * safezoneH];
- VVN_titleBar ctrlCommit 0;
- VVN_return = d_playerVehicleVarNameList ctrlCreate ["RscButtonMenu", 7614];
- VVN_return ctrlSetText "RETURN";
- VVN_return ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.0464063 * safezoneW,0.044 * safezoneH];
- VVN_return ctrladdEventHandler ["ButtonClick",
- "
- d_playerVehicleVarNameList closeDisplay 0;
- [] spawn JAM_open_mainMenu;
- "];
- VVN_return ctrlCommit 0;
- VVN_close = d_playerVehicleVarNameList ctrlCreate ["RscButtonMenu", 7615];
- VVN_close ctrlSetText "CLOSE";
- VVN_close ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.0464063 * safezoneW,0.044 * safezoneH];
- VVN_close ctrladdEventHandler ["ButtonClick",
- "
- d_playerVehicleVarNameList closeDisplay 0;
- "];
- VVN_close ctrlCommit 0;
- };
- comment "----------------------------------------------------------";
- comment "-------------------SERVER MENU GUI------------------------";
- comment "----------------------------------------------------------";
- JAM_open_serverMenu =
- {
- disableSerialization;
- d_serverMenu = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- sM_MainFrame = d_serverMenu ctrlCreate ["RscFrame", 7089];
- sM_MainFrame ctrlSetText "created by J-WoLF";
- sM_MainFrame ctrlSetPosition [0.280447 * safezoneW + safezoneX,0.1953 * safezoneH + safezoneY,0.438281 * safezoneW,0.704 * safezoneH];
- sM_MainFrame ctrlCommit 0;
- sM_bkgrnd = d_serverMenu ctrlCreate ["RscText", 7090];
- sM_bkgrnd ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.225 * safezoneH + safezoneY,0.4125 * safezoneW,0.55 * safezoneH];
- sM_bkgrnd ctrlSetBackgroundColor [0,0,0,0.8];
- sM_bkgrnd ctrlCommit 0;
- sM_border1 = d_serverMenu ctrlCreate ["RscText", 7091];
- sM_border1 ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.225 * safezoneH + safezoneY,0.4125 * safezoneW,0.099 * safezoneH];
- sM_border1 ctrlSetBackgroundColor [0.4,0,0,1];
- sM_border1 ctrlCommit 0;
- sM_border2 = d_serverMenu ctrlCreate ["RscText", 7092];
- sM_border2 ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.764 * safezoneH + safezoneY,0.4125 * safezoneW,0.011 * safezoneH];
- sM_border2 ctrlSetBackgroundColor [0.4,0,0,1];
- sM_border2 ctrlCommit 0;
- sM_border3 = d_serverMenu ctrlCreate ["RscPicture", 7093];
- sM_border3 ctrlSetText "#(ARGB,8,8,3)color(0.4,0,0,1)";
- sM_border3 ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.00515625 * safezoneW,0.44 * safezoneH];
- sM_border3 ctrlCommit 0;
- sM_border4 = d_serverMenu ctrlCreate ["RscPicture", 7094];
- sM_border4 ctrlSetText "#(ARGB,8,8,3)color(0.4,0,0,1)";
- sM_border4 ctrlSetPosition [0.567031 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.00515625 * safezoneW,0.44 * safezoneH];
- sM_border4 ctrlCommit 0;
- sM_border5 = d_serverMenu ctrlCreate ["RscPicture", 7095];
- sM_border5 ctrlSetText "#(ARGB,8,8,3)color(0.4,0,0,1)";
- sM_border5 ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.00515625 * safezoneW,0.44 * safezoneH];
- sM_border5 ctrlCommit 0;
- sM_border6 = d_serverMenu ctrlCreate ["RscPicture", 7096];
- sM_border6 ctrlSetText "#(ARGB,8,8,3)color(0.4,0,0,1)";
- sM_border6 ctrlSetPosition [0.701094 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.00515625 * safezoneW,0.44 * safezoneH];
- sM_border6 ctrlCommit 0;
- sM_return = d_serverMenu ctrlCreate ["RscButton", 7097];
- sM_return ctrlSetText "Return";
- sM_return ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.786 * safezoneH + safezoneY,0.407344 * safezoneW,0.044 * safezoneH];
- sM_return ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- [] spawn JAM_open_mainMenu;
- }];
- sM_return ctrlCommit 0;
- sM_close = d_serverMenu ctrlCreate ["RscButton", 7098];
- sM_close ctrlSetText "Close";
- sM_close ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.841 * safezoneH + safezoneY,0.407344 * safezoneW,0.044 * safezoneH];
- sM_close ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- }];
- sM_close ctrlCommit 0;
- sM_labelInfo = d_serverMenu ctrlCreate ["RscStructuredText", 7099];
- sM_labelInfo ctrlSetStructuredText parseText "<t align='center'>Server Info</t>";
- sM_labelInfo ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.134062 * safezoneW,0.022 * safezoneH];
- sM_labelInfo ctrlSetBackgroundColor [0,0,0,1];
- sM_labelInfo ctrlCommit 0;
- sM_labelServer = d_serverMenu ctrlCreate ["RscStructuredText", 7100];
- sM_labelServer ctrlSetStructuredText parseText "<t align='center'>Server Scripts</t>";
- sM_labelServer ctrlSetPosition [0.432968 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.134062 * safezoneW,0.022 * safezoneH];
- sM_labelServer ctrlSetBackgroundColor [0,0,0,1];
- sM_labelServer ctrlCommit 0;
- sM_labelGlobal = d_serverMenu ctrlCreate ["RscStructuredText", 7101];
- sM_labelGlobal ctrlSetStructuredText parseText "<t align='center'>Global Scripts</t>";
- sM_labelGlobal ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.291 * safezoneH + safezoneY,0.134062 * safezoneW,0.022 * safezoneH];
- sM_labelGlobal ctrlSetBackgroundColor [0,0,0,1];
- sM_labelGlobal ctrlCommit 0;
- sM_serverName = d_serverMenu ctrlCreate ["RscText", 7102];
- sM_serverName ctrlSetText ("[SERVER] " + serverName);
- sM_serverName ctrlSetPosition [0.335 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.37125 * safezoneW,0.044 * safezoneH];
- sM_serverName ctrlSetBackgroundColor [0,0,0,1];
- sM_serverName ctrlCommit 0;
- sM_missionName = d_serverMenu ctrlCreate ["RscStructuredText", 7103];
- sM_missionName ctrlSetStructuredText parseText ("<t size='0.7'>ServerCFG/Path: " + missionName);
- sM_missionName ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_missionName ctrlSetBackgroundColor [0,0,0,0.5];
- sM_missionName ctrlCommit 0;
- sM_worldName = d_serverMenu ctrlCreate ["RscStructuredText", 7104];
- sM_worldName ctrlSetStructuredText parseText ("<t size='0.7'>World: " + worldName);
- sM_worldName ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_worldName ctrlSetBackgroundColor [0,0,0,0.5];
- sM_worldName ctrlCommit 0;
- sM_briefingName = d_serverMenu ctrlCreate ["RscStructuredText", 7105];
- sM_briefingName ctrlSetStructuredText parseText ("<t size='0.7'>Scenario: " + briefingName);
- sM_briefingName ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.39 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_briefingName ctrlSetBackgroundColor [0,0,0,0.5];
- sM_briefingName ctrlCommit 0;
- sM_worldSize = d_serverMenu ctrlCreate ["RscStructuredText", 7106];
- sM_worldSize ctrlSetStructuredText parseText ("<t size='0.7'>MapSize: " + str worldSize + " meters");
- sM_worldSize ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.423 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_worldSize ctrlSetBackgroundColor [0,0,0,0.5];
- sM_worldSize ctrlCommit 0;
- sM_serverTime = d_serverMenu ctrlCreate ["RscStructuredText", 7107];
- sM_serverTime ctrlSetStructuredText parseText ("<t size='0.7'>Uptime: " + (str serverTime));
- sM_serverTime ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.456 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_serverTime ctrlSetBackgroundColor [0,0,0,0.5];
- sM_serverTime ctrlCommit 0;
- sM_FPS = d_serverMenu ctrlCreate ["RscStructuredText", 7109];
- sM_FPS ctrlSetStructuredText parseText ("<t size='0.7'>FPS: " + str diag_fps);
- sM_FPS ctrlSetPosition [0.298906 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.128906 * safezoneW,0.022 * safezoneH];
- sM_FPS ctrlSetBackgroundColor [0,0,0,0.5];
- sM_FPS ctrlCommit 0;
- sM_btn_clearDead = d_serverMenu ctrlCreate ["RscButton", 7113];
- sM_btn_clearDead ctrlSetText "Clear-the-Dead";
- sM_btn_clearDead ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_clearDead ctrlSetTextColor [0,1,0,1];
- sM_btn_clearDead ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_clearDead;
- }];
- sM_btn_clearDead ctrlCommit 0;
- sM_i_clearDead = d_serverMenu ctrlCreate ["RscStructuredText", 7114];
- sM_i_clearDead ctrlSetStructuredText parseText "<t size='0.5' align='center'>on Server | deletes anything dead.</t>";
- sM_i_clearDead ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.412 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_clearDead ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_clearDead ctrlCommit 0;
- sM_btn_AASJIP = d_serverMenu ctrlCreate ["RscButton", 7115];
- sM_btn_AASJIP ctrlSetText "Arsenal-At-Spawn (JIP)";
- sM_btn_AASJIP ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.434 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_AASJIP ctrlSetTextColor [0,1,0,1];
- sM_btn_AASJIP ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_AASJIP;
- }];
- sM_btn_AASJIP ctrlCommit 0;
- sM_i_AASJIP = d_serverMenu ctrlCreate ["RscStructuredText", 7116];
- sM_i_AASJIP ctrlSetStructuredText parseText "<t size='0.5' align='center'>all clients + new | opens arsenal on respawn.</t>";
- sM_i_AASJIP ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.467 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_AASJIP ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_AASJIP ctrlCommit 0;
- sM_btn_updateZeusObj = d_serverMenu ctrlCreate ["RscButton", 7117];
- sM_btn_updateZeusObj ctrlSetText "Update-Zeus-Obj";
- sM_btn_updateZeusObj ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_updateZeusObj ctrlSetTextColor [0,1,0,1];
- sM_btn_updateZeusObj ctrladdEventHandler ["ButtonClick", {
- [] spawn JAM_fnc_updateZeusObj;
- }];
- sM_btn_updateZeusObj ctrlCommit 0;
- sM_i_updateZeusObj = d_serverMenu ctrlCreate ["RscStructuredText", 7118];
- sM_i_updateZeusObj ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server | enables editing of all objects for curators.</t>";
- sM_i_updateZeusObj ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.522 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_updateZeusObj ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_updateZeusObj ctrlCommit 0;
- sM_btn_viewDistance = d_serverMenu ctrlCreate ["RscButton", 7119];
- sM_btn_viewDistance ctrlSetText "Set-ViewDistance (JIP)";
- sM_btn_viewDistance ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_viewDistance ctrlSetTextColor [0,1,0,1];
- sM_btn_viewDistance ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- [] call JAM_fnc_viewDistance;
- }];
- sM_btn_viewDistance ctrlCommit 0;
- sM_i_viewDistance = d_serverMenu ctrlCreate ["RscStructuredText", 7120];
- sM_i_viewDistance ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server + new | open VD menu for desired VD.</t>";
- sM_i_viewDistance ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.577 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_viewDistance ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_viewDistance ctrlCommit 0;
- sM_btn_deleteMenu = d_serverMenu ctrlCreate ["RscButton", 7121];
- sM_btn_deleteMenu ctrlSetText "Delete Radius";
- sM_btn_deleteMenu ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.599 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_deleteMenu ctrlSetTextColor [0,1,0,1];
- sM_btn_deleteMenu ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- [] call jam_deleteMenu;
- hint "JAM: Scroll wheel to select delete radius.";
- }];
- sM_btn_deleteMenu ctrlCommit 0;
- sM_btn_wipeMap = d_serverMenu ctrlCreate ["RscButton", 7999];
- sM_btn_wipeMap ctrlSetText "Delete All Objects";
- sM_btn_wipeMap ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.654 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_wipeMap ctrlSetTextColor [0,1,0,1];
- sM_btn_wipeMap ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_deleteAll;
- }];
- sM_btn_wipeMap ctrlCommit 0;
- sM_i_wipeMap = d_serverMenu ctrlCreate ["RscStructuredText", 7998];
- sM_i_wipeMap ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server | delete everything - missionModules.</t>";
- sM_i_wipeMap ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.687 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_wipeMap ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_wipeMap ctrlCommit 0;
- sM_btn_killRadius = d_serverMenu ctrlCreate ["RscButton", 9201];
- sM_btn_killRadius ctrlSetText "Kill Radius";
- sM_btn_killRadius ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.709 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_killRadius ctrlSetTextColor [0,1,0,1];
- sM_btn_killRadius ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- [] call jam_killMenu;
- }];
- sM_btn_killRadius ctrlCommit 0;
- sM_i_killRadius = d_serverMenu ctrlCreate ["RscStructuredText", 9200];
- sM_i_killRadius ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server | delete everything - missionModules.</t>";
- sM_i_killRadius ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.742 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_killRadius ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_killRadius ctrlCommit 0;
- sM_btn_showPlayersOnMap = d_serverMenu ctrlCreate ["RscButton", 7994];
- sM_btn_showPlayersOnMap ctrlSetText "ShowPlayersOnMap";
- sM_btn_showPlayersOnMap ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.134062 * safezoneW,0.033 * safezoneH];
- sM_btn_showPlayersOnMap ctrlSetTextColor [0,1,0,1];
- sM_btn_showPlayersOnMap ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_showPlayersOnMap;
- }];
- sM_btn_showPlayersOnMap ctrlCommit 0;
- sM_i_showPlayersOnMap = d_serverMenu ctrlCreate ["RscStructuredText", 7995];
- sM_i_showPlayersOnMap ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server | delete everything - missionModules.</t>";
- sM_i_showPlayersOnMap ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_showPlayersOnMap ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_showPlayersOnMap ctrlCommit 0;
- sM_i_deleteMenu = d_serverMenu ctrlCreate ["RscStructuredText", 7122];
- sM_i_deleteMenu ctrlSetStructuredText parseText "<t size='0.5' align='center'>on server | deletes objects in radius</t>";
- sM_i_deleteMenu ctrlSetPosition [0.432969 * safezoneW + safezoneX,0.632 * safezoneH + safezoneY,0.134062 * safezoneW,0.011 * safezoneH];
- sM_i_deleteMenu ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_deleteMenu ctrlCommit 0;
- sM_btn_optionsMenu = d_serverMenu ctrlCreate ["RscButton", 7123];
- sM_btn_optionsMenu ctrlSetText "Give-ClientOptions";
- sM_btn_optionsMenu ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH];
- sM_btn_optionsMenu ctrlSetTextColor [0,0,1,1];
- sM_btn_optionsMenu ctrladdEventHandler ["ButtonClick", {
- d_serverMenu closeDisplay 0;
- [] spawn JAM_fnc_clientOptions;
- }];
- sM_btn_optionsMenu ctrlCommit 0;
- sM_i_optionsMenu = d_serverMenu ctrlCreate ["RscStructuredText", 7124];
- sM_i_optionsMenu ctrlSetStructuredText parseText "<t size='0.5' align='center'>All clients | viewDistance and noFatigue</t>";
- sM_i_optionsMenu ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.128906 * safezoneW,0.011 * safezoneH];
- sM_i_optionsMenu ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_optionsMenu ctrlCommit 0;
- sM_btn_TP_All_to_Self = d_serverMenu ctrlCreate ["RscButton", 7125];
- sM_btn_TP_All_to_Self ctrlSetText "TP All (to self)";
- sM_btn_TP_All_to_Self ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.379 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH];
- sM_btn_TP_All_to_Self ctrlSetTextColor [0,0,1,1];
- sM_btn_TP_All_to_Self ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_TP_allToSelf;
- }];
- sM_btn_TP_All_to_Self ctrlCommit 0;
- sM_i_TP_All_to_Self = d_serverMenu ctrlCreate ["RscStructuredText", 7126];
- sM_i_TP_All_to_Self ctrlSetStructuredText parseText "<t size='0.5' align='center'>All clients | everyone will transport to you.</t>";
- sM_i_TP_All_to_Self ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.412 * safezoneH + safezoneY,0.128906 * safezoneW,0.011 * safezoneH];
- sM_i_TP_All_to_Self ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_TP_All_to_Self ctrlCommit 0;
- sM_btn_respawnAll = d_serverMenu ctrlCreate ["RscButton", 7129];
- sM_btn_respawnAll ctrlSetText "ForceRespawn-All";
- sM_btn_respawnAll ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.434 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH];
- sM_btn_respawnAll ctrlSetTextColor [0,0,1,1];
- sM_btn_respawnAll ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_respawnAll;
- }];
- sM_btn_respawnAll ctrlCommit 0;
- sM_i_respawnAll = d_serverMenu ctrlCreate ["RscStructuredText", 7130];
- sM_i_respawnAll ctrlSetStructuredText parseText "<t size='0.5' align='center'>all clients - Zeus | die without score loss.</t>";
- sM_i_respawnAll ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.467 * safezoneH + safezoneY,0.128906 * safezoneW,0.011 * safezoneH];
- sM_i_respawnAll ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_respawnAll ctrlCommit 0;
- sM_btn_shw3DPlrNm = d_serverMenu ctrlCreate ["RscButton", 7770];
- sM_btn_shw3DPlrNm ctrlSetText "Show3DPlayerNames";
- sM_btn_shw3DPlrNm ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.489 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH];
- sM_btn_shw3DPlrNm ctrlSetTextColor [0,0,1,1];
- sM_btn_shw3DPlrNm ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_show3DPlayerNames;
- }];
- sM_btn_shw3DPlrNm ctrlCommit 0;
- sM_i_shw3DPlrNm = d_serverMenu ctrlCreate ["RscStructuredText", 7771];
- sM_i_shw3DPlrNm ctrlSetStructuredText parseText "<t size='0.5' align='center'>allPlayers | everyone sees names over players up to 1500m.</t>";
- sM_i_shw3DPlrNm ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.522 * safezoneH + safezoneY,0.128906 * safezoneW,0.011 * safezoneH];
- sM_i_shw3DPlrNm ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_shw3DPlrNm ctrlCommit 0;
- sM_btn_disableFatigue = d_serverMenu ctrlCreate ["RscButton", 7772];
- sM_btn_disableFatigue ctrlSetText "Infinite Stamina";
- sM_btn_disableFatigue ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.544 * safezoneH + safezoneY,0.128906 * safezoneW,0.033 * safezoneH];
- sM_btn_disableFatigue ctrlSetTextColor [0,0,1,1];
- sM_btn_disableFatigue ctrladdEventHandler ["ButtonClick", {
- [] call JAM_fnc_disableFatigueGlobal;
- }];
- sM_btn_disableFatigue ctrlCommit 0;
- sM_i_disableFatigue = d_serverMenu ctrlCreate ["RscStructuredText", 7773];
- sM_i_disableFatigue ctrlSetStructuredText parseText "<t size='0.5' align='center'>allPlayers | click to toggle fatigue off and on.</t>";
- sM_i_disableFatigue ctrlSetPosition [0.572187 * safezoneW + safezoneX,0.577 * safezoneH + safezoneY,0.128906 * safezoneW,0.011 * safezoneH];
- sM_i_disableFatigue ctrlSetBackgroundColor [0,0,0,0.6];
- sM_i_disableFatigue ctrlCommit 0;
- sM_BIS = d_serverMenu ctrlCreate ["RscPicture", 7131];
- sM_BIS ctrlSetText "\A3\Data_F\Flags\Flag_bis_CO.paa";
- sM_BIS ctrlSetPosition [0.29375 * safezoneW + safezoneX,0.236 * safezoneH + safezoneY,0.04125 * safezoneW,0.044 * safezoneH];
- sM_BIS ctrlCommit 0;
- };
- comment "----------------------------------------------------------";
- comment "--------------------CLIENT OPTIONS------------------------";
- comment "----------------------------------------------------------";
- JAM_fnc_clientOptions =
- {
- if (isNil "clientOptionsTggl") then {clientOptionsTggl = 1};
- if (clientOptionsTggl == 1) then {
- [["Give_Options_To_Players"],{
- JAM_open_customOptions =
- {
- disableSerialization;
- display_Options = (findDisplay 46) createDisplay "RscDisplayEmpty";
- showChat true;
- ctrl_OpTitle = display_Options ctrlCreate ["RscText", 7132];
- ctrl_OpTitle ctrlSetText " JAM | Custom Options";
- ctrl_OpTitle ctrlSetPosition [0.4175 * safezoneW + safezoneX,0.148 * safezoneH + safezoneY,0.159844 * safezoneW,0.033 * safezoneH];
- ctrl_OpTitle ctrlSetTextColor [1,1,1,1];
- ctrl_OpTitle ctrlSetBackgroundColor [0.5,-1,-1,1];
- ctrl_OpTitle ctrlCommit 0;
- ctrl_OpTitleFrame = display_Options ctrlCreate ["RscFrame", 7133];
- ctrl_OpTitleFrame ctrlSetText "created by J-WoLF";
- ctrl_OpTitleFrame ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.137 * safezoneH + safezoneY,0.170156 * safezoneW,0.055 * safezoneH];
- ctrl_OpTitleFrame ctrlCommit 0;
- ctrl_OpFrame = display_Options ctrlCreate ["RscFrame", 7134];
- ctrl_OpFrame ctrlSetPosition [0.412344 * safezoneW + safezoneX,0.203 * safezoneH + safezoneY,0.170156 * safezoneW,0.176 * safezoneH];
- ctrl_OpFrame ctrlCommit 0;
- ctrl_OpLeftMenu = display_Options ctrlCreate ["RscText", 7135];
- ctrl_OpLeftMenu ctrlSetPosition [0.4175 * safezoneW + safezoneX,0.214 * safezoneH + safezoneY,0.04125 * safezoneW,0.154 * safezoneH];
- ctrl_OpLeftMenu ctrlSetBackgroundColor [0,0,0,1];
- ctrl_OpLeftMenu ctrlCommit 0;
- ctrl_OpRightMenu = display_Options ctrlCreate ["RscText", 7136];
- ctrl_OpRightMenu ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.214 * safezoneH + safezoneY,0.118594 * safezoneW,0.154 * safezoneH];
- ctrl_OpRightMenu ctrlSetBackgroundColor [0,0,0,0.8];
- ctrl_OpRightMenu ctrlCommit 0;
- ctrl_OpExit = display_Options ctrlCreate ["RscButton", 7137];
- ctrl_OpExit ctrlSetText "X";
- ctrl_OpExit ctrlSetPosition [0.556719 * safezoneW + safezoneX,0.148 * safezoneH + safezoneY,0.020625 * safezoneW,0.033 * safezoneH];
- ctrl_OpExit ctrlSetBackgroundColor [0,0,0,1];
- ctrl_OpExit ctrlSetTooltip "Close";
- ctrl_OpExit ctrladdEventHandler ["ButtonClick",
- {
- display_Options closeDisplay 0;
- }];
- ctrl_OpExit ctrlCommit 0;
- ctrl_OpText1 = display_Options ctrlCreate ["RscText", 7138];
- ctrl_OpText1 ctrlSetText ("Welcome, " + (name player) + ".");
- ctrl_OpText1 ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.214 * safezoneH + safezoneY,0.118594 * safezoneW,0.055 * safezoneH];
- ctrl_OpText1 ctrlCommit 0;
- ctrl_OpText2 = display_Options ctrlCreate ["RscText", 7139];
- ctrl_OpText2 ctrlSetText "View Distance";
- ctrl_OpText2 ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.2635 * safezoneH + safezoneY,0.118594 * safezoneW,0.055 * safezoneH];
- ctrl_OpText2 ctrlCommit 0;
- ctrl_OpText3 = display_Options ctrlCreate ["RscText", 7140];
- ctrl_OpText3 ctrlSetText "Disable Fatigue";
- ctrl_OpText3 ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.313 * safezoneH + safezoneY,0.118594 * safezoneW,0.055 * safezoneH];
- ctrl_OpText3 ctrlCommit 0;
- ctrl_OpLine1 = display_Options ctrlCreate ["RscText", 7141];
- ctrl_OpLine1 ctrlSetText "----------------------------------------------------------------------";
- ctrl_OpLine1 ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.203 * safezoneH + safezoneY,0.113437 * safezoneW,0.033 * safezoneH];
- ctrl_OpLine1 ctrlCommit 0;
- ctrl_OpLine2 = display_Options ctrlCreate ["RscText", 7142];
- ctrl_OpLine2 ctrlSetText "----------------------------------------------------------------------";
- ctrl_OpLine2 ctrlSetPosition [0.45875 * safezoneW + safezoneX,0.346 * safezoneH + safezoneY,0.113437 * safezoneW,0.033 * safezoneH];
- ctrl_OpLine2 ctrlCommit 0;
- ctrl_OpLine3 = display_Options ctrlCreate ["RscText", 7143];
- ctrl_OpLine3 ctrlSetText "----------------------------------------------------------------------";
- ctrl_OpLine3 ctrlSetPosition [0.4175 * safezoneW + safezoneX,0.214 * safezoneH + safezoneY,0.0360937 * safezoneW,0.011 * safezoneH];
- ctrl_OpLine3 ctrlCommit 0;
- ctrl_OpLine4 = display_Options ctrlCreate ["RscText", 7144];
- ctrl_OpLine4 ctrlSetText "----------------------------------------------------------------------";
- ctrl_OpLine4 ctrlSetPosition [0.4175 * safezoneW + safezoneX,0.357 * safezoneH + safezoneY,0.0360937 * safezoneW,0.011 * safezoneH];
- ctrl_OpLine4 ctrlCommit 0;
- ctrl_OpHint = display_Options ctrlCreate ["RscText", 7145];
- ctrl_OpHint ctrlSetText "[Numpad 7] Re-open this menu.";
- ctrl_OpHint ctrlSetPosition [0.438125 * safezoneW + safezoneX,0.39 * safezoneH + safezoneY,0.118594 * safezoneW,0.033 * safezoneH];
- ctrl_OpHint ctrlCommit 0;
- ctrl_Op_cb_Fatigue = display_Options ctrlCreate ["RscCheckbox", 7147];
- ctrl_Op_cb_Fatigue ctrlSetPosition [0.427812 * safezoneW + safezoneX,0.324 * safezoneH + safezoneY,0.020625 * safezoneW,0.033 * safezoneH];
- ctrl_Op_cb_Fatigue ctrladdEventHandler ["ButtonClick", {
- If (!Fatigue_disabled) then {
- Fatigue_disabled = true;
- } else {
- Fatigue_disabled = false;
- };
- If (Fatigue_disabled) then {
- EH_noFatigue = player addEventHandler ["Respawn", {
- player enableFatigue false;
- }];
- Hint "EH added (Fatigue Disabled)."
- } else {
- player removeEventHandler ["Respawn", EH_noFatigue];
- Hint "EH removed (Fatigue Enabled)."
- };
- }];
- ctrl_Op_cb_Fatigue ctrlCommit 0;
- ctrl_Op_edit_VD = display_Options ctrlCreate ["RscEdit", 7148];
- ctrl_Op_edit_VD ctrlSetText str (viewDistance);
- ctrl_Op_edit_VD ctrlSetPosition [0.422656 * safezoneW + safezoneX,0.28 * safezoneH + safezoneY,0.0309375 * safezoneW,0.022 * safezoneH];
- ctrl_Op_edit_VD ctrlSetBackgroundColor [1,1,1,0.5];
- ctrl_Op_edit_VD ctrladdEventHandler ["KeyDown", "if (_this select 1 == 28) then {
- newVD = parseNumber (ctrlText ctrl_Op_edit_VD);
- setViewDistance newVD;
- VD_updated = true;
- }"];
- ctrl_Op_edit_VD ctrlCommit 0;
- comment "Load Saved States of Controls";
- If (isNil "Fatigue_disabled") then {Fatigue_disabled = false;};
- If (Fatigue_disabled) then {ctrl_Op_cb_Fatigue cbSetChecked true;};
- If (isNil "VD_updated") then {VD_updated = false;};
- If (VD_updated) then {ctrl_Op_edit_VD ctrlSetText str newVD;};
- };
- waitUntil { !(IsNull (findDisplay 46)) };
- JAM_bind_customOptions = (findDisplay 46) displayaddEventHandler ["KeyDown", "if (_this select 1 == 71) then {[] spawn JAM_open_customOptions;}"];
- hint "JAM: Press Number-pad 7 to open custom options menu.";
- waitUntil { not alive player };
- waitUntil { alive player };
- [] spawn JAM_open_customOptions;
- }] remoteExec ["spawn",0,"customOptions"];
- titleText ["<t color='#42D6FC'>clientOptions </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- clientOptionsTggl = 0;
- } else {
- [[],{
- display_Options closeDisplay 0;
- systemChat "JAM: CustomOptions display closed.";
- player removeEventHandler ["Respawn", EH_noFatigue];
- player enableFatigue true;
- systemChat "JAM: No-fatigue disabled.";
- }] remoteExec ["spawn",0];
- [[],{comment "do nothing at all";}] remoteExec ["spawn",0,"customOptions"];
- playSound "hint";
- titleText ["<t color='#42D6FC'>clientOptions </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- clientOptionsTggl = 1;
- };
- };
- comment "----------------------------------------------------------";
- comment "---------------------SCROLL MENUS-------------------------";
- comment "----------------------------------------------------------";
- comment "targetMenu";
- JAM_open_targetMenu = {
- onEachFrame {
- if (name cursorTarget == "Error: No unit") then
- {
- drawIcon3D ['A3\ui_f_curator\Data\CfgCurator\entity_disabled_ca.paa', [0,1,1,1], [visiblePosition cursorTarget select 0, visiblePosition cursorTarget select 1, (getPosATL cursorTarget select 2) + 1], 1, 1, 0, typeOf cursorTarget, 2, 0.05, 'PuristaMedium', 'center', false];
- }
- else
- {
- drawIcon3D ['A3\ui_f_curator\Data\CfgCurator\entity_disabled_ca.paa', [0,1,1,1], [visiblePosition cursorTarget select 0, visiblePosition cursorTarget select 1, (getPosATL cursorTarget select 2) + 1], 1, 1, 0, name cursorTarget, 2, 0.05, 'PuristaMedium', 'center', false];
- };
- };
- [] spawn {
- waitUntil {!alive player};
- onEachFrame {};
- };
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;onEachFrame {};}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; [] spawn JAM_open_mainMenu; onEachFrame {};}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Unflip Object</t>", {cursorTarget call JAM_fnc_unflip;}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Attach-To-Self</t>", {call jam_targetAttach}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Detach Object</t>", {call jam_targetDetach}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Delete Object</t>", {call jam_targetDelete}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Repair (Heal)</t>", {call jam_targetRepair}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Destroy (Kill)</t>", {call jam_targetDestroy}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Refuel (Stamina)</t>", {call jam_targetRefuel}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Empty Fuel</t>", {call jam_targetEmptyFuel}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>[+]Arsenal</t>", {call jam_targetAddArsenal}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Strip Gear</t>", {call jam_targetStripGear}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Give GodMode</t>", {call jam_targetGodON}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Remove GodMode</t>", {call jam_targetGodOFF}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Add AI-Ignore</t>", {call jam_targetCaptiveON}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Remove AI-Ignore</t>", {call jam_targetCaptiveOFF}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Add USA Flag</t>", {call jam_targetAddFlag}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Remove USA Flag</t>", {call jam_targetRemoveFlag}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Lock Vehicle</t>", {cursorTarget lock true;}];
- player addAction ["JAM: <t color='#42D6FC'>Target: </t><t color='#ff6600'>Unlock Vehicle</t>", {cursorTarget lock false;}];
- };
- jam_targetAttach = {
- cursorTarget attachTo [player,[0.2,1.5,0]];
- Hint format ["[%1] has been attached to you.", (name cursorTarget)];
- };
- jam_targetDetach = {
- detach cursorTarget;
- Hint format ["[%1] has been detached from you.", (name cursorTarget)];
- };
- jam_targetDelete = {
- Hint format ["[%1] has been deleted.", (name cursorTarget)];
- deleteVehicle cursorTarget;
- };
- jam_targetGodON = {
- cursorTarget allowDamage false;
- Hint format ["[%1] now has damage turned off.", (name cursorTarget)];
- };
- jam_targetGodOFF = {
- cursorTarget allowDamage true;
- Hint format ["[%1] now has damage turned on.", (name cursorTarget)];
- };
- jam_targetCaptiveON = {
- cursorTarget setCaptive true;
- Hint format ["[%1] will now be ignored by AI.", (name cursorTarget)];
- };
- jam_targetCaptiveOFF = {
- cursorTarget setCaptive false;
- Hint format ["[%1] will now be noticed by AI.", (name cursorTarget)];
- };
- jam_targetDestroy = {
- if (cursorTarget in allPlayers) then {
- forceRespawn cursorTarget;
- Hint format ["[%1] has been force-respawned.", (name cursorTarget)];
- } else {
- cursorTarget setDamage 1;
- Hint format ["[%1] (%2) has been destroyed.", (name cursorTarget), (typeOf cursorTarget)];
- };
- };
- jam_targetRepair = {
- cursorTarget setDamage 0;
- Hint format ["[%1] has been fully repaired.", (name cursorTarget)];
- };
- jam_targetEmptyFuel = {
- cursorTarget setFuel 0;
- Hint format ["[%1] has been depleted of fuel.", (name cursorTarget)];
- };
- jam_targetRefuel = {
- if (cursorTarget in allPlayers) then {
- cursorTarget setFatigue 0;
- [["Your stamina has been recharged."],{
- player setFatigue 0;
- }] remoteExec ["spawn",cursorTarget];
- Hint format ["[%1] had his stamina recharged.", (name cursorTarget)];
- } else {
- cursorTarget setFuel 1;
- Hint format ["[%1] (%2) has been refueled.", (name cursorTarget), (typeOf cursorTarget)];
- };
- };
- jam_targetAddArsenal = {
- ["AmmoboxInit",[cursorTarget,true]] call BIS_fnc_arsenal;
- Hint format ["[%1] is now a full arsenal.", (name cursorTarget)];
- };
- jam_targetAddFlag = {
- cursorTarget forceFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- Hint format ["[%1] has become patriotic.", (name cursorTarget)];
- };
- jam_targetRemoveFlag = {
- cursorTarget forceFlagTexture "";
- Hint format ["[%1] no longer has a flag.", (name cursorTarget)];
- };
- jam_targetStripGear = {
- removeAllWeapons cursorTarget;
- removeAllAssignedItems cursorTarget;
- removeAllContainers cursorTarget;
- removeHeadgear cursorTarget;
- removeGoggles cursorTarget;
- removeAllItems cursorTarget;
- removeVest cursorTarget;
- removeBackpack cursorTarget;
- Hint format ["[%1] has been stripped of his gear.", (name cursorTarget)];
- };
- comment "playerMenu";
- JAM_open_playerMenu = {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; []spawn JAM_open_mainMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>GetIn</t>", {player moveInAny cursorTarget;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>GetOut</t>", {moveOut player;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Heal</t>", {player setDamage 0;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Suicide</t>", {player setDamage 1;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Attach</t>", {player attachTo [cursorTarget, [0,0,0]];playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Detach</t>", {detach player;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>God [ON]</t>", {player allowDamage false;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>God [OFF]</t>", {player allowDamage true;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Ignore [ON]</t>", {player setCaptive true;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>Ignore [OFF]</t>", {player setCaptive false;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>[+] Arsenal</t>", {call jam_playerAddArsenal}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>[+] Flag</t>", {call jam_playerAddFlag}];
- player addAction ["JAM: <t color='#42D6FC'>Player: </t><t color='#ff6600'>[-] Flag</t>", {call jam_playerRemoveFlag}];
- };
- jam_playerAddArsenal = {
- ["AmmoboxInit",[player,true]] call BIS_fnc_arsenal;
- playSound "Hint";
- };
- jam_playerAddFlag = {
- player forceFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- playSound "Hint";
- };
- jam_playerRemoveFlag = {
- player forceFlagTexture "";
- playSound "Hint";
- };
- comment "vehicleMenu";
- JAM_open_vehicleMenu = {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; []spawn JAM_open_mainMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>[+] USATrail</t>", {call jam_addUSASmokeTrail}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Repair</t>", {vehicle player setDamage 0;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Destroy</t>", {vehicle player setDamage 1;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Refuel</t>", {vehicle player setFuel 1;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Nofuel</t>", {vehicle player setFuel 0;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Attach</t>", {vehicle player attachTo [cursorTarget, [0,0,0]];playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Detach</t>", {detach vehicle player;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>God [ON]</t>", {vehicle player allowDamage false;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>God [OFF]</t>", {vehicle player allowDamage true;playSound "Hint";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>[+] Arsenal</t>", {call jam_vehicleAddArsenal}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>[+] Flag</t>", {call jam_vehicleAddFlag}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>[-] Flag</t>", {call jam_vehicleRemoveFlag}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Lock</t>", {vehicle player lock true;Hint "locked";}];
- player addAction ["JAM: <t color='#42D6FC'>Vehicle: </t><t color='#ff6600'>Unlock</t>", {vehicle player lock false;Hint "unlocked";}];
- };
- jam_addUSASmokeTrail = {
- _expl1 = "G_40mm_SmokeRed" createVehicle position vehicle player;
- _expl1 attachTo [vehicle player, [-0.1, 0.1, 0.15], "Pelvis"];
- _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ];
- _expl2 = "G_40mm_Smoke" createVehicle position vehicle player;
- _expl2 attachTo [vehicle player, [0, 0.15, 0.15], "Pelvis"];
- _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ];
- _expl3 = "G_40mm_SmokeBlue" createVehicle position vehicle player;
- _expl3 attachTo [vehicle player, [0.1, 0.1, 0.15], "Pelvis"];
- _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ];
- Hint "God, bless the United States of America.";
- };
- jam_vehicleAddArsenal = {
- ["AmmoboxInit",[vehicle player,true]] call BIS_fnc_arsenal;
- Hint format ["[%1] is now a full arsenal.", (name (vehicle player))];
- };
- jam_vehicleAddFlag = {
- vehicle player forceFlagTexture "\A3\Data_F\Flags\Flag_us_CO.paa";
- Hint "Serving with pride.";
- };
- jam_vehicleRemoveFlag = {
- vehicle player forceFlagTexture "";
- playSound "Hint";
- };
- comment "spawnMenu";
- JAM_open_CustomVehicles = {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; []spawn JAM_open_mainMenu;}];
- player addAction ["JAM: <t color='#FF8080'>Delete: </t><t color='#BDBDBD'>Vehicle</t>", {deleteVehicle vehicle player;}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>AmmoBox</t>", {call jam_spawnVAmmoBox}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Arsenal</t>", {call jam_spawnArsenal}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Quad Bike (BOMB)</t>", {call jam_spawnQuadBomb}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Quad Bike (GMG)</t>", {call jam_spawnQuadGMG}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Quad Bike (HMG)</t>", {call jam_spawnQuadHMG}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>MH-9 Hummingbird</t>", {call jam_spawnHummingbird}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>AH-9 Pawnee</t>", {call jam_spawnPawnee}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Prowler (Armed)</t>", {call jam_spawnProwler}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Offroad (Mk6)</t>", {call jam_spawnOffroadMortar}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Offroad (GMG)</t>", {call jam_spawnOffroadGMG}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Offroad (HMG)</t>", {call jam_spawnOffroadHMG}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>RHIB (GMG)</t>", {call jam_spawnRHIBgmg}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>RHIB (HMG)</t>", {call jam_spawnRHIBhmg}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>Caesar BTT (Racing)</t>", {call jam_spawnCaesarBTTRacing}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>F/A-181 Black Wasp II</t>", {call jam_spawnBlackWasp}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>BoatCar</t>", {call jam_spawnBoatCar}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>UCAV Sentinel</t>", {call jam_spawnUCAV}];
- player addAction ["JAM: <t color='#42D6FC'>Spawn: </t><t color='#ff6600'>InvisiDrone</t>", {call jam_spawnInvisiDrone}];
- };
- jam_spawnQuadBomb = {
- _quad = createVehicle ["B_G_Quadbike_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret = createVehicle ["B_GMG_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret attachTo [_quad, [0.1,0,0.6]];
- _charge1 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge1 attachTo [_quad, [-0.3, 0.63, -0.53]];
- _charge2 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge2 attachTo [_quad, [-0.3, 0.74, -0.53]];
- _charge3 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge3 attachTo [_quad, [-0.3, 0.85, -0.53]];
- _charge4 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge4 attachTo [_quad, [0.3, 0.63, -0.53]];
- _charge4 setDir 180;
- _charge5 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge5 attachTo [_quad, [0.3, 0.74, -0.53]];
- _charge5 setDir 180;
- _charge6 = "ModuleExplosive_DemoCharge_F" createVehicle position _quad;
- _charge6 attachTo [_quad, [0.3, 0.85, -0.53]];
- _charge6 setDir 180;
- _charge7 = "ModuleExplosive_SatchelCharge_F" createVehicle position _quad;
- _charge7 attachTo [_quad, [-0.35, -0.85, -0.45]];
- _charge8 = "ModuleExplosive_SatchelCharge_F" createVehicle position _quad;
- _charge8 attachTo [_quad, [0.38, -0.84, -0.45]];
- _detonater = _quad addAction ["<t color='#B40404'>Detonate Quadbike</t>",
- "{_x setDamage 1;} forEach nearestObjects [vehicle player, ['all'], 20];createVehicle ['Bo_GBU12_LGB',getPosATL vehicle player,[],0,'CAN_COLLIDE'];"];
- player moveInDriver _quad;
- playSound "Hint";
- systemChat "Quad (BOMB) Spawned.";
- };
- jam_spawnInvisiDrone = {
- [] spawn {
- InvisiDrone = [getPosATL player, 0, "B_UAV_06_medical_F", west] call BIS_fnc_spawnVehicle;
- createVehicleCrew (InvisiDrone select 0);
- InvisiDrone allowDamage false;
- InvisiDrone setObjectTextureGlobal [0,'\A3\nonExistantFile.paa'];
- sleep 1;
- InvisiDrone addWeaponTurret ["missiles_titan_static", [-1]];
- InvisiDrone addMagazineTurret ["1Rnd_GAT_missiles", [-1]];
- InvisiDrone addMagazineTurret ["1Rnd_GAA_missiles", [-1]];
- };
- };
- jam_spawnUCAV = {
- _uav = [getPosATL player, 0, "B_uav_05_F", west] call BIS_fnc_spawnVehicle;
- createVehicleCrew (_uav select 0);
- [_uav] joinSilent group player;
- };
- jam_spawnBoatCar = {
- [] spawn {
- player setVelocity [0,0,10];
- sleep 0.5;
- _quad = createVehicle ["B_G_Quadbike_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _quad setDir direction player;
- _rhib = createVehicle ["B_G_Boat_Transport_02_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _rhib attachTo [_quad, [0, 0, 0]];
- _hmg = createVehicle ["B_HMG_01_high_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmg attachTo [_rhib, [0.25,1.5,1]];
- player moveInDriver _quad;
- playSound "Hint";
- systemChat "BoatCar Spawned.";
- };
- };
- jam_spawnVAmmoBox = {
- _box = createVehicle ["Land_Ammobox_rounds_F",getPos player,[],0,"CAN_COLLIDE"];
- _box attachTo [player, [0, 1.5, 1.2]];
- detach _box;
- _box setDir direction player;
- ["AmmoboxInit",[_box,true]] call BIS_fnc_arsenal;
- player playMove "ainvpercmstpsraswrfldnon_putdown_amovpercmstpsraswrfldnon";
- playSound "Hint";
- systemChat "Arsenal Spawned.";
- };
- jam_spawnArsenal = {
- _flagpole = createVehicle ["Flag_ARMEX_F",getPos player,[],0,"CAN_COLLIDE"];
- _arsenal = createVehicle ["B_supplyCrate_F",getPos player,[],0,"CAN_COLLIDE"];
- _flagpole setDir direction player;
- _arsenal setDir direction player;
- _arsenal attachTo [_flagpole, [-0.1,-0.4,-3.2]];
- ["AmmoboxInit",[_arsenal,true]] call BIS_fnc_arsenal;
- _flagpole allowDamage false;
- _arsenal allowDamage false;
- playSound "Hint";
- systemChat "Arsenal Spawned.";
- };
- jam_spawnPawnee = {
- _pawnee = createVehicle ["B_Heli_Light_01_armed_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _pawnee setDir direction player;
- player moveInDriver _pawnee;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnHummingbird = {
- _bird = createVehicle ["B_Heli_Light_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _bird setDir direction player;
- player moveInDriver _bird;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnRHIBhmg = {
- _rhib = createVehicle ["B_G_Boat_Transport_02_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmg = createVehicle ["B_HMG_01_high_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmg attachTo [_rhib, [0.25,1.5,1]];
- _rhib setDir direction player;
- player moveInDriver _rhib;
- playSound "Hint";
- SystemChat "Vehicle Spawned.";
- };
- jam_spawnRHIBgmg = {
- _rhib = createVehicle ["B_G_Boat_Transport_02_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmg = createVehicle ["B_GMG_01_high_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmg attachTo [_rhib, [0.25,1.5,1]];
- _rhib setDir direction player;
- player moveInDriver _rhib;
- playSound "Hint";
- SystemChat "Vehicle Spawned.";
- };
- jam_spawnProwler = {
- _prowler = createVehicle ["B_LSV_01_armed_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _arsenal = createVehicle ["B_supplyCrate_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _arsenal attachTo [_prowler, [0,-1.45,0]];
- _prowler setDir direction player;
- player moveInDriver _prowler;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnQuadGMG = {
- _quad = createVehicle ["B_G_Quadbike_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret = createVehicle ["B_GMG_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret attachTo [_quad, [0.1,0,0.6]];
- _ammoBox1 = createVehicle ["Land_Ammobox_rounds_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _ammoBox1 attachTo [_quad, [0.40,-0.937,-0.35]];
- _ammoBox1 setDir 90;
- _ammoBox2 = createVehicle ["Land_Ammobox_rounds_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _ammoBox2 attachTo [_quad, [-0.42,-0.937,-0.35]];
- _ammoBox2 setDir 90;
- _quad setDir direction player;
- player moveInDriver _quad;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnQuadHMG = {
- _quad = createVehicle ["B_G_Quadbike_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret = createVehicle ["B_HMG_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _turret attachTo [_quad, [0.1,0,0.6]];
- _ammoBox1 = createVehicle ["Land_Ammobox_rounds_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _ammoBox1 attachTo [_quad, [0.40,-0.937,-0.35]];
- _ammoBox1 setDir 90;
- _ammoBox2 = createVehicle ["Land_Ammobox_rounds_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _ammoBox2 attachTo [_quad, [-0.42,-0.937,-0.35]];
- _ammoBox2 setDir 90;
- _quad setDir direction player;
- player moveInDriver _quad;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnOffroadMortar = {
- _offroad = createVehicle ["B_G_Offroad_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _offroad setObjectTextureGlobal [0, "#(ARGB,8,8,3)color(0.33,0.31,0.24,0.3)"];
- _mortar = createVehicle ["B_T_Mortar_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _mortar attachTo [_offroad, [0,-2,0]];
- _offroad setDir direction player;
- player moveInDriver _offroad;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnOffroadHMG = {
- _offroad = createVehicle ["B_G_Offroad_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _offroad setObjectTextureGlobal [0, "#(ARGB,8,8,3)color(0.33,0.31,0.24,0.3)"];
- _hmgturret = createVehicle ["B_HMG_01_high_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _hmgturret attachTo [_offroad, [0.2,-2,1]];
- _offroad setDir direction player;
- player moveInDriver _offroad;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnOffroadGMG = {
- _offroad = createVehicle ["B_G_Offroad_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _offroad setObjectTextureGlobal [0, "#(ARGB,8,8,3)color(0.33,0.31,0.24,0.3)"];
- _gmgturret = createVehicle ["B_GMG_01_high_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _gmgturret attachTo [_offroad, [0.2,-2,1]];
- _offroad setDir direction player;
- player moveInDriver _offroad;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnHunterAT = {
- _hunter = createVehicle ["B_MRAP_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _titanAT = createVehicle ["B_static_AT_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _titanAT attachTo [_hunter, [0,-2.65,1.6]];
- _hunter setDir direction player;
- player moveInDriver _hunter;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnHunterAA = {
- _hunter = createVehicle ["B_MRAP_01_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _titanAA = createVehicle ["B_static_AA_F",getPosATL player,[],0,"CAN_COLLIDE"];
- _titanAA attachTo [_hunter, [0,-2.65,1.6]];
- _hunter setDir direction player;
- player moveInDriver _hunter;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnCaesarBTTRacing = {
- _plane = createVehicle ["C_Plane_Civil_01_racing_F",getPosATL player,[],0,"FLY"];
- _plane setDir direction player;
- _pos = getPosATL player; _pos set [2, 500]; _plane setPosATL _pos;
- _plane setVelocity [150, 0, 0];
- player moveInDriver _plane;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- jam_spawnBlackWasp = {
- _plane = createVehicle ["B_Plane_Fighter_01_F",getPosATL player,[],0,"FLY"];
- _plane setDir direction player;
- _pos = getPosATL player; _pos set [2, 500]; _plane setPosATL _pos;
- _plane setVelocity [250, 0, 0];
- player moveInDriver _plane;
- playSound "Hint";
- systemChat "Vehicle Spawned.";
- };
- comment "cheatMenu";
- JAM_open_cheatMenu = {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; []spawn JAM_open_mainMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>Bullet-Changer</t>", {[] call JAM_open_ammoSelectMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>GodMode</t>", {[] call jam_god;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>InfAmmo</t>", {[] call jam_infAmmo;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>InfAmmoGroup</t>", {[] call jam_infAmmoGroup;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>InfStamina</t>", {[] call jam_infStamina;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>3D-ESP | Friendly Players</t>", {[] call jam_esp;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>Map-ESP| Friendly Players</t>", {[] call jam_mesp;}];
- player addAction ["JAM: <t color='#42D6FC'>Cheats: </t><t color='#ff6600'>3D-ESP | Enemy AI</t>", {[] call jam_hostileAIEsp;}];
- };
- jam_god = {
- if (isNil "GodTggle") then {GodTggle = 1};
- if (GodTggle == 1) then {
- GodTggle = 0;
- player setCaptive true;
- player allowDamage false;
- vehicle player allowDamage false;
- EH_godMode = player addEventHandler ["Respawn", {
- player setCaptive true;
- player allowDamage false;
- (vehicle player) allowDamage false;
- }];
- titleText ["<t color='#42D6FC'>GOD </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- } else {
- GodTggle = 1;
- player setCaptive false;
- player allowDamage true;
- vehicle player allowDamage true;
- player removeEventHandler ["Respawn", EH_godMode];
- titleText ["<t color='#42D6FC'>GOD </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- };
- };
- jam_infAmmo = {
- if (isNil "infAmmoTggle") then {infAmmoTggle = 1};
- if (infAmmoTggle == 1) then {
- infAmmoTggle = 0;
- titleText ["<t color='#42D6FC'>INFAMMO </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [] spawn {
- while {infAmmoTggle == 0} do {
- player setVehicleAmmo 1;
- vehicle player setVehicleAmmo 1;
- sleep 0.5;
- };
- };
- } else {
- infAmmoTggle = 1;
- titleText ["<t color='#42D6FC'>INFAMMO </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- };
- };
- jam_infAmmoGroup = {
- if (isNil "infAmmoGroupTggle") then {infAmmoGroupTggle = 1};
- if (infAmmoGroupTggle == 1) then {
- infAmmoGroupTggle = 0;
- titleText ["<t color='#42D6FC'>INFAMMOGroup </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [] spawn {
- while {infAmmoGroupTggle == 0} do {
- {
- _x setVehicleAmmo 1;
- vehicle _x setVehicleAmmo 1;
- } forEach units group player;
- sleep 0.5;
- };
- };
- } else {
- infAmmoGroupTggle = 1;
- titleText ["<t color='#42D6FC'>INFAMMO </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- };
- };
- jam_infStamina = {
- if (isNil "infStaminaTggle") then {infStaminaTggle = 1};
- if (infStaminaTggle == 1) then {
- infStaminaTggle = 0;
- player enableFatigue false;
- EH_cardio = player addEventHandler ["Respawn", {player enableFatigue false;}];
- titleText ["<t color='#42D6FC'>CARDIO </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- } else {
- infStaminaTggle = 1;
- player enableFatigue true;
- player removeEventHandler ["Respawn", EH_cardio];
- titleText ["<t color='#42D6FC'>CARDIO </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- };
- };
- jam_esp = {
- if (isNil 'jamESPTggle') then {jamESPTggle = 1};
- if (jamESPTggle == 1) then {
- jamESPTggle = 0;
- titleText ["<t color='#42D6FC'>ESP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [("
- jamEsp = addMi"+"ssionEve"+"ntHandler ['Dr"+"aw"+"3D',{
- {
- if ((side _x != side player) && (getPlayerUID _x != '') && ((player distance _x) < 1500)) then {
- dr"+"awIcon"+"3D['', [0, 0, 1, 1], [visi"+"blePosi"+"tion _x select 0, visi"+"blePo"+"sition _x select 1, (getPosATL _x select 2) + 2], 0.1, 0.1, 45, (format['%1 - %2m', name _x, round(player distance _x)]), 1, 0.04];
- } else {
- if ((getPlayerUID _x != '') && ((player distance _x) < 1500) && (name _x != name player)) then {
- d"+"rawIc"+"on3D['', [0, 0.2, 1, 1], [visi"+"blePos"+"ition _x select 0, visib"+"lePosi"+"tion _x select 1, (getPosATL _x select 2) + 2], 0.1, 0.1, 45, (format['%1 - %2m', name _x, round(player distance _x)]), 1, 0.04];
- };
- };
- } foreach call jam_fini_fnc_plrs;
- }];
- ")] call jam_fini_fnc_compile;
- } else {
- jamESPTggle = 1;
- titleText ["<t color='#42D6FC'>ESP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- [("re"+"moveMiss"+"ionEven"+"tHandler['Dr"+"a"+"w3D',jamEsp];")] call jam_fini_fnc_compile;
- };
- };
- jam_mesp = {
- if (isNil "mespTggle") then {mespTggle = 1};
- if (mespTggle == 1) then {
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAPESP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- mespTggle = 0;
- } else {
- playSound "Hint";
- titleText ["<t color='#42D6FC'>MAPESP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- mespTggle = 1;
- };
- [] spawn {
- [("
- while {mespTggle == 0} do {
- _units = call jam_fini_fnc_plrs;
- _unitCount = count _units;
- for '_i' from 0 to (_unitCount-1) do {
- _unit = _units select _i;
- if (alive _unit) then {
- del"+"eteMar"+"kerL"+"ocal('jam_plr' + (str _i));
- _namePlayer = name _unit;
- _mark_player = 'jam_plr' + (str _i);
- _mark_player = crea"+"teM"+"arker"+"Loc"+"al[_mark_player, getPos _unit];
- _mark_player setM"+"ark"+"er"+"Type"+"Local 'wa"+"ypo"+"int';
- _mark_player set"+"Ma"+"rk"+"erPo"+"sLoc"+"al(getPos _unit);
- _mark_player set"+"Marker"+"Col"+"orLo"+"cal 'Co"+"lorB"+"lue';
- _mark_player setM"+"ark"+"erT"+"ext"+"Loc"+"al format['%1 - %2', _namePlayer, round(player di"+"st"+"ance _unit)];
- };
- };
- sleep 0.5;
- };
- for '_i' from 0 to 500 do {
- de"+"l"+"ete"+"Ma"+"rkerLo"+"cal('jam_plr' + (str _i));
- };
- ")] call jam_fini_fnc_compile;
- };
- };
- jam_hostileAIEsp =
- {
- if (isNil 'jamhostileAIESPTggle') then {jamhostileAIESPTggle = 1};
- if (jamhostileAIESPTggle == 1) then {
- jamhostileAIESPTggle = 0;
- titleText ["<t color='#42D6FC'>ENEMY AI ESP </t><t color='#FFFFFF'>[ON]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- jamhostileAIEsp = addMissionEventHandler ['Draw3D',{
- {
- if ((side _x != side player) && ((player distance _x) < 1500)) then {
- drawIcon3D["", [1, 0, 0, 1], [visiblePosition _x select 0, visiblePosition _x select 1, 2], 0.1, 0.1, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.04, "EtelkaNarrowMediumPro"];
- } else {
- if (((player distance _x) < 1500) && (name _x != name player)) then {
- drawIcon3D["", [0, 0.5, 1, 1], [visiblePosition _x select 0, visiblePosition _x select 1, 2], 0.1, 0.1, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.04, "EtelkaNarrowMediumPro"];
- };
- };
- } forEach call jam_fini_fnc_hostileAI;
- }];
- } else {
- jamhostileAIESPTggle = 1;
- titleText ["<t color='#42D6FC'>ENEMY AI ESP </t><t color='#FFFFFF'>[OFF]</t>", "PLAIN DOWN", -1, true, true];
- playSound "Hint";
- removeMissionEventHandler['Draw3D',jamhostileAIEsp];
- };
- };
- comment "ammoSelectMenu";
- JAM_open_ammoSelectMenu = {
- removeAllActions player;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; [] spawn JAM_open_cheatMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>Dragon's Breath</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- removeAllActions player;
- player addAction ["<t color='#FF0000'>Extinguish Fire</t>", {
- {
- if (typeOf _x == "test_EmptyObjectForFireBig") then {
- deleteVehicle _x;
- };
- } forEach nearestObjects [player, ["all"], 35000] - allUnits;
- }];
- FEH_missile = player addEventHandler ["fired", {
- dragonBullet = nearestObject [_this select 0,_this select 4];
- dragonBulletPos = getPosASL dragonBullet;
- fireBall = createVehicle ["test_EmptyObjectForFireBig",dragonBulletPos,[],0,"CAN_COLLIDE"];
- if (!(cursorTarget == ObjNull)) then {
- bigFire = createVehicle ["test_EmptyObjectForFireBig",dragonBulletPos,[],0,"CAN_COLLIDE"];
- bigFire attachTo [dragonBullet,[0,0,0]];
- };
- [] spawn {
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- fireBall setPosASL [
- (dragonBulletPos select 0) + (_weapdir select 0)*_dist,
- (dragonBulletPos select 1) + (_weapdir select 1)*_dist,
- (dragonBulletPos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp dragonBullet;
- fireBall setVectorDirAndUp[_weapdir,_up];
- fireBall setVelocity velocity dragonBullet;
- sleep 3.5;
- deleteVehicle fireBall;
- };
- [] spawn {
- sleep 0.1;
- detach bigFire;
- bigFire attachTo [cursorTarget,[0,0,0]];
- sleep 3.5;
- deleteVehicle bigFire;
- };
- }];
- playSound "hint";
- systemChat "Fire balls Loaded into Magazine xD.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>82mm HE Mortar Shells</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {
- _bullet = nearestObject [_this select 0,_this select 4];
- _bulletpos = getPosASL _bullet;
- _o = "Sh_82mm_AMOS_LG" createVehicle _bulletpos;
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- _o setPosASL [
- (_bulletpos select 0) + (_weapdir select 0)*_dist,
- (_bulletpos select 1) + (_weapdir select 1)*_dist,
- (_bulletpos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp _bullet;
- _o setVectorDirAndUp[_weapdir,_up];
- _o setVelocity velocity _bullet;
- }];
- playSound "hint";
- systemChat "82mm HE Mortar Shells Loaded into Magazine xD.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>GBU-12</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {
- _bullet = nearestObject [_this select 0,_this select 4];
- _bulletpos = getPosASL _bullet;
- _o = "Bo_GBU12_LGB" createVehicle _bulletpos;
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- _o setPosASL [
- (_bulletpos select 0) + (_weapdir select 0)*_dist,
- (_bulletpos select 1) + (_weapdir select 1)*_dist,
- (_bulletpos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp _bullet;
- _o setVectorDirAndUp[_weapdir,_up];
- _o setVelocity velocity _bullet;
- }];
- playSound "hint";
- systemChat "GBU-12 Loaded into Magazine xD.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>12.7x108 mm Russian</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {
- _bullet = nearestObject [_this select 0,_this select 4];
- _bulletpos = getPosASL _bullet;
- _o = "B_127x108_Ball" createVehicle _bulletpos;
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- _o setPosASL [
- (_bulletpos select 0) + (_weapdir select 0)*_dist,
- (_bulletpos select 1) + (_weapdir select 1)*_dist,
- (_bulletpos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp _bullet;
- _o setVectorDirAndUp[_weapdir,_up];
- _o setVelocity velocity _bullet;
- }];
- playSound "hint";
- systemChat "12.7x108mm Russian Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>40 mm APFSDS</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {
- _bullet = nearestObject [_this select 0,_this select 4];
- _bulletpos = getPosASL _bullet;
- _o = "B_40mm_APFSDS" createVehicle _bulletpos;
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- _o setPosASL [
- (_bulletpos select 0) + (_weapdir select 0)*_dist,
- (_bulletpos select 1) + (_weapdir select 1)*_dist,
- (_bulletpos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp _bullet;
- _o setVectorDirAndUp[_weapdir,_up];
- _o setVelocity velocity _bullet;
- }];
- playSound "hint";
- systemChat "40 mm APFSDS Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#ff6600'>40 mm GPR</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {
- _bullet = nearestObject [_this select 0,_this select 4];
- _bulletpos = getPosASL _bullet;
- _o = "B_40mm_GPR" createVehicle _bulletpos;
- _weapdir = player weaponDirection currentWeapon player;
- _dist = 11;
- _o setPosASL [
- (_bulletpos select 0) + (_weapdir select 0)*_dist,
- (_bulletpos select 1) + (_weapdir select 1)*_dist,
- (_bulletpos select 2) + (_weapdir select 2)*_dist
- ];
- _up = vectorUp _bullet;
- _o setVectorDirAndUp[_weapdir,_up];
- _o setVelocity velocity _bullet;
- }];
- playSound "hint";
- systemChat "40 mm GPR Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#FF8080'>Destroyer</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {cursorTarget setDamage 1;}];
- playSound "hint";
- systemChat "Destroyer Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#7CFF7E'>Fixer</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {cursorTarget setDamage 0; cursorTarget setFuel 1;}];
- playSound "hint";
- systemChat "Fixer Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#FF8080'>Deleter</t>", {
- if (!isNil "FEH_missile") then {player removeEventHandler["fired", FEH_missile];};
- FEH_missile = player addEventHandler ["fired", {deleteVehicle cursorTarget;}];
- playSound "hint";
- systemChat "Deleter Loaded.";
- systemChat "JAM: Special ammo will be automatically removed upon death.";
- }];
- player addAction ["JAM: <t color='#42D6FC'>ChangeAmmo: </t><t color='#7CFF7E'>Default</t>", {
- player removeAllEventHandlers "Fired";
- playSound "hint";
- systemChat "Default Ammo Loaded. Event handlers under [Fired] have been removed.";
- }];
- };
- comment "serverMenu OLD";
- jam_deleteMenu = {
- removeAllActions player;
- _dR = 0;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; [] spawn JAM_open_serverMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>12000m</t>", {_dR = 12000; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>6000m</t>", {_dR = 6000; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>1280m</t>", {_dR = 1280; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>640m</t>", {_dR = 640; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>320m</t>", {_dR = 320; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>160m</t>", {_dR = 160; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>80m</t>", {_dR = 80; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>40m</t>", {_dR = 40; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>20m</t>", {_dR = 20; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>10m</t>", {_dR = 10; call jam_deleteRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>DM: </t><t color='#82E0AA'>5m</t>", {_dR = 5; call jam_deleteRadius;}];
- };
- jam_deleteRadius = {
- {deleteVehicle _x;} forEach nearestObjects [player, ["all"], _dR];
- playSound "Hint";
- };
- jam_killMenu = {
- removeAllActions player;
- _kR = 0;
- player addAction ["JAM: <t color='#BDBDBD'>[CANCEL]</t>", {removeAllActions player;}];
- player addAction ["JAM: <t color='#BDBDBD'>[RETURN]</t>", {removeAllActions player; [] spawn JAM_open_serverMenu;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>All</t>", {call jam_killAll}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>6000m</t>", {_kR = 6000; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>1280m</t>", {_kR = 1280; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>640m</t>", {_kR = 640; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>320m</t>", {_kR = 320; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>160m</t>", {_kR = 160; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>80m</t>", {_kR = 80; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>40m</t>", {_kR = 40; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>20m</t>", {_kR = 20; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>10m</t>", {_kR = 10; call jam_killRadius;}];
- player addAction ["JAM: <t color='#42D6FC'>Server: </t><t color='#ff6600'>KM: </t><t color='#82E0AA'>5m</t>", {_kR = 5; call jam_killRadius;}];
- };
- jam_killRadius = {
- { _x setDamage 1; } forEach nearestObjects [player, ["man"], _kR];
- playSound "Hint";
- };
- jam_killAll = {
- private["i","v","_case","_pos","_vechList","_vechCount"];
- _vechList = allPlayers;
- _vechCount = count _vechList;
- i = 0;
- for "i" from 0 to _vechCount do
- {
- v = _vechList select i;
- v setDamage 1;
- };
- playSound "Hint";
- };
- comment "----------------------------------------------------------";
- comment "-------------------ASSIGN KEYBINDS------------------------";
- comment "----------------------------------------------------------";
- _keybinds = [] spawn {
- waitUntil { !(IsNull (findDisplay 46)) };
- JAM_fnc_mapTP = {if (!_shift and _alt) then {(vehicle player) setPos _pos;};};
- JAM_bind_mapTP = ["JAMfncMapTP", "onMapSingleClick", JAM_fnc_MapTP] call BIS_fnc_addStackedEventHandler;
- JAM_bind_mainMenu = (findDisplay 46) displayaddEventHandler ["KeyDown", "if (_this select 1 == 76) then {[] spawn JAM_open_mainMenu;}"];
- JAM_bind_3DTP = (findDisplay 46) displayaddEventHandler ["KeyDown", "if (_this select 1 == 35) then {[] spawn JAM_fnc_3DTP;}"];
- JAM_bind_arsenal = (findDisplay 46) displayaddEventHandler ["KeyDown", "if (_this select 1 == 210) then {[] spawn JAM_open_arsenalMenu;}"];
- SystemChat "JAM: Default Key-binds loaded.";
- };
- _escMenu = [] spawn {
- while {true} do
- {
- waitUntil { not (isNull (findDisplay 49)) };
- ((findDisplay 49) displayCtrl 2) ctrlSetText "OPEN JAM V1.5A";
- ((findDisplay 49) displayCtrl 103) ctrlSetText "Created by J-WoLF";
- ((findDisplay 49) displayCtrl 2) ctrladdEventHandler ["ButtonClick",
- {
- [] spawn JAM_open_mainMenu;
- }];
- waitUntil { (isNull (findDisplay 49)) };
- };
- };
- comment "----------------------------------------------------------";
- comment "---------------------LOAD COMPLETE------------------------";
- comment "----------------------------------------------------------";
- JAM_isLoaded = true;
- if (JAM_isLoaded) then
- {
- ["TaskSucceeded",["","JAM: <t color='#42D6FC'>Initialization Complete.</t>"]] call BIS_fnc_showNotification;
- };
- comment "----------------------------------------------------------";
- comment "JAM V1.5A: J-WoLF's Admin Menu Version One (Alpha Release)";
- comment "----------------------------------------------------------";
Add Comment
Please, Sign In to add comment