Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. #Sin's Force-Field/Aimbot Checker [v1.2]
  2. #FFS, may it help you catch them all.
  3.  
  4. options:
  5.  
  6. P: §6[§cFF§6]
  7. C: §6
  8. H: §c
  9.  
  10. command /ffs <offlineplayer> [<offline player>]:
  11. description: Check for Force-Field/Aimbot
  12. usage: /ffs <player to test> [<player to use>]
  13. permission: ForceFeild.skript
  14. permission message: No
  15. trigger:
  16. if arg-2 is arg-1:
  17. message "{@P} You can not use the player that you are testing"
  18. else if arg 1 is equal to "stop":
  19. delete {ffs::%command sender%}
  20. else if arg 1 is online:
  21. loop blocks in radius 2 of the block at arg-1:
  22. if loop-block is not air or water:
  23. add 1 to {_na}
  24. else:
  25. add 1 to {_a}
  26. if {_na} is greater than ({_a})*2:
  27. message "{@P}{@H} %arg-1%{@C} can not be tested." to (command sender)
  28. message "{@P} They are likely in a 1x1 hole." to (command sender)
  29. stop trigger
  30. if arg-2 is alive:
  31. set {_ffs} to arg-2
  32. message "{@P} Using {@H}%{_ffs}%{@C} to test {@H}%arg-1%{@C} for forcefield..."
  33. else:
  34. set {_ffs} to command sender
  35. message "{@P}{@C} Testing {@H}%arg-1%{@C} for forcefield..." to (command sender)
  36. add {_ffs} to {ffs::*}
  37. set {_ffs.p} to location of command sender
  38. set {_ffs.hacker} to arg-1
  39. apply invisibility 999 to {_ffs} for 9999 second
  40. if {_ffs}'s gamemode is not survival:
  41. set {_ffs.gm} to {_ffs}'s gamemode
  42. set {_ffs}'s gamemode to survival
  43. if tool of {_ffs} is not air:
  44. set {_ffs.tool} to (tool of {_ffs})
  45. set tool of {_ffs} to air
  46. if helmet of {_ffs} is not air:
  47. set {_ffs.helmet} to (helmet of {_ffs})
  48. set helmet of {_ffs} to air
  49. if chestplate of {_ffs} is not air:
  50. set {_ffs.chestplate} to (chestplate of {_ffs})
  51. set chestplate of {_ffs} to air
  52. if leggings of {_ffs} is not air:
  53. set {_ffs.leggings} to (leggings of {_ffs})
  54. set leggings of {_ffs} to air
  55. if boots of {_ffs} is not air:
  56. set {_ffs.boots} to (boots of {_ffs})
  57. set boots of {_ffs} to air
  58. wait 3 seconds
  59. while {_ffs.hacker} is alive:
  60. if {_ffs.locx} is set:
  61. {_ffs.loc} is not location behind {_ffs.hacker}
  62. {_ffs.locx} is location of block below {_ffs.hacker}
  63. add 1 to {ffs.vl::%{_ffs.hacker}%}
  64. add 1 to {ffs.warn::%{_ffs.hacker}%}
  65. set {_ffs.locx} to location of block below {_ffs.hacker}
  66. set {_ffs.loc} to location behind {_ffs.hacker}
  67. teleport {_ffs} to location behind {_ffs.hacker}
  68. wait 1 tick
  69. command "/reappear %{_ffs}%"
  70. wait 5 ticks
  71. command "/vanish %{_ffs}%"
  72. add 1 to {_ffs.time}
  73. if {_ffs.time} is greater than 40:
  74. stop loop
  75. if {ffs.vl::%{_ffs.hacker}%} is greater than 20:
  76. stop loop
  77. teleport {_ffs} to {_ffs.p}
  78. remove invisibility from {_ffs}
  79. if {_ffs.tool} is set:
  80. set tool of {_ffs} to {_ffs.tool}
  81. if {_ffs.helmet} is set:
  82. set helmet of {_ffs} to {_ffs.helmet}
  83. if {_ffs.chestplate} is set:
  84. set chestplate of {_ffs} to {_ffs.chestplate}
  85. if {_ffs.leggings} is set:
  86. set leggings of {_ffs} to {_ffs.leggings}
  87. if {_ffs.boots} is set:
  88. set boots of {_ffs} to {_ffs.boots}
  89. if {ffs.vl::%{_ffs.hacker}%} is greater than 5:
  90. if ({ffs.vl::%{_ffs.hacker}%})-({ffs.warn::%{_ffs.hacker}%}) is less than 1:
  91. message "{@P}{@H} %{_ffs.hacker}%{@C} may be aimboting. {@H}[VL.{@C}%{ffs.vl::%{_ffs.hacker}%}%{@H}]" to (command sender)
  92. {ffs.warn::%{_ffs.hacker}%} is set
  93. message "{@P}{@H} %{ffs.warn::%{_ffs.hacker}%}%{@C} Turn Violations." to (command sender)
  94. message "{@P} High turn violations may suggest aimbot." to (command sender)
  95. message "{@P} Theses are rarely accurate!" to (command sender)
  96. else:
  97. message "{@P}{@H} %{_ffs.hacker}%{@C} is likely force-fielding. {@H}[VL.{@C}%{ffs.vl::%{_ffs.hacker}%}%{@H}]" to (command sender)
  98. {ffs.warn::%{_ffs.hacker}%} is set
  99. message "{@P}{@H} %{ffs.warn::%{_ffs.hacker}%}%{@C} Turn Violations." to (command sender)
  100. message "{@P} High turn violations may suggest aimbot." to (command sender)
  101. else:
  102. if {ffs.vl::%{_ffs.hacker}%} is set:
  103. message "{@P}{@H} %{_ffs.hacker}%{@C} is likely not hacking. {@H}[VL.{@C}%{ffs.vl::%{_ffs.hacker}%}%{@H}]"
  104. else:
  105. message "{@P}{@H} %{_ffs.hacker}%{@C} is likely not hacking."
  106. message "{@P}{@C} Tested over %(({_ffs.time})/2)% seconds."
  107. delete {ffs.vl::%{_ffs.hacker}%}
  108. delete {ffs.warn::%{_ffs.hacker}%}
  109. remove {_ffs} from {ffs::*}
  110. on damage of player:
  111. victim is {ffs::*}
  112. cancel event
  113. attacker is player
  114. add 1 to {ffs.vl::%attacker%}
  115. on pickup:
  116. player is {ffs::*}
  117. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement