This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PENTAGON-CUSTOM.sk
1992 lines (1907 loc) · 78.8 KB
/
PENTAGON-CUSTOM.sk
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
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#-------------------------------------------
# P E N T A G O N
# A N T I C H E A T
# V E R S I O N : B1
# A U T H O R : XIII___
#-------------------------------------------
options:
Pentagon: &c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &7»&c
Version: B1
Ban: false #IF KICK IS TRUE MAKE BAN FALSE !
Kick: true #IF BAN IS TRUE MAKE KICK FALSE !
setback: true
AntiAlt: false
on any move:
if block under player is not air:
set {PENTAGON.%player%.setback} to player's location
every 30 second:
loop all players:
clear {Pentagon.%loop-player%.vl}
command /velocity [<player>]:
permission: VAC.NOTIFY
trigger:
if {c.%arg 1%} is true:
send "{@Pentagon} Player is alerdy getting velocity tested."
stop
if arg 1 is set:
if block above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 2 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 3 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 4 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 5 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 6 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 7 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
if block 8 above arg 1 is not air:
send "{@Pentagon} &fBlock above &e%arg 1% &fis not air, check canceled." to player
stop
set {c.%arg 1%} to true
add 1 to {vvt.%arg 1%}
set {_sbv} to location of arg 1
set {_vloc} to y location of arg 1
set fly mode of arg 1 to true
push arg 1 upward at speed 2
wait 0.7 second
set {_vloc1} to y location of arg 1
set {_diffv} to difference between {_vloc} and {_vloc1}
set gamemode of arg 1 to survival
set fly mode of arg 1 to false
send "%{_diffv}%" to player
set {c.%arg 1%} to false
if {_diffv} is less than 7:
send "{@Pentagon} &cVelocity: &4DETECTED &f(VL: &4VERTICAL&f)" to player
make player execute command "/velocityh %arg 1%"
add 5 to {vl.%arg 1%}
clear {_diffv}
teleport arg 1 to {_sbv}
stop
if {_diffv} is less than 13:
send "{@Pentagon} &cVelocity: &6MAYBE &f(VL: &4VERTICAL&f)" to player
clear {_diffv}
teleport arg 1 to {_sbv}
stop
if {_diffv} is bigger than 13:
send "{@Pentagon} &cVelocity: &aNOTHING &f(VL: &4VERTICAL&f)" to player
teleport arg 1 to {_sbv}
stop
command /velocityh [<player>]:
permission: VAC.NOTIFY
trigger:
if {c.%arg 1%} is true:
send "{@Pentagon} Player is alerdy getting velocity tested."
stop
if arg 1 is set:
set {c.%arg 1%} to true
add 1 to {vht.%arg 1%}
wait 1 second
set {_sbv} to location of arg 1
set {_vloc2} to z location of arg 1
set gamemode of arg 1 to spectator
set {_vector} to vector from location of arg 1
rotate {_vector} around z-axis by 90 degrees #Pitch combined with x-axis aswell
rotate {_vector} around z-axis by 25 degrees #Yaw
set velocity of arg 1 to {_vector}
wait 1 tick
push arg 1 backwards at speed 2
wait 1 second
set {_vloc3} to z location of arg 1
set {_diffh} to difference between {_vloc3} and {_vloc2}
set gamemode of arg 1 to survival
send "%{_diffh}%" to player
set {c.%ARG 1%} to false
if {_diffh} is less than 15:
send "{@Pentagon} &cVelocity: &4DETECTED &f(VL: &4HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
if {_diffh} is less than 28:
send "{@Pentagon} &cVelocity: &6MAYBE &f(VL: &4HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
if {_diffh} is bigger than 28:
send "{@Pentagon} &cVelocity: &aNOTHING &f(VL: &4HORIZONTAL&f)" to player
teleport arg 1 to {_sbv}
set {_vcheck} to false
stop
function detect(p: player, cheat: text, type: text):
if fly mode of {_p} is true:
stop
if {legitfly.%{_p}%} is set:
stop
set {_uuid} to uuid of {_p}
if {@setback} is true:
if {Pentagon.%{_p}%.vl} >= 3:
if block under {_p} is air:
teleport {_p} to block 1 under block at location of {_p}
teleport {_p} to {Pentagon.%{_p}%.setback}
add 1 to {Pentagon.%{_p}%.vl}
if {Pentagon.%{_p}%.vl} < 3:
send "{@Pentagon} %{_p}%&f failed &c%{_cheat}%&c %{_type}%&7 VL[&c%{Pentagon.%{_p}%.vl}%&7] &7[&a&l✓&7]" to console
loop all players:
if {Pentagon.%loop-player%.verbose} is true:
send "{@Pentagon} %{_p}%&f failed &c%{_cheat}%&c %{_type}%&7 VL[&c%{Pentagon.%{_p}%.vl}%&7] &7[&a&l✓&7]" to loop-player
loop all players:
if {Pentagon.%loop-player%.alerts} is true:
if {Pentagon.%{_p}%.vl} >= 4:
send "{@Pentagon} %{_p}%&f failed &c%{_cheat}%&c %{_type}%&7 VL[&c%{Pentagon.%{_p}%.vl}%&7]" to console
send "{@Pentagon} %{_p}%&f failed &c%{_cheat}%&c %{_type}%&7 VL[&c%{Pentagon.%{_p}%.vl}%&7]" to loop-player
if {Pentagon.%{_p}%.vl} >= 15:
if {@Kick} is true:
make server execute command "/Pentagon kick %{_p}%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %{_p}% 7 day"
on damage:
set {legitfly.%victim%} to true
wait 1 second
delete {legitfly.%victim%}
on any move:
set {_yy} to y location of player
if {_yy} < 40:
set {legitfly.%player%} to true
if {_yy} > 40:
wait 5 ticks
delete {legitfly.%player%}
command /flagtoggle [<text>]:
permission: ADMIN
trigger:
if {Pentagon.check.%arg 1%} is not set:
set {Pentagon.check.%arg 1%} to false
if {Pentagon.check.%arg-1%} is false:
send "{@Pentagon} &e%sender% &7has &aenabled &4%arg-1%&7!" to all players where [player input has permission "Pentagon.NOTIFY"]
set {Pentagon.check.%arg-1%} to true
else:
if {Pentagon.check.%arg-1%} is true:
send "{@Pentagon} &e%sender% &7has &fdisabled &4%arg-1%&7!" to all players where [player input has permission "Pentagon.NOTIFY"]
set {Pentagon.check.%arg-1%} to false
stop
command /Pentagon [<text>] [<offline player>] [<timespan>]:
trigger:
if executor is player:
if player doesn't have permission "Pentagon.admin":
send "&c&lP&4&le&c&ln&4<&c&la&4&lg&c&lo&4&ln &cAnticheat"
send "&cAuthor: XIII___"
send "&7&oYou don't have access to any other commands."
stop
if arg 1 is not set:
send " {@Pentagon}"
send "&7/Pentagon &8| &fShow this pop up"
send "&7/Pentagon kick [player] &8| &fKick a player"
send "&7/Pentagon info [player] &8| &fShow informations about a selected player"
send "&7/Pentagon version &8| &fShow Pentagon version"
send "&7/Pentagon reload &8| &fReload Pentagon"
send "&7/Pentagon notify &8| &fToggle Pentagon alerts"
send "&7/Pentagon verbose &8| &fToggle Pentagon verbose"
send "&7/Pentagon ban [player] [timespan] &8| &fBan a player for a certain amout of time"
send "&7/Pentagon unban [player] &8| &fUnban a player"
send ""
stop
if arg 1 is "verbose":
if {Pentagon.%player%.verbose} is not set:
set {Pentagon.%player%.verbose} to false
if {Pentagon.%player%.verbose} is false:
set {Pentagon.%player%.verbose} to true
send "{@Pentagon} Verbose enabled"
stop
if {Pentagon.%player%.verbose} is true:
set {Pentagon.%player%.verbose} to false
send "{@Pentagon} Verbose disabled"
stop
if arg 1 is "kick":
if arg 2 is set:
kick arg 2 due to "{@Pentagon} CHEAT DETECTION &7(ID-P%random integer between 0 and 99999999999%&7)"
broadcast ""
broadcast "{@Pentagon} &c%arg 2%&f has been removed for &cUnfair Advantage"
broadcast ""
if arg 1 is "info":
if arg 2 is set:
send " {@Pentagon}"
send "&fInformations about %arg 2%"
send ""
send "Anticheat Kicks: &7%{Pentagon.%arg 2%.kick}%"
send "Anticheat Ban: &7%{Pentagon.%arg 2%.kick}%"
send "Anticheat logs: &7%{Pentagon.%arg 2%.total.vl}%"
send "Anticheat detection: &7%{Pentagon.%arg 2%.detection::*}%"
send ""
stop
if arg 1 is "version":
send "{@Pentagon} Build: b1"
stop
if arg 1 is "reload":
Reload("console")
send "{@Pentagon} Pentagon has been reloaded."
stop
if arg 1 is "notify":
if {Pentagon.%player%.alerts} is not set:
set {Pentagon.%player%.alerts} to false
if {Pentagon.%player%.alerts} is false:
set {Pentagon.%player%.alerts} to true
send "{@Pentagon} Notifcations enabled"
stop
if {Pentagon.%player%.alerts} is true:
set {Pentagon.%player%.alerts} to false
send "{@Pentagon} Notifcations disabled"
stop
if arg 1 is "ban":
if arg 2 is set:
if {tempban.time::%{_player}%} is not set:
broadcast ""
broadcast "{@Pentagon} &c%arg 2%&f has been removed for &cUnfair Advantage"
broadcast ""
set {tempban.time::%arg 2%} to arg 3
set {tempban.%arg 2%} to true
set {tempban.timestamp::%arg 2%} to now
kick arg 2 due to "{@Pentagon} &cYou have been banned for &e%{tempban.time::%arg 2%}% &cfrom this server !"
stop
if arg 1 is "unban":
if arg 2 is set:
clear {tempban.time::%arg 2%}
clear {tempban.timestamp::%arg 2%}
clear {tempban.%arg 2%}
send "{@Pentagon} %arg 2% has been unbanned."
stop
function Reload(p: text):
if {Pentagon.check.Autoclicker} is not set:
set {Pentagon.check.Autoclicker} to true
if {Pentagon.check.Criticals} is not set:
set {Pentagon.check.Criticals} to true
if {Pentagon.check.Reach} is not set:
set {Pentagon.check.Reach} to true
if {Pentagon.check.Velocity} is not set:
set {Pentagon.check.Velocity} to true
if {Pentagon.check.Bhop} is not set:
set {Pentagon.check.Bhop} to true
if {Pentagon.check.Blink} is not set:
set {Pentagon.check.Blink} to true
if {Pentagon.check.ClickTP} is not set:
set {Pentagon.check.ClickTP} to true
if {Pentagon.check.Flight} is not set:
set {Pentagon.check.Flight} to true
if {Pentagon.check.Float} is not set:
set {Pentagon.check.Float} to true
if {Pentagon.check.HighJump} is not set:
set {Pentagon.check.HighJump} to true
if {Pentagon.check.Hover} is not set:
set {Pentagon.check.Hover} to true
if {Pentagon.check.Jesus} is not set:
set {Pentagon.check.Jesus} to true
if {Pentagon.check.NoFall} is not set:
set {Pentagon.check.NoFall} to true
if {Pentagon.check.NoSlow} is not set:
set {Pentagon.check.NoSlow} to true
if {Pentagon.check.Scaffold} is not set:
set {Pentagon.check.Scaffold} to true
if {Pentagon.check.Speed} is not set:
set {Pentagon.check.Speed} to true
if {Pentagon.check.Spider} is not set:
set {Pentagon.check.Spider} to true
if {Pentagon.check.Step} is not set:
set {Pentagon.check.Step} to true
#--------------------------------------------------------
#
# A N T I A U T O C L I C K E R
#
#--------------------------------------------------------
on leftclick:
if {Pentagon.check.AUTOCLICKER} is true:
add 1 to {cpsL.%player%}
if {cpsL.%player%} >= 13:
cancel event
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "AutoClicker", "1A")
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
every 1 second:
loop all players:
clear {cpsL.%loop-player%}
clear {cpsR.%loop-player%}
on rightclick:
if {Pentagon.check.AUTOCLICKER} is true:
add 1 to {cpsR.%player%}
if {cpsL.%player%} >= 18:
cancel event
detect(player, "AutoClicker", "2A")
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
#--------------------------------------------------------
#
# A N T I K I L L A U R A
#
#--------------------------------------------------------
every 10 tick:
loop all players:
clear {combo.%loop-player%}
on damage:
if {Pentagon.check.KILLAURA} is true:
if attacker is player:
add 0.5 to {combo.%attacker%}
if {combo.%attacker%} >= 2:
add 1 to {Pentagon.%attacker%.total.vl}
cancel event
detect(attacker, "KillAura", "1A")
if {@setback} is true:
cancel event
on damage:
if victim is not player:
stop
if attacker is not player:
stop
if {Pentagon.check.KILLAURA} is false:
stop
if {ktarget.%attacker%} is not set:
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
if {@setback} is true:
cancel event
detect(attacker, "KillAura", "1B")
on leftclick:
set {ktarget.%player%} to targeted entity
on damage:
if {Pentagon.check.KILLAURA} is false:
stop
if attacker is a player:
loop all blocks in radius 3 around attacker:
if loop-block is snow layer:
stop
if loop-block is ladder:
stop
if loop-block is vines:
stop
if loop-block is iron bars:
stop
if loop-block is fence:
stop
if loop-block is large fern:
stop
if loop-block is tall grass:
stop
if loop-block is button:
stop
if loop-block is door:
stop
if loop-block is fence gate:
stop
if loop-block is cobblestone wall:
stop
if loop-block is pressure plate:
stop
set {_a.v} to distance between attacker and victim
set {_a.atb} to distance between attacker and attacker's targeted block
attacker's targeted block is not block under victim
if attacker's gamemode is not creative or spectator:
if {%attacker's uuid%.Pentagon.check.bypass} is not set:
set {%victim's uuid%.Pentagon.check.cheat.cooldown.damage} to true
if projectile doesn't exist:
if {_a.v} > {_a.atb}:
if {@setback} is true:
cancel event
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
detect(attacker, "KillAura", "1C")
if {Pentagon.%attacker%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %attacker% 7 day"
delete {%attacker's uuid%.Pentagon.check.killaura.check}
loop {Pentagon.Delay} times:
wait 0.21 second
delete {%attacker's uuid%.Pentagon.check.cheat.cooldown.damage}
#--------------------------------------------------------
#
# A N T I R E A C H
#
#--------------------------------------------------------
on damage:
set {_distance} to distance between attacker and victim
set {_distance.%attacKER%} to distance between attacker and victim
if {Pentagon.check.Reach} is false:
stop
if attacker has speed:
stop
if attacker is a player:
if attacker's gamemode is creative:
stop
if {_distance} > 4.7:
if damage cause is not a projectile:
if {@setback} is true:
cancel event
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
detect(attacker, "Reach", "1A")
on damage:
{Pentagon.check.Reach} is true
set {_distance.%attacKER%} to distance between attacker and victim
delete {%attacker's uuid%.Pentagon.check.cheat.cooldown.damage}
if distance between attacker and victim is greater than 4.25:
set {_r} to distance between attacker and victim
if attacker is a player:
if {%attacker's uuid%.Pentagon.check.bypass} is not set:
if {%attacker's uuid%.Pentagon.check.cheat.cooldown.damage} is not set:
set {%attacker's uuid%.Pentagon.check.cheat.cooldown.damage} to true
if "%damage cause%" is not "fall", "void" or "unknown":
if projectile doesn't exist:
if {%attacker's uuid%.Pentagon.check.autoclicker.check} is not set:
if {_r} is less than 4.5:
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
detect(attacker, "Reach", "2A")
if {@setback} is true:
cancel event
if {Pentagon.%attacker%.vl} >= 10:
if {@Kick} is true:
make server execute command "/Pentagon kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %attacker% 7 day"
else if {_r} is less than 5.5:
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
detect(attacker, "Reach", "2B")
if {@setback} is true:
cancel event
if {Pentagon.%attacker%.vl} >= 10:
if {@Kick} is true:
make server execute command "/Pentagon kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %attacker% 7 day"
else:
if {%attacker's uuid%.Pentagon.check} > 5:
add 1 to {Pentagon.%attacker%.vl}
add 1 to {Pentagon.%attacker%.total.vl}
detect(attacker, "Reach", "3B")
if {@setback} is true:
cancel event
if {Pentagon.%attacker%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %attacker%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %attacker% 7 day"
delete {%attacker's uuid%.Pentagon.check.cheat.cooldown.damage}
#--------------------------------------------------------
#
# A N T I N O F A L L
#
#--------------------------------------------------------
on any move:
if {Pentagon.check.Nofall} is false:
stop
{time.%player%} is not set
player's gamemode is Adventure or Survival
player is on ground
block at player is air
block under player is air
set {_nofallcount} to 0
loop all blocks in radius 3 around player:
if loop-block is stairs:
stop
if loop-block is slab:
stop
loop all blocks in radius 2 around player:
if loop-block is not air:
add 1 to {_nofallcount}
if {_nofallcount} < 1:
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Nofall", "1A")
if {Pentagon.%player%.vl} >= 8:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
if {_nofallcount} > 0:
stop
on walk on slab:
if {time.%player%} is not set:
set {time.%player%} to true
wait 2 seconds
clear {time.%player%}
on walk on ladder:
if {time.%player%} is not set:
set {time.%player%} to true
wait 2 seconds
clear {time.%player%}
on break:
if {time.%player%} is not set:
set {time.%player%} to true
wait 0.5 seconds
clear {time.%player%}
#--------------------------------------------------------
#
# A N T I F L I G H T
#
#--------------------------------------------------------
on any movement:
set {_loc} to player's location
if player's chestplate is an elytra:
stop
if player's gamemode is not creative or spectator:
if {%player's uuid%.Pentagon.bypass} is not set:
player's flight mode is false
if block under player is not air or water:
set {%player's uuid%.Pentagon.tp.loc} to {_loc}
if {%player's uuid%.Pentagon.flight.delay} is not set:
set {%player's uuid%.Pentagon.flight.delay} to true
set {_y} to player's y coordinate
wait 10 ticks
set {_y} to player's y coordinate - {_y}
set {_y} to floor({_y})
if {%player's uuid%.Pentagon.slime} is not set:
if {_y} > 5:
{Pentagon.Flight} is true
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "3D")
if {_y} = 0:
{Pentagon.Float} is true
{%player's uuid%.Pentagon.jump} is not set
block under player is air
player is not on ground
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "2D")
if player's y coordinate is y coordinate of {_loc}:
{Pentagon.Float} is true
{%player's uuid%.Pentagon.jump} is not set
block under player is air
player is not on ground
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "1D")
loop {Pentagon.Delay} times:
wait 0.21 second
delete {%player's uuid%.Pentagon.flight.delay}
on any movement:
{Pentagon.check.Step} is true
if {legitfly.%player%} is true:
stop
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} is greater than 1.25:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.Pentagon.check.nochecks} is not set
{%player's uuid%.Pentagon.check.epteleport} is not set
{%player's uuid%.Pentagon.check.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.Pentagon.check.bypass} is not set
player's flight mode is false
player is not riding
player is not on ground
if block under player is not air:
if {%player's uuid%.Pentagon.check.step.player} is not set:
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "1A")
else:
{Pentagon.check.FLY} is true
if {legitfly.%player%} is true:
stop
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "2A")
if {@setback} is true:
#teleport player to {Pentagon.%player%.setback}
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
on any movement:
if player's chestplate is an elytra:
stop
if {legitfly.%player%} is true:
stop
if player's gamemode is not creative or spectator:
if {%player's uuid%.Pentagon.check.bypass} is not set:
player's flight mode is false
set {_loc} to player's location
set {_t.b} to player's targeted block
wait 1 tick
set {_loc2} to player's location
set y coordinate of {_loc} to 0
set y coordinate of {_loc2} to 0
set {_dif} to distance between {_loc} and {_loc2}
if {_dif} >= 0.18:
set {%player's uuid%.Pentagon.check.walking} to true
set {%player's uuid%.Pentagon.check.walk.speed} to {_dif}
wait 1 tick
delete {%player's uuid%.Pentagon.check.walking}
delete {%player's uuid%.Pentagon.check.walk.speed}
if {%player's uuid%.Pentagon.check.nochecks} is true:
stop
if {%player's uuid%.Pentagon.check.epteleport} is true:
stop
if {%player's uuid%.Pentagon.check.teleport} is true:
stop
player is not riding
if {_dif} > 5:
if {%player's uuid%.Pentagon.check.teleport} is true:
stop
set {%player's uuid%.Pentagon.check.cheat.speed} to {_dif} * 20
if block under player is not {_t.b}:
if block under player is not air:
{Pentagon.check.Blink} is true
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Blink", "1A")
else:
{Pentagon.check.FLY} is true
if {legitfly.%player%} is true:
stop
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "3A")
if {@setback} is true:
#teleport player to {Pentagon.%player%.setback}
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
else:
{Pentagon.check.ClickTP} is true
#OLD VL COUNTER
add 1 to {Pentagon.%player%.total.vl}
detect(player, "Fly", "4A")
if {@setback} is true:
#teleport player to {Pentagon.%player%.setback}
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
on damage:
set {cooldown.%victim%} to now
every 5 second:
clear {alertl::*}
on any move:
player is not riding
fly mode of player is false
gamemode of player is not spectator or creative
set {_diffy} to difference between y location of player and {yloc.%player%}
set {yloc.%player%} to y location of player
if {_diffy} != 0:
if "%{_diffy}%" = "%{lasposy.%player%}%":
if "%{_diffy}%" != "0.16":
{vl16.%player%} is set
clear {vl16.%player%}
if "%{_diffy}%" != "0.42":
{vl42.%player%} is set
clear {vl42.%player%}
if "%{_diffy}%" != "0.23":
{vl23.%player%} is set
clear {vl23.%player%}
if "%{_diffy}%" != "0.65":
{vl65.%player%} is set
clear {vl65.%player%}
if "%{_diffy}%" != "0.12":
{vl12.%player%} is set
clear {vl12.%player%}
if "%{_diffy}%" != "0.4":
{vl04.%player%} is set
clear {vl04.%player%}
player's gamemode is not creative
if block at player is ladder or vines:
stop
if player's chestplate is an elytra:
stop
loop blocks in radius 3 around player:
loop-block is snow layer or carpet or water or lava or cobweb or anvil or vines or stairs or ladder or slab or 165
clear {vlsame.%player%}
stop
wait 3 ticks
if {cooldown.%player%} is set:
difference between {cooldown.%player%} and now < 0.3 seconds
clear {vlsame.%player%}
stop
#OLD VL COUNTER
detect(player, "Fly", "1B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.16":
add 1 to {vl16.%player%}
{vl16.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "2B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.42":
add 1 to {vl42.%player%}
{vl42.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "3B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.23":
add 1 to {vl23.%player%}
{vl23.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "4B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.12":
set {_pos} to block 1 north 1 west of block 2 above player
set {_pos2} to block 1 south 1 east of block above player
loop blocks within {_pos} to {_pos2}:
loop-block is not air
set {lasypos.%player%} to {_diffy}
stop
add 1 to {vl12.%player%}
{vl12.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "5B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.4":
set {_pos} to block 1 north 1 west of block 2 above player
set {_pos2} to block 1 south 1 east of block above player
loop blocks within {_pos} to {_pos2}:
loop-block is not air
stop
add 1 to {vl04.%player%}
{vl04.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "6B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.65":
add 1 to {vl65.%player%}
{vl65.%player%} > 2
#OLD VL COUNTER
detect(player, "Fly", "7B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
if "%{_diffy}%" = "0.42" or "0.23" or "0.12" or "0.65" or "0.16" or "0.4":
stop
add 1 to {vlsame.%player%}
if {_diffy} >= 0.8:
set {_maxvl} to 1
else:
set {_maxvl} to 3
{vlsame.%player%} > {_maxvl}
#OLD VL COUNTER
detect(player, "Fly", "8B")
if {@Kick} is true:
make server execute command "/pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/pentagon ban %player% 7 day"
loop blocks in radius 3 around player:
loop-block is snow layer or carpet or water or lava or cobweb or anvil or vines or ladder or stairs or slab or 165
clear {vlsame.%player%}
stop
else:
set {lasposy.%player%} to {_diffy}
clear {vlsame.%player%}
#--------------------------------------------------------
#
# A N T I H I G H J U M P
#
#--------------------------------------------------------
on jump:
if {Pentagon.check.Highjump} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
if player have jump boost:
stop
if {legitfly.%player%} is true:
stop
loop all blocks in radius 3 around player:
if loop-block is slime:
stop
set {_pos1} to y location of player
wait 7 ticks
set {_pos2} to y location of player
if difference between {_pos1} and {_pos2} is bigger than 2:
add 1 to {Pentagon.%player%.total.vl}
teleport player to {Pentagon.%player%.setback}
detect(player, "HighJump", "1A")
if {vl.HIGHJUMP.%player%} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
on jump:
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} > 1.1:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.Pentagon.nochecks} is not set
{%player's uuid%.Pentagon.epteleport} is not set
{%player's uuid%.Pentagon.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.Pentagon.bypass} is not set
player's flight mode is false
player is not riding
if {_y} is between 1.1 and 2.6:
{Pentagon.check.HIGHJUMP} is true
add 1 to {Pentagon.%player%.total.vl}
detect(player, "HighJump", "1B")
#--------------------------------------------------------
#
# A N T I L O N G J U M P
#
#--------------------------------------------------------
on jump:
if {Pentagon.check.LONGJUMP} is false:
stop
if player is flying:
stop
if player's gamemode is creative:
stop
if player have jump boost:
stop
if {legitfly.%player%} is true:
stop
if block under player is ice:
stop
if block under player is packed ice:
stop
set {_pos1} to location of player
wait 7 ticks
if distance between player's location and {_pos1} is bigger than 4.5:
add 1 to {Pentagon.%player%.total.vl}
detect(player, "LongJump", "1A")
if {Pentagon.%player%.vl} >= 12:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
#--------------------------------------------------------
#
# A N T I V C L I P
#
#--------------------------------------------------------
on any movement:
{Pentagon.check.ILLEGAL} is true
if {legtifly.%player%} is true:
stop
set {_loc} to player's location
set {_y} to y coordinate of {_loc}
wait 2 ticks
set {_y} to player's y coordinate - {_y}
player doesn't have jump boost
block under player is not carpet or water
if {_y} is greater than 1.25:
wait 1 tick
player's chestplate is not an elytra
{%player's uuid%.Pentagon.nochecks} is not set
{%player's uuid%.Pentagon.epteleport} is not set
{%player's uuid%.Pentagon.teleport} is not set
player's gamemode is not creative or spectator
{%player's uuid%.Pentagon.bypass} is not set
player's flight mode is false
player is not riding
player is not on ground
if block under player is not air:
add 1 to {Pentagon.%player%.total.vl}
detect(player, "VClip", "1A")
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true:
make server execute command "/Pentagon kick %player%"
stop
if {@Ban} is true:
make server execute command "/Pentagon ban %player% 7 day"
else:
{Pentagon.check.FLY} is true
add 1 to {Pentagon.%player%.total.vl}
detect(player, "VClip", "2A")
if {Pentagon.%player%.vl} >= 5:
if {@Kick} is true: