Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. options:
  2. Logo: &c&l[CheatStriker]:&e
  3.  
  4.  
  5. on load:
  6. set {tps-cheat} to 15
  7. set {ping-cheat} to 400
  8. set {alerts-cheat} to true
  9. set {autoban-cheat} to false
  10. broadcast "{@Logo} a bien été chargé !"
  11. if file "plugins/Skript/scripts/CheatStriker/DataCenter/Bans.yml" doesn't exist:
  12. create file "plugins/Skript/scripts/CheatStriker/DataCenter/Bans.yml"
  13. broadcast "{@Logo} a bien créé le fichier DataCenter"
  14.  
  15.  
  16.  
  17. function Alerts(hacker: player, hack: text, info: text):
  18. if tps is more than {tps-cheat}:
  19. if {alerts-cheat} is "true" or true:
  20. if {_hacker}'s ping is less than {ping-cheat}:
  21. send "{@Logo} %{_hacker}% used %{_hack}%, %{_info}%" to all ops
  22.  
  23. function Autoban(hacker: player, reason: text):
  24. if tps is more than {tps-cheat}:
  25. if {_hacker}'s ping is less than {ping-cheat}:
  26. if {autoban-cheat} is "true" or true:
  27. execute console command "/ban %{_hacker}% pour &4%{_reason}%"
  28. broadcast "{@Logo} %{_hacker}% a été banni pour &4%{_reason}%"
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. # Reach
  37. on damage:
  38. if attacker's gamemode is not creative:
  39. if damage cause is attack:
  40. set {_diff} to difference between victim's yaw and attacker's yaw
  41. if attacker's ping < 150:
  42. set {_maxx} to 5
  43. else if attacker's ping < 250:
  44. set {_maxx} to 5.4
  45. else:
  46. set {_maxx} to 5.8
  47. if distance between attacker and victim is more than {_maxx}:
  48. if {_diff} is between 100 and 280:
  49. if difference between {reach.%attacker%} and now is less than 1.5 seconds:
  50. if attacker's ping is less than 400:
  51. add 1 to {bdd.%attacker%::cheat}
  52. Alerts(attacker, "Reach", "%distance between attacker and victim% Blocks")
  53. Autoban(attacker, "Reach")
  54. else:
  55. if distance between attacker and victim > 6:
  56. if attacker's ping is less than 400:
  57. Alerts(attacker, "Reach", "%distance between attacker and victim% Blocks")
  58.  
  59. # Cps
  60. on left click:
  61. add 1 to {click.%player%}
  62. if player's ping is less than 400:
  63. if {click.%player%} is more than 20:
  64. add 1 to {bdd.%player%::cheat}
  65. Alerts(event-player, "AutoClick", "Cps:%{click.%player%}%")
  66. Autoban(event-player, "AutoClick")
  67. wait 1 second
  68. delete {click.%player%}
  69.  
  70. on shoot:
  71. if projectile is arrow:
  72. difference between {lastshoot.%shooter%} and now < 2 ticks:
  73. difference between {lastfastbow.%shooter%} and now is less than 2 ticks:
  74. stop
  75. else:
  76. set {lastfastbow.%shooter%} to now
  77. Alerts(shooter, "FastBow", "Delay: %difference between {lastshoot.%shooter%} and now%")
  78. Autoban(shooter, "FastBow")
  79. set {lastshoot.%shooter%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement