forked from LexTheGreat/TLX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminconsolfill.sqf
897 lines (748 loc) · 24.8 KB
/
adminconsolfill.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
#define AdminConsol 1000
#define AdminPlayers 2006
if (!isStaff) exitWith { publicVariableServer "triedRunningAdminMenu"; };
private ["_c", "_player_variable_name", "_player_variable"];
_c = 0;
_player_variable_name = "";
_player_variable = "";
for [{_c=0}, {_c < (count PlayerStringArray)}, {_c=_c+1}] do {
_player_variable_name = PlayerStringArray select _c;
_player_variable = missionNamespace getVariable _player_variable_name;
if(!isNil "_player_variable") then {
if ([_player_variable] call player_exists) then {
private["_player_name", "_index"];
_player_name = (name _player_variable);
_index = lbAdd [AdminPlayers, format ["%1 - (%2)", _player_variable_name, _player_name]];
lbSetData [AdminPlayers, _index, format["%1", _player_variable]];
};};
};
AdminSpamBroadcasting = false;
_array = [];
if (isMod || isAdmin || isSnAdmin || isAdminDev || isDeveloper) then
{
_newarray =
[
["------ All use is Logged------", {}],
["------ Do Not Abuse------", {}],
["---------------------------------", {}],
["****** Mod Commands ******", {}],
["Admin Camera (Toggle)", {
handle = [] execVM "camera.sqf";
}],
["Server Message", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
MessageText = _inputText;
scode = format ['titleText ["%1", "PLAIN"];liafu = true;', MessageText];
xorE=true;
player setVehicleInit scode;
processInitCommands;
clearVehicleInit player;
hint "Done the message was sent to all players";
scode = nil;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
/*["Jail Player", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
_jailminutes = parseNumber(_inputText);
if (_jailminutes > 10) exitwith {player groupChat format["This value must be 10 minutes or lower"];};
if ((typeName _jailminutes) == (typeName (1234))) then {
format['server globalChat"%1 was sent to jail for %2 minute(s) by a server administrator";', _selectedplayer, _jailminutes] call broadcast;
format['[%1, %2] call player_prison_time;', _selectedplayer, _jailminutes] call broadcast;
format['[%1, 100] call player_prison_bail;', _selectedplayer] call broadcast;
format['[%1] call player_prison_convict;', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was sent to jail for", _jailminutes, "by", str (name player)] call fn_LogToServer;
}
else {
hint "ERROR: expected number";
};
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],*/
["Force Ceasefire", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
warstatusopf = false;
publicVariableServer "warstatusopf";
warstatuscop = false;
publicVariableServer "warstatuscop";
["ADMIN LOGGER", str (name player), "forced Ceasefire"] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["Force Player on TS (Select)", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_variableName"];
_variableName = (vehicleVarName _selectedplayer);
if (isNil "_variableName") exitWith{};
if (_variableName == "") exitWith {};
hint format["Forcing %1 on TS...", _variableName];
format['
[] spawn {
if (player != %1) exitWith {};
execvm "Scripts\blackscreen_loop.sqf"
}
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), " was forced on ts by ", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
} else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["Stop Force Player on TS (Select)", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_variableName"];
_variableName = (vehicleVarName _selectedplayer);
if (isNil "_variableName") exitWith{};
if (_variableName == "") exitWith {};
hint format["Stoped forcing %1 on TS...", _variableName];
format['
[] spawn {
if (player != %1) exitWith {};
execVM "Scripts\blackscreen_stop.sqf"
}
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), " was stopped being forced on TS by ", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
} else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
/*["MapMarkers - DNA", {
handle = [] execVM "Awesome\Admin\Lmapmarkers.sqf";
sleep 30;
handle = [] execVM "Awesome\Admin\Lmapmarkers.sqf";
["ADMIN LOGGER", str (name player), "activated 30s mapmarker"] call fn_LogToServer;
}],*/
/*["Kick Player to Lobby", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
format['
[] spawn
{
if (player != %1) exitWith {};
player groupChat "You are being kicked to the lobby by a server moderator.";
sleep 3;
failMission "END1";
};
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was kicked to lobby by", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],*/
["---------------------------------", {}],
["****** Blacklist Commands ******", {}],
["[SelPlayer]Blacklist", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_killer_uid"];
_killer_uid = getPlayerUID _selectedplayer;
["ADMIN LOGGER", name (_selectedplayer), "was temp blacklisted by", str (name player)] call fn_LogToServer;
copblacklist set [count copblacklist, _killer_uid];
opfblacklist set [count opfblacklist, _killer_uid];
publicVariable "copblacklist";
publicVariable "opfblacklist";
format['
[] spawn
{
if (player != %1) exitWith {};
player groupChat "You have been blacklisted from Opfor/Blufor by Staff due to repeated abuse";
sleep 3;
failMission "END1";
};
', _selectedplayer] call broadcast;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["[UID]Un-Blacklist Player", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_killer_uid"];
_killer_uid = _inputText;
["ADMIN LOGGER", _inputText, "(uid) was un blacklisted by", str (name player)] call fn_LogToServer;
copblacklist = copblacklist - [_killer_uid];
opfblacklist = opfblacklist - [_killer_uid];
publicVariable "copblacklist";
publicVariable "opfblacklist";
hint format["Player (UID: %1) was removed from the blacklist.", _inputText];
sleep 5;
AdminSpamBroadcasting = false;
} else {
player commandchat "STOP SPAMMING COMMANDS";
};
}]
/*["Kick Player from Game", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
player groupChat "You have been kicked from the game by a server moderator.";
sleep 3;
UWdn7l2MGRbFyjaZkT6Q = "lol this cant be nil";
publicVariableServer "UWdn7l2MGRbFyjaZkT6Q";
};
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was KICKED by", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["Lock Hacker inGame", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
if(isNil "playerIsHacker") then {
player groupChat "You are being locked for hacking, if you are not hacking, stay online and you will be unlocked after the anti-hack finds no hacks. If you disconnect, you will be reported to Battleye automatically.";
playerIsHcker = true;
sleep 1;
[] spawn {
while {playerIsHcker} do
{
disableUserInput true;
};
};
//execvm "AC\punish.sqf";
player enableSimulation false;
} else {
player groupChat "You are being unlocked.";
playerIsHcker = nil;
sleep 1;
[] spawn {
while {isNil "playerIsHacker"} do
{
disableUserInput false;
};
};
//disableUserInput false;
//execvm "AC\punish.sqf";
player enableSimulation true;
};
};
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was LOCKED by", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}]*/
];
_array = _array + _newarray;
};
if (isAdmin || isSnAdmin || isAdminDev || isDeveloper) then
{
_newarray =
[
["---------------------------------", {}],
["****** Admin Commands ******", {}],
["Crosshair Delete(deletes object in your crosshair, closest)", {
handle = [] execVM "Awesome\Admin\Ldelete.sqf";
}],
["Crosshair Empty(empties hacked crates)", {
_VarChangeOrWhat = cursorTarget;
XorE = true;
_VarChangeOrWhat setVehicleInit "liafu = true;clearWeaponCargo this;clearMagazineCargo this;";
ProcessInitCommands;
_clearedBox = format["%1 Emptied", _VarChangeOrWhat];
titleText [_clearedBox,"PLAIN DOWN"]; titleFadeOut 8;
}],
["GCam2 Spectate - Experimental", {
handle = [ player ] execVM "gcam\gcam.sqf";
["ADMIN LOGGER", "GCAM started by", str (name player)] call fn_LogToServer;
}],
["Remove player weapons", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
removeAllWeapons player;
};
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "had their weapons removed by", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}]
];
_array = _array + _newarray;
};
if (isAdmin || isSnAdmin || isAdminDev || isDeveloper) then
{
_newarray =
[
["---------------------------------", {}],
["****** Admin Commands ******", {}],
["Switch ML On/Off", {
[0,0,0,["start_martial"]] execVM "Awesome\Functions\war_functions.sqf";
["ADMIN LOGGER", str (name player), "toggled Martial Law"] call fn_LogToServer;
}],
["Give ALL Players Money", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_variableName"];
_amount = parseNumber(_inputText);
if ((typeName _amount) == (typeName (1234))) then
{
if (_amount > 0 && _amount < 5000000) then {
hint format["Giving all players %1 dollars", _amount];
format['
[] spawn
{
liafu = true;
[player, %2] call transaction_bank;
player groupChat "A Server Moderator has sent you %2 dollars";
};
', _selectedplayer, _amount] call broadcast;
["ADMIN LOGGER", _amount, "was COMPd to ALL players by", str (name player)] call fn_LogToServer;
}
else
{
hint "Can't give more than 5M, and can't take away all player's money";
};
}
else
{
hint "ERROR: expected number";
};
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["Give Player Money (Select)", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
private["_variableName"];
_variableName = (vehicleVarName _selectedplayer);
if (isNil "_variableName") exitWith{};
if (_variableName == "") exitWith {};
_amount = parseNumber(_inputText);
if ((typeName _amount) == (typeName (1234))) then
{
hint format["Giving player %1 %2 dollars", _variableName, _amount];
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
[player, %2] call transaction_bank;
player groupChat "A Server Administrator has sent you %2 dollars";
};
', _selectedplayer, _amount] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was COMPd",_amount, "by", str (name player)] call fn_LogToServer;
}
else
{
hint "ERROR: expected number";
};
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
["Self Teleport", {
hint "Click on the map to Teleport! Note all TP is being logged, do not abuse";
liafu = true;
closeDialog 0;
openMap true;
onMapSingleClick "onMapSingleClick """";liafu = true; (vehicle player) setpos [_pos select 0, _pos select 1, 0]; openMap false;";
["ADMIN LOGGER", "Self-TP used by", str (name player)] call fn_LogToServer;
}],
["TP Player to your own position", {
private["_adminLoc"];
_adminLoc = getPosASL player;
format['
[] spawn
{
if (player == %1) then {
player setPosASL %2;
liafu = true;
player commandChat "An admin has teleported you";
};
};
', _selectedplayer, _adminLoc] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was teleported by", str (name player)] call fn_LogToServer;
}],
/*["Invisibility", {
handle = [] execVM "Awesome\Admin\Linvis.sqf";
["ADMIN LOGGER", "INVISIBILITY by", str (name player)] call fn_LogToServer;
}],*/
["Kill player", {
if(!AdminSpamBroadcasting) then {
AdminSpamBroadcasting = true;
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
(player) setDamage 1;
};
', _selectedplayer] call broadcast;
["ADMIN LOGGER", name (_selectedplayer), "was adminkilled by", str (name player)] call fn_LogToServer;
sleep 5;
AdminSpamBroadcasting = false;
}
else {
player commandchat "STOP SPAMMING COMMANDS";
};
}],
/*["Radar - must be Blufor or Opfor", {
handle = [] execVM "Awesome\Functions\radar_function.sqf";
}],*/
["Delete empty vehicles + dropped items around you", {
_distance = parseNumber(_inputText);
if ((typeName _distance) == (typeName (1234))) then {
if (_distance > 200) exitwith{player groupchat format["Range must be 200 metres or less"];};
player groupchat format["Starting Objectgeddon at a range of %1 meters", _distance];
_itemsToClear = (ASLtoATL getPosASL player) nearEntities [droppableitems + ["LandVehicle", "Air"],_distance];
{
if (count crew _x == 0) then {
deleteVehicle _x;
};
} count _itemsToClear;
{
deleteVehicle _x;
} count (player nearObjects ["WeaponHolder", _distance]);
}
else {
hint "ERROR: expected number (Enter the distance to delete all vehicles in range in metres)";
};
}],
/*["RangeFinder", {
player addweapon "binocular_vector";
player action ["switchweapon", player, player, 0];
}],*/
["NV Goggles - ADMIN CAM USE", {
player addweapon "NVGoggles";
}]
];
_array = _array + _newarray;
};
if (isAdminDev || isDeveloper) then
{
_newarray =
[
["---------------------------------", {}],
["****** Dev Commands ******", {}],
["TP All to you", {
private["_adminLoc","_admin"];
_admin = player;
_adminLoc = getPosASL player;
format['
[] spawn
{
if (player != %1) then {
player setPosASL %2;
liafu = true;
player commandChat "An admin has teleported you";
};
};
', _admin, _adminLoc] call broadcast;
}],
["TP All Civs to you", {
private["_adminLoc"];
_adminLoc = getPosASL player;
format['
[] spawn
{
if (!isCiv) exitWith {};
player setPosASL %1;
liafu = true;
player commandChat "An admin has teleported you";
};
', _adminLoc] call broadcast;
}],
["Remove all civ player weap/inv", {
format['
[] spawn
{
if (!isCiv) exitWith {};
removeAllWeapons player;
[player, [["keychain",[49]],["handy",[49]],["treefixer",[49]]]] call player_set_inventory;
player commandChat "An admin has removed all your weapons and inventory";
};
'] call broadcast;
}],
/*["Self Invincibility (On)", {
player allowdamage false;
titleText [localize "STRS_admin_invincibility", "plain"];
player commandChat "I just turned on Invincibility";
}],
["Self Invincibility (Off)", {
player allowdamage true;
titleText [localize "STRS_admin_invincibilityoff", "plain"];
player commandChat "I just turned off Invincibility";
}],*/
["Destroy player vehicle", {
format['
[] spawn
{
if (player != %1) exitWith {};
liafu = true;
(vehicle player) setDamage 1;
};
', _selectedplayer] call broadcast;
}],
["# Group checker", {
hint format ["Total number of groups = %1", (count allGroups)];
}],
["Select Chief", {
private["_chiefString"];
chiefNumber = parseNumber(_inputText) + 94;
_chiefString = (PlayerStringArray select chiefNumber);
publicVariable "chiefNumber";
format["hint format[localize ""STRS_chief_new"", ""%3"", %2];
if (%5 == %1) then {
ischief = true;
} else
{
ischief = false;
};
player groupChat format['ischief is %4, rolenum is %5']
", chiefNumber, 5, _chiefString, ischief,(rolenumber-1)] call broadcast;
player groupChat format["chiefnum = %1", chiefNumber];
}],
["---------------------------------", {}],
["*** Give Commands ***", {}],
["Speed 5 - Nitro Vehicle", {
(vehicle player) setvariable ["tuning", 5, true];
(vehicle player) setvariable ["nitro", 1, true];
}],
["10 Lockpicks", {
[player, 'lockpick',10] call INV_AddInventoryItem;
}],
["Large Repair Kit", {
[player, 'reparaturkit',1] call INV_AddInventoryItem;
}],
["10 Bank insurance", {
[player,'bankversicherung',10] call INV_AddInventoryItem;
}],
["Refuel Can", {
[player, 'kanister',1] call INV_AddInventoryItem;
}],
["Fix My Vehicle", {
vehicle player setFuel 1;
vehicle player setvehicleammo 1;
vehicle player setDamage 0;
}],
["Weapon: AKM - M1911", {
{player addMagazine "30Rnd_762x39_AK47";} forEach [1,2,3,4,5,6,7,8];
player addweapon "AK_47_S";
{player addMagazine "7Rnd_45ACP_1911";} forEach [1,2,3,4,5,6,7,8];
player addweapon "Colt1911";
player action ["switchweapon", player, player, 0];
}],
["Pistol", {
{player addMagazine "17Rnd_9x19_glock17";} forEach [1,2,3,4,5,6,7,8];
player addweapon "glock17_EP1";
player action ["switchweapon", player, player, 0];
}],
["10 Satchel Charges", {
handle = [] execVM "boomboom.sqf";
}],
["5 Marijuana", {
[player, 'marijuana',5] call INV_AddInventoryItem;
}]
];
_array = _array + _newarray;
//if (player != ins6) exitWith {}; _VarChangeOrWhat = cursorTarget; _clearedBox = format["%1 Emptied", _VarChangeOrWhat]; titleText [_clearedBox,"PLAIN DOWN"]; titleFadeOut 8;
};
if (isAdminDev || isDeveloper) then
{
_newarray =
[
["---------------------------------", {}],
["****** Development Commands ******", {}],
["Runcode self", {
//[_inputText, owner player] call broadcast_client;
format['
[] spawn
{
if (player != %1) exitWith { };
liafu = true;
%2
};
', player, _inputText] call broadcast;
}],
["Runcode all", {
_inputText call broadcast;
}],
["Make AI Ignore you", {
player addrating 9999;
hint "Points added, AI won't TK you now. Execute again for even more.";
}],
["True FIXXER", {
_range = parseNumber(_inputText);
if (vehicle player == player) then
{
player groupChat "Attempting to fix...";
{
if ((typeOf _x == "") && (damage _x > 0)) then
{
_x setdamage 0;
};
} count (position player nearEntities [[], _range]);
player groupChat "ALL FIXED";
} else
{
player groupChat "You must be on foot.";
};
}],
["FULL FIXXER", {
_range = parseNumber(_inputText);
if (vehicle player == player) then
{
player groupChat "Fixing all miscellaneous";
{
if ((typeOf _x == "")) then
{
_x setdamage 0;
};
} count Object;
player groupChat "ALL FIXED";
} else
{
player groupChat "You must be on foot.";
};
}],
["Fix Everything", {
{_x setdammage 0} forEach vehicles;
{_x setfuel 1} forEach vehicles;
{_x setvehicleammo 1} forEach vehicles;
{_x setDamage 0} forEach vehicles;
{_x setDamage 0} forEach CAManBase;
{_x setDamage 0} forEach Lbuildings;
{_x setDamage 0} forEach Building;
{_x setdammage 0} forEach Building;
}],
["Fix World", {
{_x setDamage 0} forEach CAManBase;
{_x setDamage 0} forEach Lbuildings;
{_x setDamage 0} forEach Building;
{_x setdammage 0} forEach Building;
}],
["Clean Server", {
handle = [] execVM "clean.sqf";
}],
["MapMarkers", {
handle = [] execVM "Awesome\Admin\Lmapmarkers.sqf";
["ADMIN LOGGER", str (name player), "toggled MapMarkers"] call fn_LogToServer;
}],
["Delete vehicles around you", {
_distance = parseNumber(_inputText);
if ((typeName _distance) == (typeName (1234))) then {
if (_distance > 8000) exitwith{player groupchat format["Range must be 8000 or less"];};
player groupchat format["Starting Objectgeddon at a range of %1 meters", _distance];
_itemsToClear = (ASLtoATL getPosASL player) nearEntities [droppableitems + ["LandVehicle", "Air"],_distance];
{
if (count crew _x == 0) then {
deleteVehicle _x;
};
} count _itemsToClear;
{
deleteVehicle _x;
} count (player nearObjects ["WeaponHolder", _distance]);
}
else {
hint "ERROR: expected number (Enter the distance to delete all vehicles in range in metres)";
};
}],
["Server FPS display on/off", {
if (isNil "srvFpsCheck") then {
srvFpsCheck = false;
};
serverFpsBroadcast = [player, srvFpsCheck];
publicVariableServer "serverFpsBroadcast";
serverFPS = 0;
sleep 5;
liafu = true;
while {srvFpsCheck} do {
hintsilent format["Avg|Min FPS \n %1", serverFPS];
sleep 1;
};
}],
["COP - 1 List - BUGGED", {
["COP_1"] spawn A_WBL_F_DIALOG_INIT;
}],
["---------------------------------", {}],
["*** Give Commands Don't Use ***", {}],
["Spawn Armored SUV", {
"ArmoredSUV_PMC" createVehicle [(getpos player select 0) + 10, (getpos player select 1) + 10, getpos player select 2];
}],
["Spawn M1128_MGS_EP1", {
"M1128_MGS_EP1" createVehicle [(getpos player select 0) + 10, (getpos player select 1) + 10, getpos player select 2];
}],
["Spawn GuerillaCacheBox_EP1", {
_admbox = createVehicle ["GuerillaCacheBox", [(ASLtoATL getposASL player select 0) + 3, (ASLtoATL getposASL player select 1) + 3, ASLtoATL getposASL player select 2],[], 0, "NONE"];
nul = _admbox execVM "addons\ammo.sqf";
}],
["Weapon: VSS-Vintorez", {
{player addMagazine "20Rnd_9x39_SP5_VSS";} forEach [1,2,3,4,5,6,7,8];
player addweapon "VSS_vintorez";
player action ["switchweapon", player, player, 0];
}],
["---------------------------------", {}]
];
_array = _array + _newarray;
};
_endarray =
[
["TLX", {
["ADMIN LOGGER", str (name player), "pressed TLX, ban him."] call fn_LogToServer;
}]
];
_array = _array + _endarray;
{
private["_text", "_code", "_index"];
_text = _x select 0;
_code = _x select 1;
_index = lbAdd [AdminConsol, _text];
lbSetData [AdminConsol, _index, format['call %1', _code]];
} forEach _array;