Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.47 KB | None | 0 0
  1. _ad={
  2. _f_1=_this;
  3. _f_2=false;
  4. _f_3=0;
  5. _f_4=[[65,[194,195,196,197,256,258,260]],[67,[199,262,264,266,268]],[68,[208,270,272]],[69,[200,201,202,203,274,276,278,280,282]],[71,[284,286,288,290]],[72,[292,294]],[73,[204,205,206,207,296,298,300,302,304]],[74,[308,309]],[75,[310,312]],[76,[315,317,319]],[78,[209,323,325,327,330]],[79,[210,211,212,213,332,334,336]],[80,[222]],[82,[340,342,344]],[83,[346,350,352]],[84,[354,356]],[85,[217,218,219,360,362,364,366,370]],[87,[372]],[89,[221,374]],[90,[377,379]]];
  6. _f_5=[[97,[226,227,228,229,257,259,261]],[99,[231,263,265,267,269]],[100,[240,271,273]],[101,[232,233,234,235,275,277,279,281,283]],[103,[285,287,289,291]],[104,[293,295]],[105,[236,237,238,239,297,299,301,303,304]],[106,[309,309]],[107,[311,312]],[108,[316,318,320]],[110,[241,324,326,328,331]],[111,[242,243,244,245,333,335,337]],[112,[254]],[114,[341,343,345]],[115,[347,351,353]],[116,[355,357]],[117,[249,250,251,361,363,365,367,371]],[119,[373]],[121,[253,375]],[122,[378,380]]];
  7. _f_6=toArray _f_1;
  8.  
  9. {
  10. if(_forEachIndex % 3 == 0) then {
  11. _f_7=_x;
  12. _f_8=_forEachIndex;
  13. {
  14. if(_x select 0==_f_7)then{
  15. if(_f_2)then{
  16. _f_6 set[_f_8,selectRandom(_x select 1)];
  17. }else{
  18. _ready=_x select 1;
  19. if((count _ready-1)>=_f_3)then{
  20. _f_6 set[_f_8,_ready select _f_3];
  21. }else{
  22. _f_6 set[_f_8,_ready select(count _ready-1)];
  23. };
  24. };
  25. };
  26. }forEach(_f_5+_f_4);
  27. };
  28. }forEach _f_6;
  29. toString _f_6;
  30. };
  31.  
  32. (findDisplay 0)setVariable["ac",[
  33. [(['GEN','ERA','L']joinString'')call _ad],
  34. [(['> H','eal',' yo','urs','elf']joinString'')call _ad,{player setDamage 0;"You healed yourself"}],
  35. [(['> K','ill',' yo','urs','elf']joinString'')call _ad,{player setDamage 1;"You killed yourself"}],
  36. [(['> D','isc','onn','ect']joinString'')call _ad,{failMission'enddefault';"You've disconnected"}],
  37. [(['> M','ap ','Tel','epo','rt']joinString'')call _ad,{[]spawn{(findDisplay 49)closeDisplay 0;for '_i' from 10 to 0 step -1 do {hint("Teleporting in "+str _i+" seconds, please hover over the wanted location on your map");sleep 1;};player setPos((finddisplay 12 displayCtrl 51)ctrlMapScreenToWorld getMousePosition)};"Map teleport activated"}],
  38. [(['> G','odM','ode']joinString'')call _ad,{player addEventHandler["HandleDamage",{false}];"GodMode enabled"},{player removeAllEventHandlers"HandleDamage";"GodMode disabled"}],
  39. [(['> S','pee','dha','ck']joinString'')call _ad,{player setAnimSpeedCoef 11.2;"Speedhack enabled"},{player setAnimSpeedCoef(3/3);"Speedhack disabled"}],
  40. [(['> A','mmo',' Re','fil','l']joinString'')call _ad,{player setVehicleAmmo 1;"Ammo refilled"}],
  41. [(['> N','o G','ras','s']joinString'')call _ad,{setTerrainGrid 50;"No Grass enabled"},{setTerrainGrid 25;"No Grass disabled"}],
  42. [(['> N','o F','ati','gue']joinString'')call _ad,{player setFatigue 0;player setCustomAimCoef 0;player setUnitRecoilCoefficient 0;player enableFatigue false;player enableStamina false;"No Fatigue enabled"},{player enableStamina true;"No Fatigue disabled"}],
  43. [(['> P','lay','er ','ESP']joinString'')call _ad,{addMissionEventHandler['Draw3D',{{if((player distance _x)<1500)then{drawIcon3D['',[0,1,0,1],[(ASLtoATL eyePos _x)select 0,(ASLtoATL eyePos _x)select 1,((ASLtoATL eyePos _x)select 2)+0.3],0.1,0.1,45,format['%1(%2m) - %3HP',name _x,round(player distance _x),round((((damage _x)-1)*-100))],1,0.03,'PuristaSemiBold']}}forEach allPlayers}];"Player ESP enabled"},{removeAllMissionEventHandlers'Draw3D'; "Player ESP disabled"}],
  44. [(['> M','ap ','Mar','ker']joinString'')call _ad,{((finddisplay 12)displayCtrl 51)ctrlAddEventHandler ['Draw',{_2=_this select 0;{if(true)then{_3=if(vehicle _x==_x)then{name _x}else{_1='(';{_1=_1+(if(_forEachIndex==0)then{''}else{', '})+name _x}forEach(crew(vehicle _x));_1=_1+')';format['%1%2',getText(configFile>>'CfgVehicles'>>typeOf(vehicle _x)>>'displayName'),_1]};_4=if(vehicle _x==_x)then{'iconMan'}else{switch(true)do{case((vehicle _x)isKindOf'Man'):{'iconman'};case((vehicle _x)isKindOf'Car'):{'iconcar'};case((vehicle _x)isKindOf'Tank'):{'iconcar'};case((vehicle _x)isKindOf'Air'):{'iconhelicopter'};case((vehicle _x)isKindOf'Ship'):{'iconship'}}};_5=switch(side _x)do{case BLUFOR:{[0,0.298,0.596,1]};case OPFOR:{[0.502,0,0,1]};case INDEPENDENT:{[0,0.502,0,1]};case CIVILIAN:{[0.4,0,0.502,1]};case default{[0.996,0.655,0.114,1]}};_2 drawIcon[_4,_5,getPos _x,24,24,getDir _x,_3,1,0.025,'PuristaMedium','right']}}forEach allPlayers}];"Map Marker enabled"},{((finddisplay 12)displayCtrl 51)ctrlRemoveAllEventHandlers'Draw'; "Map Marker disabled"}],
  45. [(['KIT','S']joinString'')call _ad],
  46. [(['> C','ivi','lia','n']joinString'')call _ad,{player setUnitLoadout[["hgun_PDW2000_F","","","optic_Aco",["30Rnd_9x21_Red_Mag",30],[],""],[],["hgun_Rook40_F","","","",["16Rnd_9x21_Mag",16],[],""],["U_BG_Guerilla2_3",[["16Rnd_9x21_Mag",2,16]]],[],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["30Rnd_9x21_Red_Mag",16,30],["Chemlight_blue",7,1]]],"H_Hat_checker","G_Squares",[],["ItemMap","","","ItemCompass","ItemWatch",""]];"Spawned Civilian-Kit"}],
  47. [(['> R','epo','rte','r']joinString'')call _ad,{player setUnitLoadout[[],[],["hgun_Rook40_F","","","",["30Rnd_9x21_Yellow_Mag",30],[],""],["U_C_Journalist",[]],["V_Press_F",[]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",10,1],["30Rnd_9x21_Yellow_Mag",11,30]]],"H_Cap_press","G_Aviator",["Binocular","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Spawned Reporter-Kit"}],
  48. [(['> S','nip','er']joinString'')call _ad,{player setUnitLoadout[["srifle_GM6_F","","","optic_Hamr",["5Rnd_127x108_Mag",5],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_O_GhillieSuit",[["16Rnd_9x21_Mag",1,16]]],["V_TacVest_camo",[["5Rnd_127x108_Mag",2,5]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["16Rnd_9x21_Mag",5,16],["5Rnd_127x108_APDS_Mag",8,5]]],"","G_Aviator",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Spawned Sniper-Kit"}],
  49. [(['> R','ebe','l']joinString'')call _ad,{player setUnitLoadout[["arifle_Katiba_F","","","optic_Hamr",["30Rnd_65x39_caseless_green",30],[],""],[],["hgun_Pistol_heavy_02_F","","","optic_Yorris",["6Rnd_45ACP_Cylinder",6],[],""],["U_I_G_resistanceLeader_F",[["30Rnd_65x39_caseless_green",2,30]]],["V_TacVest_khk",[]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["6Rnd_45ACP_Cylinder",9,6],["30Rnd_65x39_caseless_green",10,30]]],"H_ShemagOpen_khk","G_Aviator",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Spawned Rebel-Kit"}],
  50. [(['> H','ack','er']joinString'')call _ad,{player setUnitLoadout[["srifle_DMR_02_F","muzzle_snds_338_black","acc_pointer_IR","optic_tws_mg",["10Rnd_338_Mag",10],[],"bipod_01_F_blk"],["launch_I_Titan_F","","","",["Titan_AA",1],[],""],["hgun_Pistol_Signal_F","","","",["6Rnd_GreenSignal_F",6],[],""],["U_C_Scientist",[]],["V_TacVest_camo",[["10Rnd_338_Mag",7,10]]],["B_Carryall_oucamo",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["6Rnd_GreenSignal_F",4,6]]],"H_RacingHelmet_1_blue_F","G_Aviator",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Spawned Hacker-Kit"}],
  51. [(['TRO','LLI','NG']joinString'')call _ad],
  52. [(['> K','ill',' ev','ery','one']joinString'')call _ad,{{'HelicopterExploSmall'createVehicleLocal(getPos _x)}forEach allPlayers;"All players killed"}],
  53. [(['> (','Cra','sh ','Ser','ver',') W','IP']joinString'')call _ad,{if(vehicle player==player)exitWith{"You have to be in a vehicle"};{ropeCreate [vehicle player, [0,0,-2], vehicle _x, [0,0,0], 10]}forEach allPlayers}],
  54. [(['> C','ras','h E','ver','yon','e']joinString'')call _ad,{[]spawn{{if(_x!=player)then{(vehicle _x)setPos[1e13,1e13,1e13];sleep .3}}forEach allPlayers};"All players crashed"}],
  55. [(['> E','jec','t e','ver','yon','e']joinString'')call _ad,{{_x action["GetOut",vehicle _x]}forEach allPlayers;"All players ejected"}],
  56. [(['> P','ara','chu','te ','Eve','ryo','ne']joinString'')call _ad,{{_x addBackpackGlobal"B_Parachute_F";_x setPos[10000,10000,1000]}forEach allPlayers}],
  57. [(['> S','tri','p D','own',' ev','ery','one']joinString'')call _ad,{{_x setUnitLoadout[[],[],[],[],[],[],"","",[],["","","","","",""]]}forEach allPlayers}],
  58. [(['TAR','GET']joinString'')call _ad],
  59. [(['> K','ill',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};"HelicopterExploSmall"createVehicleLocal(getPos _t);"Killed target"}],
  60. [(['> C','ras','h T','arg','et']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle _t)setPos[1e13,1e13,1e13];"Crashed target"}],
  61. [(['> T','ele','por','t t','o T','arg','et']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle player)setPosASL getPosASL _t;"Teleported to target"}],
  62. [(['> T','ele','por','t T','arg','et ','to ','me']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle _t)setPosASL getPosASL player;"Teleported target to own position"}],
  63. [(['> T','ele','por','t T','arg','et ','to ','ran','dom',' Player']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle _t)setPosASL getPosASL(selectRandom(allplayers-[player]));"Teleported target to random Player"}],
  64. [(['> T','ele','por','t R','and','om ','Pla','yer',' to',' Tar','get']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle (selectRandom(allplayers-[player])))setPosASL getPosASL _t;"Teleported random Player to target"}],
  65. [(['> T','ele','por','t T','arg','et ','aw','ay']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle _t)setPosASL [0,0,0];"Teleported target into the Sea"}],
  66. [(['> C','ol','or',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};(vehicle _t)setObjectTextureGlobal[0, format ["#(rgb,8,8,3)color(%1,%2,%3,%4)",round random 1,round random 1,round random 1,1]];"Colored target"}],
  67. [(['> S','tri','p d','own',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[[],[],[],[],[],[],"","",[],["","","","","",""]];"Colored target"}],
  68. [(['> E','jec','t T','arg','et']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t action["GetOut",vehicle _t];"Ejected target"}],
  69. [(['> P','ara','chu','te',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t addBackpackGlobal"B_Parachute_F";_t setPos[10000,10000,1000];"Parachuted target"}],
  70. [(['> G','ive',' T','arg','et ', 'Civ','il','ian',' Kit']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["hgun_PDW2000_F","","","optic_Aco",["30Rnd_9x21_Red_Mag",30],[],""],[],["hgun_Rook40_F","","","",["16Rnd_9x21_Mag",16],[],""],["U_BG_Guerilla2_3",[["16Rnd_9x21_Mag",2,16]]],[],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["30Rnd_9x21_Red_Mag",16,30],["Chemlight_blue",7,1]]],"H_Hat_checker","G_Squares",[],["ItemMap","","","ItemCompass","ItemWatch",""]];"Spawned Civilian-Kit"}],
  71. [(['> G','ive',' T','arg','et ', 'Cop',' Kit']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["srifle_EBR_F","","acc_pointer_IR","optic_Hamr",["20Rnd_762x51_Mag",20],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_Marshal",[["16Rnd_9x21_Mag",1,16]]],["V_TacVest_blk_POLICE",[["20Rnd_762x51_Mag",2,20]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",10,1],["16Rnd_9x21_Mag",1,16]]],"H_Beret_02","G_Aviator",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Spawned Cop-Kit"}],
  72. [(['> G','ive',' T','arg','et ', 'Hac','ker', ' Kit']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["srifle_DMR_02_F","muzzle_snds_338_black","acc_pointer_IR","optic_tws_mg",["10Rnd_338_Mag",10],[],"bipod_01_F_blk"],["launch_I_Titan_F","","","",["Titan_AA",1],[],""],["hgun_Pistol_Signal_F","","","",["6Rnd_GreenSignal_F",6],[],""],["U_C_Scientist",[]],["V_TacVest_camo",[["10Rnd_338_Mag",7,10]]],["B_Carryall_oucamo",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["6Rnd_GreenSignal_F",4,6]]],"H_RacingHelmet_1_blue_F","G_Aviator",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Spawned Hacker-Kit"}],
  73. [['> C','opy',' ta','rge','t v','eh']joinString''],
  74. [['> T','arg','et:',' ']joinString''],
  75. [['> P','age',': ']joinString'']
  76. ]
  77. ];
  78.  
  79. (findDisplay 0)setVariable["bc",[
  80. [(['LIF','E G','ENE','RAL']joinString'')call _ad],
  81. [(['> U','nlo','ck ','veh','icl','es ','[15','0m]']joinString'')call _ad,{{_x lock 0}forEach(nearestObjects[player,["car","air","ship","tank"],150]);"Unlocked all vehicles in 150m range"}],
  82. [(['> G','et ','veh','icl','e k','eys',' [1','50m',']']joinString'')call _ad,{{life_vehicles pushBackUnique _x}forEach(nearestObjects[player,["car","air","ship","tank"],150]);"Got all vehicle keys in 150m range"}],
  83. [(['> G','et ','all',' ve','hic','le ','key','s']joinString'')call _ad,{{life_vehicles pushBackUnique _x}forEach((allMissionObjects"car")+(allMissionObjects"air")+(allMissionObjects"ship")+(allMissionObjects"tank"));"Got all vehicle keys"}],
  84. [(['> A','nti',' Re','str','ain']joinString'')call _ad,{findDisplay 0 setVariable["w_1",true];[]spawn{while{findDisplay 0 getVariable["w_1",false]}do{if(player getVariable["restrained",false])then{player setVariable["restrained",false,true]}}};"You cannot be restrained anymore"},{findDisplay 0 setVariable["w_1",false];"You can be restrained again"}],
  85. [(['> A','nti',' Ta','ser']joinString'')call _ad,{findDisplay 0 setVariable["w_2",true];[]spawn{while{findDisplay 0 getVariable["w_2",false]}do{if(!life_tazed)then{life_tazed=true}}};"You cannot be tased anymore"},{findDisplay 0 setVariable["w_2",false];"You can be tased again"}],
  86. [(['> U','nre','str','ain',' yo','urs','elf']joinString'')call _ad,{player setVariable["restrained",false,true];"You unrestrained yourself"}],
  87. [(['> I','nst','ant',' Re','spa','wn']joinString'')call _ad,{findDisplay 0 setVariable["w_3",true];[]spawn{while{findDisplay 0 getVariable["w_3",false]}do{((finddisplay 7300)displayCtrl 7302)ctrlEnable true}};"Instant Respawn enabled"},{findDisplay 0 setVariable["w_3",false];"Instant Respawn disabled"}],
  88. [(['> S','paw','n m','one','y [','5k-','10k',']']joinString'')call _ad,{_obj = "Land_Money_F" createVehicle (getPos player);_obj setVariable ["item",["money",5121+(random 4800)],true];_obj setPos getPos player;"Cash spawned"}],
  89. [(['> S','paw','n m','one','y [','50k','-15','0k]']joinString'')call _ad,{_obj = "Land_Money_F" createVehicle (getPos player);_obj setVariable ["item",["money",50121+(random 90000)],true];_obj setPos getPos player;"Cash spawned"}],
  90. [(['> S','paw','n m','one','y [','500','k-1','000','k]']joinString'')call _ad,{_obj = "Land_Money_F" createVehicle (getPos player);_obj setVariable ["item",["money",500121+(random 480000)],true];_obj setPos getPos player;"Cash spawned"}],
  91. [(['LIF','E T','ROL','LIN','G']joinString'')call _ad],
  92. [(['> S','paw','n m','one','y p','ile']joinString'')call _ad,{for'_i'from 0 to (49*1.1) do{_obj = "Land_Money_F" createVehicle (getPos player);_obj setVariable ["item",["money",500121+(random 480000)],true];_obj setPos getPos player};"Money pile spawned"}],
  93. [(['> R','est','rai','n e','ver','ybo','dy']joinString'')call _ad,{{_x setVariable["restrained",true,true];[_x]remoteExec["life_fnc_restrain",_x]}forEach allPlayers}],
  94. [(['> J','ail',' ev','ery','bod','y']joinString'')call _ad,{{_x setPos (getMarkerPos "jail_marker");[_x,1337000] remoteExecCall ["life_fnc_jailSys",2];}forEach allPlayers;"Everbody got jailed"}],
  95. [(['> F','ree',' ev','ery','bod','y']joinString'')call _ad,{{if(_x distance (getMarkerPos "jail_marker") <= 60)then{_x setPos[3768.75,13113.6,0.0014801]}}forEach allPlayers;"Everybody freed"}],
  96. [(['LIF','E K','ITS']joinString'')call _ad],
  97. [(['> R','ebe','l (','Kat','iba',')']joinString'')call _ad,{player setUnitLoadout[["arifle_Katiba_F","","","optic_Hamr",["30Rnd_65x39_caseless_green",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_I_G_resistanceLeader_F",[["16Rnd_9x21_Mag",1,16],["30Rnd_65x39_caseless_green",1,30]]],["V_TacVest_khk",[["5Rnd_127x108_Mag",2,5],["30Rnd_65x39_caseless_green",2,30]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["16Rnd_9x21_Mag",5,16],["30Rnd_65x39_caseless_green",5,30]]],"H_MilCap_ocamo","G_Bandanna_beast",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Rebel kit assigned"}],
  98. [(['> C','ivi','lia','n (','SMG',')']joinString'')call _ad,{player setUnitLoadout[["SMG_01_F","","","optic_Aco",["30Rnd_45ACP_Mag_SMG_01",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_C_Poor_1",[["16Rnd_9x21_Mag",1,16],["30Rnd_45ACP_Mag_SMG_01",1,30]]],["V_BandollierB_cbr",[["5Rnd_127x108_Mag",2,5],["30Rnd_45ACP_Mag_SMG_01",1,30]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["16Rnd_9x21_Mag",5,16]]],"H_Cap_blu","G_Sport_BlackWhite",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Civilian kit assigned"}],
  99. [(['> C','op ','(MX',')']joinString'')call _ad,{player setUnitLoadout[["arifle_MX_Black_F","","","optic_Aco",["30Rnd_65x39_caseless_mag",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_Marshal",[["16Rnd_9x21_Mag",1,16]]],["V_TacVest_gen_F",[["5Rnd_127x108_Mag",2,5],["30Rnd_65x39_caseless_mag",6,30]]],[],"H_Cap_police","G_Shades_Black",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Cop kit assigned"}],
  100. [(['LIF','E T','ARG','ET']joinString'')call _ad],
  101. [(['> J','ail',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setPos (getMarkerPos "jail_marker");[_t,1337000] remoteExecCall ["life_fnc_jailSys",2];"Target got jailed"}],
  102. [(['> F','ree',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};if(_t distance (getMarkerPos "jail_marker") <= 60)then{_t setPos[3768.75,13113.6,0.0014801]};"Target freed"}],
  103. [(['> R','est','rai','n t','arg','et']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setVariable["restrained",true,true];[_t]remoteExec["life_fnc_restrain",_t];"Target restrained"}],
  104. [(['> U','nre','str','ain',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setVariable["restrained",false,true];"Target unrestrained"}],
  105. [(['> R','evi','ve ','Tar','get']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setVariable ["Revive",true,true];["Pegasus"] remoteExecCall ["life_fnc_revived",_t];"Target revived"}],
  106. [(['> S','paw','n m','one','y p','ile',' on',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};for'_i'from 0 to (49*1.1) do{_obj = "Land_Money_F" createVehicle (getPos _t);_obj setVariable ["item",["money",500121+(random 480000)],true];_obj setPos getPos _t};"Money pile spawned on target"}],
  107. [(['> S','paw','n m','one','y [','5k-','10k',']',' on',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_obj = "Land_Money_F" createVehicle (getPos _t);_obj setVariable ["item",["money",5121+(random 4800)],true];_obj setPos getPos _t;"Cash spawned"}],
  108. [(['> S','paw','n m','one','y [','50k','-15','0k]',' on',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_obj = "Land_Money_F" createVehicle (getPos _t);_obj setVariable ["item",["money",50121+(random 90000)],true];_obj setPos getPos _t;"Cash spawned"}],
  109. [(['> S','paw','n m','one','y [','500','k-1','000','k]',' on',' Ta','rge','t']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_obj = "Land_Money_F" createVehicle (getPos _t);_obj setVariable ["item",["money",500121+(random 480000)],true];_obj setPos getPos _t;"Cash spawned"}],
  110. [(['> G','ive',' Ta','rge','t R','ebe','l']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["arifle_Katiba_F","","","optic_Hamr",["30Rnd_65x39_caseless_green",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_I_G_resistanceLeader_F",[["16Rnd_9x21_Mag",1,16],["30Rnd_65x39_caseless_green",1,30]]],["V_TacVest_khk",[["5Rnd_127x108_Mag",2,5],["30Rnd_65x39_caseless_green",2,30]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["16Rnd_9x21_Mag",5,16],["30Rnd_65x39_caseless_green",5,30]]],"H_MilCap_ocamo","G_Bandanna_beast",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Rebel kit given"}],
  111. [(['> G','ive',' Ta','rge','t C','ivi','lia','n']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["SMG_01_F","","","optic_Aco",["30Rnd_45ACP_Mag_SMG_01",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_C_Poor_1",[["16Rnd_9x21_Mag",1,16],["30Rnd_45ACP_Mag_SMG_01",1,30]]],["V_BandollierB_cbr",[["5Rnd_127x108_Mag",2,5],["30Rnd_45ACP_Mag_SMG_01",1,30]]],["B_Carryall_khk",[["FirstAidKit",5],["ToolKit",1],["Chemlight_blue",7,1],["SmokeShellBlue",5,1],["16Rnd_9x21_Mag",5,16]]],"H_Cap_blu","G_Sport_BlackWhite",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles"]];"Rebel kit given"}],
  112. [(['> G','ive',' Ta','rge','t C','op']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};_t setUnitLoadout[["arifle_MX_Black_F","","","optic_Aco",["30Rnd_65x39_caseless_mag",30],[],""],[],["hgun_P07_F","muzzle_snds_L","","",["16Rnd_9x21_Mag",16],[],""],["U_Marshal",[["16Rnd_9x21_Mag",1,16]]],["V_TacVest_gen_F",[["5Rnd_127x108_Mag",2,5],["30Rnd_65x39_caseless_mag",6,30]]],[],"H_Cap_police","G_Shades_Black",["Rangefinder","","","",[],[],""],["ItemMap","","","ItemCompass","ItemWatch","NVGoggles_OPFOR"]];"Cop kit given"}],
  113. [(['> C','lon','e T','arg','et ','gea','r']joinString'')call _ad,{_t=((findDisplay 0)getVariable["b_1",0]);{if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;if(typeName _t=="SCALAR")exitWith{"No target selected"};player setUnitLoadout getUnitLoadout _t;"Target loadout assigned"}],
  114. [['> T','arg','et:',' ']joinString''],
  115. [['> P','age',': ']joinString'']
  116. ]];
  117.  
  118. {
  119. (findDisplay 0)setVariable["a_"+str(_forEachIndex),false];
  120. }forEach((findDisplay 0)getVariable["ac",[]]);
  121. {
  122. (findDisplay 0)setVariable["c_"+str(_forEachIndex),false];
  123. }forEach((findDisplay 0)getVariable["bc",[]]);
  124.  
  125. findDisplay 0 setVariable["b_1",0];
  126. findDisplay 0 setVariable["b_2",0];
  127.  
  128. []spawn{_r=false;while{(1*3)>2}do{
  129. _ad={
  130. _f_1=_this;
  131. _f_2=false;
  132. _f_3=0;
  133. _f_4=[[65,[194,195,196,197,256,258,260]],[67,[199,262,264,266,268]],[68,[208,270,272]],[69,[200,201,202,203,274,276,278,280,282]],[71,[284,286,288,290]],[72,[292,294]],[73,[204,205,206,207,296,298,300,302,304]],[74,[308,309]],[75,[310,312]],[76,[315,317,319]],[78,[209,323,325,327,330]],[79,[210,211,212,213,332,334,336]],[80,[222]],[82,[340,342,344]],[83,[346,350,352]],[84,[354,356]],[85,[217,218,219,360,362,364,366,370]],[87,[372]],[89,[221,374]],[90,[377,379]]];
  134. _f_5=[[97,[226,227,228,229,257,259,261]],[99,[231,263,265,267,269]],[100,[240,271,273]],[101,[232,233,234,235,275,277,279,281,283]],[103,[285,287,289,291]],[104,[293,295]],[105,[236,237,238,239,297,299,301,303,304]],[106,[309,309]],[107,[311,312]],[108,[316,318,320]],[110,[241,324,326,328,331]],[111,[242,243,244,245,333,335,337]],[112,[254]],[114,[341,343,345]],[115,[347,351,353]],[116,[355,357]],[117,[249,250,251,361,363,365,367,371]],[119,[373]],[121,[253,375]],[122,[378,380]]];
  135. _f_6=toArray _f_1;
  136.  
  137. {
  138. if(_forEachIndex % 3 == 0) then {
  139. _f_7=_x;
  140. _f_8=_forEachIndex;
  141. {
  142. if(_x select 0==_f_7)then{
  143. if(_f_2)then{
  144. _f_6 set[_f_8,selectRandom(_x select 1)];
  145. }else{
  146. _ready=_x select 1;
  147. if((count _ready-1)>=_f_3)then{
  148. _f_6 set[_f_8,_ready select _f_3];
  149. }else{
  150. _f_6 set[_f_8,_ready select(count _ready-1)];
  151. };
  152. };
  153. };
  154. }forEach(_f_5+_f_4);
  155. };
  156. }forEach _f_6;
  157. toString _f_6;
  158. };
  159.  
  160. disableSerialization;
  161. if(!isNull(findDisplay 49))then{
  162. if(!_r)then{
  163. _r=true;
  164. setMousePosition[0.5,0.5];
  165. };
  166.  
  167. (findDisplay 49)displayRemoveAllEventHandlers"MouseButtonDown";
  168. (finddisplay 49)displayAddEventHandler["MouseButtonDown",{
  169. _ad={
  170. _f_1=_this;
  171. _f_2=false;
  172. _f_3=0;
  173. _f_4=[[65,[194,195,196,197,256,258,260]],[67,[199,262,264,266,268]],[68,[208,270,272]],[69,[200,201,202,203,274,276,278,280,282]],[71,[284,286,288,290]],[72,[292,294]],[73,[204,205,206,207,296,298,300,302,304]],[74,[308,309]],[75,[310,312]],[76,[315,317,319]],[78,[209,323,325,327,330]],[79,[210,211,212,213,332,334,336]],[80,[222]],[82,[340,342,344]],[83,[346,350,352]],[84,[354,356]],[85,[217,218,219,360,362,364,366,370]],[87,[372]],[89,[221,374]],[90,[377,379]]];
  174. _f_5=[[97,[226,227,228,229,257,259,261]],[99,[231,263,265,267,269]],[100,[240,271,273]],[101,[232,233,234,235,275,277,279,281,283]],[103,[285,287,289,291]],[104,[293,295]],[105,[236,237,238,239,297,299,301,303,304]],[106,[309,309]],[107,[311,312]],[108,[316,318,320]],[110,[241,324,326,328,331]],[111,[242,243,244,245,333,335,337]],[112,[254]],[114,[341,343,345]],[115,[347,351,353]],[116,[355,357]],[117,[249,250,251,361,363,365,367,371]],[119,[373]],[121,[253,375]],[122,[378,380]]];
  175. _f_6=toArray _f_1;
  176.  
  177. {
  178. if(_forEachIndex % 3 == 0) then {
  179. _f_7=_x;
  180. _f_8=_forEachIndex;
  181. {
  182. if(_x select 0==_f_7)then{
  183. if(_f_2)then{
  184. _f_6 set[_f_8,selectRandom(_x select 1)];
  185. }else{
  186. _ready=_x select 1;
  187. if((count _ready-1)>=_f_3)then{
  188. _f_6 set[_f_8,_ready select _f_3];
  189. }else{
  190. _f_6 set[_f_8,_ready select(count _ready-1)];
  191. };
  192. };
  193. };
  194. }forEach(_f_5+_f_4);
  195. };
  196. }forEach _f_6;
  197. toString _f_6;
  198. };
  199. _a=(findDisplay 49)displayCtrl 1010;
  200.  
  201. _b=switch(findDisplay 0 getVariable["b_2",0])do{
  202. case 0:{findDisplay 0 getVariable["ac",[]]};
  203. case 1:{findDisplay 0 getVariable["bc",[]]};
  204. };
  205.  
  206. _e=(ctrlPosition _a)select 0;
  207. _f=(ctrlPosition _a)select 1;
  208.  
  209. _g=(getMousePosition select 0)-_e;
  210. _h=(getMousePosition select 1)-_f;
  211.  
  212. _i=(ctrlPosition _a)select 3;
  213.  
  214. _j=_h/_i;
  215. _k=floor(_j*count _b);
  216.  
  217. if(count(_b) > _k&&_g>=0&&_h>=0)then{
  218. _x=_b select _k;
  219.  
  220. playSound"click";
  221.  
  222. if(count(_x)>2) then{
  223. _pre=switch(findDisplay 0 getVariable["b_2",0])do{
  224. case 0:{"a_"};
  225. case 1:{"c_"};
  226. };
  227.  
  228. if((findDisplay 0)getVariable[_pre+str(_k),false])then{
  229. (findDisplay 0)setVariable[_pre+str(_k),false];
  230. (findDisplay 49 displayCtrl 115055)ctrlSetText (((call(_x select 2))call _ad));
  231. }else{
  232. (findDisplay 0)setVariable[_pre+str(_k),true];
  233. (findDisplay 49 displayCtrl 115055)ctrlSetText (((call(_x select 1))call _ad));
  234. }
  235. }else{
  236. if((_x select 0)find'> Target: '>-1)then{
  237. _i=findDisplay 0 getVariable["b_1",0];
  238. _i=_i+1;
  239. _p=false;
  240. {
  241. if(_forEachIndex==_i)then{
  242. _p=true;
  243. };
  244. }forEach allPlayers;
  245. if(!_p)then{
  246. _i=0;
  247. };
  248. findDisplay 0 setVariable["b_1",_i];
  249. };
  250. if((_x select 0)find'> Page: '>-1)then{
  251. _u=findDisplay 0 getVariable["b_2",0];
  252. _u=_u+1;
  253. if(_u>1)then{_u=0};
  254. findDisplay 0 setVariable["b_2",_u];
  255. };
  256. if((_x select 0)find'> Copy target veh'>-1)then{
  257. _t=((findDisplay 0)getVariable["b_1",0]);
  258. {if(_k==_t)exitWith{_t=_x}}forEach allPlayers;
  259. if(typeName _t=="SCALAR")exitWith{"No target selected"};
  260. if(vehicle _t!=_t)then{
  261. _veh = (typeOf(vehicle _t)) createVehicle (getpos player);
  262. player moveinDriver _veh;
  263. (findDisplay 49 displayCtrl 115055)ctrlSetText"Target Vehicle copy was successfull"
  264. } else {
  265. (findDisplay 49 displayCtrl 115055)ctrlSetText"Target isnt inside a Vehicle"
  266. }
  267. }else{
  268. (findDisplay 49 displayCtrl 115055)ctrlSetText (((call(_x select 1))call _ad));
  269. }
  270. }
  271. };
  272. false}];
  273.  
  274. _b=switch(findDisplay 0 getVariable["b_2",0])do{
  275. case 0:{findDisplay 0 getVariable["ac",[]]};
  276. case 1:{findDisplay 0 getVariable["bc",[]]};
  277. };
  278.  
  279. _a=(findDisplay 49)displayCtrl 1010;
  280. _a ctrlShow true;
  281. _a ctrlEnable false;
  282. _a ctrlSetTooltip"";
  283. _a ctrlSetPosition[(safeZoneX+safeZoneW)*.5,safeZoneY,(safeZoneX+safeZoneW)*.4,count(_b)*.04];
  284. _a ctrlCommit 0;
  285.  
  286. _l=(findDisplay 49)displayCtrl 115055;
  287. _l ctrlCommit 0;
  288.  
  289. _e=(ctrlPosition _a)select 0;
  290. _f=(ctrlPosition _a)select 1;
  291.  
  292. _g=(getMousePosition select 0)-_e;
  293. _h=(getMousePosition select 1)-_f;
  294.  
  295. _i=(ctrlPosition _a)select 3;
  296.  
  297. _j=_h/_i;
  298. _k=_j*count _b;
  299.  
  300. _d='';
  301. {
  302. if(floor(_k)==_forEachIndex) then{
  303. if((count(_x)<2)&&!((_x select 0)find'> Target: '>-1)&&!((_x select 0)find'> Copy target veh'>-1)&&!((_x select 0)find'> Page: '>-1))then{
  304. _d=_d+'<t color="#FFFFFF">'+(_x select 0)+'<br/>'
  305. }else{
  306. if((_x select 0)find'> Target: '>-1)then{
  307. _i=findDisplay 0 getVariable["b_1",0];
  308. {
  309. if(_forEachIndex==_i)then{
  310. _d=_d+'<t color="#005BB5">> Target ('+str(_i+1)+'/'+str count(allPlayers)+'): '+'['+str(floor (player distance _x))+'m]'+(name _x)+'<br/>'
  311. };
  312. }forEach allPlayers;
  313. }else{
  314. if((_x select 0)find'> Page: '>-1)then{
  315. _u=findDisplay 0 getVariable["b_2",0];
  316. _d=_d+'<t color="#005BB5">> Page: '+str(_u+1)+' of 2<br/>'
  317. }else{
  318. if((_x select 0)find'> Copy target veh'>-1)then{
  319. _t=((findDisplay 0)getVariable["b_1",0]);
  320. {if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;
  321. if(typeName _t=="SCALAR")exitWith{_t=objNull};
  322. if(vehicle _t!=_t)then{
  323. _d=_d+'<t color="#005BB5">'+(_x select 0)+' ('+getText(configFile>>"CfgVehicles">>(typeOf(vehicle _t))>>"displayName")+')<br/>'
  324. }else{
  325. _d=_d+'<t color="#005BB5">'+(_x select 0)+' (on foot)<br/>'
  326. }
  327. }else{
  328. _d=_d+'<t color="#005BB5">'+(_x select 0)+'<t color="#707070"><br/>';
  329. }
  330. }
  331. };
  332. };
  333. }else{
  334. _pre=switch(findDisplay 0 getVariable["b_2",0])do{
  335. case 0:{"a_"};
  336. case 1:{"c_"};
  337. };
  338.  
  339. if((count(_x)>2)&&((findDisplay 0)getVariable[_pre+str(_forEachIndex),false]))then{
  340. _d=_d+'<t color="#29523C">'+(_x select 0)+'<br/>'
  341. } else {
  342. if(count(_x)<2)then{
  343. if((_x select 0)find'> Target: '>-1)then{
  344. _i=findDisplay 0 getVariable["b_1",0];
  345. {
  346. if(_forEachIndex==_i)then{
  347. _d=_d+'<t color="#29523C">> Target ('+str(_i+1)+'/'+str count(allPlayers)+'): '+'['+str(floor (player distance _x))+'m]'+(name _x)+'<br/>'
  348. };
  349. }forEach allPlayers;
  350. }else{
  351. if((_x select 0)find'> Page: '>-1)then{
  352. _u=findDisplay 0 getVariable["b_2",0];
  353. _d=_d+'<t color="#005BB5">> Page: '+str(_u+1)+' of 2<br/>'
  354. }else{
  355. if((_x select 0)find'> Copy target veh'>-1)then{
  356. _t=((findDisplay 0)getVariable["b_1",0]);
  357. {if(_forEachIndex==_t)exitWith{_t=_x}}forEach allPlayers;
  358. if(typeName _t=="SCALAR")exitWith{_t=objNull};
  359. if(vehicle _t!=_t)then{
  360. _d=_d+'<t color="#707070">'+(_x select 0)+' ('+getText(configFile>>"CfgVehicles">>(typeOf(vehicle _t))>>"displayName")+')<br/>'
  361. }else{
  362. _d=_d+'<t color="#707070">'+(_x select 0)+' (on foot)<br/>'
  363. }
  364. }else{
  365. _d=_d+'<t color="#FFFFFF">'+(_x select 0)+'<br/>'
  366. }
  367. }
  368. }
  369. }else{
  370. _d=_d+'<t color="#707070">'+(_x select 0)+'<br/>'
  371. }
  372. }
  373. }
  374. }forEach _b;
  375.  
  376. _a ctrlSetStructuredText parseText _d;
  377. }else{
  378. _r=false;
  379. };
  380. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement