Advertisement
Guest User

Anticheat By OhKyZeah #OktenCheat

a guest
Jul 15th, 2016
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Skript OktenCheat by OhKyZeah
  2. # Version 2.5.7
  3. # Mise à jour: [2.8.7]
  4. on leftclick:
  5.     if player is not holding fishing rod:
  6.         add 1 to {clickers.%player%}
  7.        
  8.  
  9.    
  10. on join:
  11.     set {clickers.%player%} to 0
  12.     set {vl.%player%} to 0
  13.     set {hax.%player%} to 0
  14.     set {vlfly.%player%} to 0
  15.     set {vlspeed.%player%} to 0
  16.    
  17. on quit:
  18.     delete {clickers.%player%}
  19.     delete {vl.%player%}
  20.     delete {hax.%player%}
  21.     delete {maxclickers.%player%}
  22.     delete {vlgod.%player%}
  23.    
  24.    
  25. every 1 seconds:    
  26.     loop all players:
  27.         if {clickers.%loop-player%} > {maxclickers.%loop-player%}:
  28.             set {maxclickers.%loop-player%} to {clickers.%loop-player%}
  29.         if {clickers.%loop-player%} > 17:
  30.             add 1 to {vl.%loop-player%}
  31.             execute command "si &8[&c!&8] &c%loop-player% &7a fait %{clickers.%loop-player%}% clics. (%loop-player's ping%ms) [&cVL.%{vl.%loop-player%}%&7]"
  32.             wf "[%now%] %loop-player% : %{clickers.%loop-player%}% clicks | ping: %loop-player's ping% TPS: %tps%" to "plugins/DeltaSpy/%loop-player%.txt"
  33.             if loop-player's ping < 125:
  34.                 add 1 to {hax.%loop-player%}
  35.                 if {hax.%loop-player%} > 9:
  36.                     execute command "/ban %loop-player% Autoclick (AntiCheat)"
  37.         set {clickers.%loop-player%} to 0
  38.        
  39.  
  40. on join:
  41.     loop 20000 times:
  42.         if player is online:
  43.             if player's ping > 0:
  44.                 if player's flight mode is not true:
  45.                     if distance between {lastlocation.Rockedcheck.%player%} and location of player > 9.99:
  46.                         if distance between {lastlocation.Rockedcheck.%player%} and location of player < 50:
  47.                             if {lastlocation.yaxis.Rockedcheck.%player%} <= y-coordinate of player:
  48.                                 execute command "si &8[&c!&8] &c%player% &7a parcourus %distance between {lastlocation.Rockedcheck.%player%} and location of player% blocks. (%player's ping%MS) [&cVL.%{vlspeed.%player%}%&7]"
  49.                                 add 1 to {vlspeed.%player%}
  50.                                 set {lastlocation.Rockedcheck.%player%} to location of player  
  51.                                 if player's ping < 150:
  52.                                     add 1 to {hax.%player%}
  53.                                     if {hax.%player%} > 9:
  54.                                         execute command "/ban %player% SpeedHack (AntiCheat)"
  55.                     if difference between {lastlocation.yaxis.Rockedcheck.%player%} and y-coordinate of player > 4:
  56.                         if difference between {lastlocation.yaxis.Rockedcheck.%player%} and y-coordinate of player < 80:
  57.                             set {_y} to y-coordinate of player
  58.                             if {lastlocation.yaxis.Rockedcheck.%player%}  < {_y}:
  59.                                 execute command "si &8[&c!&8] &c%player% &7a monté %difference between {lastlocation.yaxis.Rockedcheck.%player%} and y-coordinate of player% blocks. (%player's ping%MS) [&cVL.%{vlfly.%player%}%&7]"
  60.                                 set {lastlocation.yaxis.Rockedcheck.%player%} to y-coordinate of player
  61.                                 add 1 to {vlfly.%player%}
  62.                                 if player's ping < 150:
  63.                                     add 1 to {hax.%player%}
  64.                                     if {hax.%player%} > 9:
  65.                                         execute command "/ban %player% Fly (AntiCheat)"
  66.                 wait 2 ticks
  67.                 set {lastlocation.Rockedcheck.%player%} to location of player      
  68.                 set {lastlocation.yaxis.Rockedcheck.%player%} to y-coordinate of player
  69.            
  70.         else:
  71.             exit loop
  72.         wait 1 second
  73.  
  74.  
  75. on teleport:
  76.     set {lastlocation.Rockedcheck.%player%} to location of player      
  77.     set {lastlocation.yaxis.Rockedcheck.%player%} to location of player
  78.    
  79.  
  80.        
  81. on quit:
  82.     clear {movement.%player%}
  83.     clear {lastlocation.Rockedcheck.%player%}
  84.     clear {lastlocation.yaxis.Rockedcheck.%player%}
  85.     clear {vlfly.%player%}
  86.     clear {vlspeed.%player%}
  87.    
  88. on damage of player:
  89.     clear {lastlocation.Rockedcheck.%victim%}
  90.     clear {lastlocation.yaxis.Rockedcheck.%victim%}
  91.  
  92. every 30 seconds:
  93.     loop all players:
  94.         if {hax.%loop-player%} > 1:
  95.             reduce {hax.%loop-player%} by 1
  96.         if {clickers.%loop-player%} > 1:
  97.             reduce {clickers.%loop-player%} by 1
  98.         if {reach.logs.%loop-players%} > 1:
  99.             reduce {reach.logs.%loop-players%} by 1
  100.        
  101.        
  102. command /cheat [<text>] [<player>]:
  103.     permission: OktenCheat.staff
  104.     permission message: &cTu n'as aucune permission pour cette commmand.
  105.     trigger:
  106.         if arg 1 is not set:
  107.             send "&6----------[&aOktenCheat&6]----------"
  108.             send ""
  109.             send "&7&l→ &6/verif <joueur> &7- &cVoir les logs d'un joueur"
  110.             send ""
  111.             send "&7&l→ &6/alertes &7- &cActiver/désactiver les alertes"
  112.             send ""
  113.             send "&7&l→ &6/messglob &7- &cPour envoyer un message global"
  114.             send ""
  115.             send "&7&m&l---------------------------"
  116.  
  117.             send "&4>> &aCrée par OhKyZeah - Developpeur et Skripteur &4<<"
  118.  
  119.             send "&7&m&l---------------------------"           
  120.         if arg 1 is not "check":
  121.             send "&7&l→ &6/verif <joueur> &7- &cvoir les logs d'un joueur"
  122.         if arg 1 is "check":    
  123.             if arg 2 is not set:
  124.                 send "&7&l→ &cutilisation: &6/verif check <joueur>"
  125.             else:
  126.                 send "&7&l→ &cVérification de %arg 2%..."
  127.                 wait 5 ticks
  128.                 send ""
  129.                 send "&6----------[&aLogsOktenPlayer&6]----------" 
  130.                 send ""
  131.                 send "&7&l→ &6AutoClicker &7- &c%{vl.%arg 2%}%"
  132.                 send "&7&l→ &6Fly &7- &c%{vlfly.%arg 2%}%"
  133.                 send "&7&l→ &6OktenCheat alerts : &c%{hax.%arg 2%}%/5"
  134.                 send ""
  135.                 send "&6-----------------------------"                 
  136. command /onalerts:
  137.     permission: OktenCheat.staff
  138.     aliases: /onalert ,/onalerts
  139.     trigger:
  140.         if {alerts.%player%.Rocked} is not set:
  141.             set {alerts.%player%.Rocked} to false
  142.             send "&7&l→ &8[&c!&8] &c &6alertes &aactivées."     
  143.         else:
  144.             delete {alerts.%player%.Rocked}
  145.             send "&7&l→ &8[&c!&8] &c &6alertes &cdésactivées."
  146.                    
  147. command /messglob [<text>]:
  148.     trigger:
  149.         loop all players:
  150.             if loop-player have permission "OktenCheat.staff":
  151.                 if {alerts.%loop-player%.Rocked} is set:
  152.                     send "%arg 1%" to loop-player
  153. on damage:     
  154.     if attacker is a player:
  155.         if victim is a player:
  156.             set {_distance} to distance between attacker and victim
  157.             if {_distance} > 5.2:
  158.                 if damage cause is not a projectile:
  159.                     if horizontal facing of attacker is east:
  160.                         if horizontal facing of victim is west:
  161.                             if attacker's ping < 150:
  162.                                 if victim's ping < 150:
  163.                                     add 1 to {reach.logs.%attacker%}
  164.                                     loop all players:  
  165.                                         if loop-player have permission "OktenCheat.staff":
  166.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)                              
  167.                                             execute command "playsound note.snare %loop-players%"
  168.                                             wf "[%now%] %attacker% utilise probablement un Reach (ping : %attacker's ping%)" to "plugins/DeltaSpy/%attacker%.txt"
  169.                                         if {reach.logs.%attacker%} > 10:
  170.                                             execute command "/ban %attacker% Reach "
  171.                                 if victim's ping > 150:
  172.                                     loop all players:
  173.                                         if loop-player have permission "OktenCheat.staff":
  174.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  175.                                             execute command "playsound note.snare %loop-players%"
  176.                             if attacker's ping > 150:
  177.                                 loop all players:
  178.                                     if loop-player have permission "OktenCheat.staff":
  179.                                         send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  180.                                         execute command "playsound note.snare %loop-players%"
  181.                     if horizontal facing of attacker is west:
  182.                         if horizontal facing of victim is east:
  183.                             if attacker's ping < 150:
  184.                                 if victim's ping < 150:
  185.                                     add 1 to {reach.logs.%attacker%}
  186.                                     loop all players:  
  187.                                         if loop-player have permission "OktenCheat.staff":
  188.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  189.                                             execute command "playsound note.snare %loop-players%"
  190.                                             wf "[%now%] %attacker% utilise probablement un Reach (ping : %attacker's ping%)" to "plugins/DeltaSpy/%attacker%.txt"
  191.                                             if {reach.logs.%attacker%} > 10:
  192.                                                 execute command "/ban %attacker% Reach "
  193.                                 if victim's ping > 150:
  194.                                     loop all players:
  195.                                         if loop-player have permission "OktenCheat.staff":
  196.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  197.                                             execute command "playsound note.snare %loop-players%"
  198.                             if attacker's ping > 150:
  199.                                 loop all players:
  200.                                     if loop-player have permission "OktenCheat.staff":
  201.                                         send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  202.                                         execute command "playsound note.snare %loop-players%"
  203.                     if horizontal facing of attacker is north:
  204.                         if horizontal facing of victim is south:
  205.                             if attacker's ping < 150:
  206.                                 if victim's ping < 150:
  207.                                     add 1 to {reach.logs.%attacker%}
  208.                                     loop all players:  
  209.                                         if loop-player have permission "OktenCheat.staff":
  210.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  211.                                             execute command "playsound note.snare %loop-players%"
  212.                                             if {reach.logs.%attacker%} > 10:
  213.                                                 execute command "/ban %attacker% Reach "
  214.                                 if victim's ping > 150:
  215.                                     loop all players:
  216.                                         if loop-player have permission "OktenCheat.staff":
  217.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  218.                                             execute command "playsound note.snare %loop-players%"
  219.                             if attacker's ping > 150:
  220.                                 loop all players:
  221.                                     if loop-player have permission "OktenCheat.staff":
  222.                                         send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  223.                                         execute command "playsound note.snare %loop-players%"
  224.                     if horizontal facing of attacker is south:
  225.                         if horizontal facing of victim is north:
  226.                             if attacker's ping < 150:
  227.                                 if victim's ping < 150:
  228.                                     add 1 to {reach.logs.%attacker%}
  229.                                     loop all players:  
  230.                                         if loop-player have permission "OktenCheat.staff":
  231.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  232.                                             execute command "playsound note.snare %loop-players%"
  233.                                             if {reach.logs.%attacker%} > 10:
  234.                                                 execute command "/ban %attacker% Reach "
  235.                                 if victim's ping > 150:
  236.                                     loop all players:
  237.                                         if loop-player have permission "OktenCheat.staff":
  238.                                             send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  239.                                             execute command "playsound note.snare %loop-players%"
  240.                             if attacker's ping > 150:
  241.                                 loop all players:
  242.                                     if loop-player have permission "OktenCheat.staff":
  243.                                         send "&8[&c!&8] &c%attacker% &7a une reach de &c%{_distance}% blocs&7. (&c%ping of attacker%ms&7). [&cVL.%{hax.%attacker%}%&7]" to (loop-players)
  244.                                         execute command "playsound note.snare %loop-players%"
  245.                                        
  246. on quit:
  247.     clear {reach.logs.%player%}
  248.    
  249. on shoot:
  250.     if projectile is an arrow:
  251.         if difference between {fbow.%shooter%.last} and now is less than 0.1 second:
  252.             set {fbow.%shooter%.last} to now
  253.             loop all players:
  254.                 if loop-player have permission "AntiCheat.view":
  255.                     send "&8[&c!&8] &c%shooter% &7utilise un &cFastBow &8(&b%difference between {fbow.%shooter%.last} and now%&8) &cping: &b%ping of shooter%" to (loop-players)       
  256.             add 1 to {fbow.logs.%shooter%}
  257.         if {fbow.logs.%shooter%} > 5:
  258.             if shooter's ping is less than 200:
  259.                 execute command "ban %shooter% FastBow (AntiCheat)"
  260.         set {fbow.%shooter%.last} to now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement