Aller au contenu
  • 0

[Skript] Problème Anti-Cheat Autoclick


Question

Posté(e)
#AutoClick#

every 4 second :
   set {autoclick.check} to true
   wait 3 second
   set {autoclick.check} to false
   loop all players :
       delete {player.click.%loop-player%}
on left click:
   {autoclick.check} is true:
       add 1 to {player.click.%player%}:
           {player.click.%player%} > 49:
               send "{@logo} &9%player% &6utilise probablement un &cAutoClick : %{player.click.%player%} / 3% c/s" &cping: &b%ping of player%"

       add 1 to {aucl.logs.%player%}
   if {aucl.%player%} > {@logstoban}:
       if attacker's ping is less than 200:
           execute command "{@bancommand} %player% AutoClick"
   set {aucl.%player%.last} to now

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonsoir,

Il y a déjà eu des sujets dessus, quelques recherches serrait cool ;)

options:
   Ban-Click: 20
   Kick-Click: 14
   Avert-Click: 8
   message-autoclick: §8§l» §c§o%attacker% a été ban pour autoclick. (clic: %{_click}%)
   message-kick: §8§l» §c§o%attacker% a été kick pour autoclick. (clic: %{_click}%)
   message-avert: §8§l» §c§o%attacker% est suspecté d'autoclick. (clic: %{_click}%)
   Ban: §c§oBanSystème§8§l» §7§oVous avez été banni pour autoclick. (clic: %{_click}%)
   Kick: §c§oKick§8§l» §7§oVous avez été kick pour autoclick.

on damage:
   if attacker is a player:
       if damage was caused by contact, attack or projectile:
           if {WCAntiAutoClick.%uuid of attacker%.click} is not set:
               add 1 to {WCAntiAutoClick.%uuid of attacker%.click}
               wait 1 second
               if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Ban-Click}:
                   set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
                   ban the attacker due to "{@Ban}"
                   ip-ban attacker
                   kick the attacker due to "{@Ban}"
                   loop all players:
                       if loop-player has permission "click.voir":
                           send "{@message-autoclick}" to loop-player
                   delete {WCAntiAutoClick.%uuid of attacker%.click}
                   stop
               else if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Kick-Click}:
                   set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
                   kick the attacker due to "{@Kick}"
                   loop all players:
                       if loop-player has permission "click.voir":
                           send "{@message-kick}" to loop-player
                   delete {WCAntiAutoClick.%uuid of attacker%.click}
                   stop
               else if {WCAntiAutoClick.%uuid of attacker%.click} >= {@Avert-Click}:
                   set {_click} to {WCAntiAutoClick.%uuid of attacker%.click}
                   loop all players:
                       if loop-player has permission "click.voir":
                           send "{@message-avert}" to loop-player
                   delete {WCAntiAutoClick.%uuid of attacker%.click}
                   stop
               delete {WCAntiAutoClick.%uuid of attacker%.click}
           else:
               add 1 to {WCAntiAutoClick.%uuid of attacker%.click}

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.