Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Logo: &c&l[CheatStriker]:&e
- on load:
- set {tps-cheat} to 15
- set {ping-cheat} to 400
- set {alerts-cheat} to true
- set {autoban-cheat} to false
- broadcast "{@Logo} a bien été chargé !"
- if file "plugins/Skript/scripts/CheatStriker/DataCenter/Bans.yml" doesn't exist:
- create file "plugins/Skript/scripts/CheatStriker/DataCenter/Bans.yml"
- broadcast "{@Logo} a bien créé le fichier DataCenter"
- function Alerts(hacker: player, hack: text, info: text):
- if tps is more than {tps-cheat}:
- if {alerts-cheat} is "true" or true:
- if {_hacker}'s ping is less than {ping-cheat}:
- send "{@Logo} %{_hacker}% used %{_hack}%, %{_info}%" to all ops
- function Autoban(hacker: player, reason: text):
- if tps is more than {tps-cheat}:
- if {_hacker}'s ping is less than {ping-cheat}:
- if {autoban-cheat} is "true" or true:
- execute console command "/ban %{_hacker}% pour &4%{_reason}%"
- broadcast "{@Logo} %{_hacker}% a été banni pour &4%{_reason}%"
- # Reach
- on damage:
- if attacker's gamemode is not creative:
- if damage cause is attack:
- set {_diff} to difference between victim's yaw and attacker's yaw
- if attacker's ping < 150:
- set {_maxx} to 5
- else if attacker's ping < 250:
- set {_maxx} to 5.4
- else:
- set {_maxx} to 5.8
- if distance between attacker and victim is more than {_maxx}:
- if {_diff} is between 100 and 280:
- if difference between {reach.%attacker%} and now is less than 1.5 seconds:
- if attacker's ping is less than 400:
- add 1 to {bdd.%attacker%::cheat}
- Alerts(attacker, "Reach", "%distance between attacker and victim% Blocks")
- Autoban(attacker, "Reach")
- else:
- if distance between attacker and victim > 6:
- if attacker's ping is less than 400:
- Alerts(attacker, "Reach", "%distance between attacker and victim% Blocks")
- # Cps
- on left click:
- add 1 to {click.%player%}
- if player's ping is less than 400:
- if {click.%player%} is more than 20:
- add 1 to {bdd.%player%::cheat}
- Alerts(event-player, "AutoClick", "Cps:%{click.%player%}%")
- Autoban(event-player, "AutoClick")
- wait 1 second
- delete {click.%player%}
- on shoot:
- if projectile is arrow:
- difference between {lastshoot.%shooter%} and now < 2 ticks:
- difference between {lastfastbow.%shooter%} and now is less than 2 ticks:
- stop
- else:
- set {lastfastbow.%shooter%} to now
- Alerts(shooter, "FastBow", "Delay: %difference between {lastshoot.%shooter%} and now%")
- Autoban(shooter, "FastBow")
- set {lastshoot.%shooter%} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement