Aller au contenu
  • 0

incompréhension d'erreur


Question

Posté(e)

Bonjour,

Je suis sur la modification d'un AntiKB créer pas PheOx (Au passage dédi a toi tu gère :) )

Voilà j'ai un erreur Que je ne comprend pas :(

Voici le code:

#==================================== AntiKb ====================================#

 

on damage:

victim is a player

block at victim is not cobweb

victim is not riding

damage wasn't caused by lava, fire, burning, fall, poison or wither

victim doesn't have poison

victim doesn't have wither

victim isn't burning

if victim's ping < 100:

set {location1.%victim%} to victim's location

wait 5 ticks

set {location2.%victim%} to victim's location

if {location1.%victim%} = {location2.%victim%}:

loop all players:

loop-player has permission "mod.kb":

message "&c[AntiCheat] &f%victim% &cest suspecté d'&fAntiKnockBack &6(%ping of victim% ms)" to loop-player

on damage:

if {kb.test.%victim%} is true:

damage was caused by fall

cancel event

command /kb [<player>]:

permission: mod.kb

permission message: &cTu ne peux pas executer de test de KnockBack

aliases: /knockbacktest, /kbtest, /antiKnockback

Usage: &c/kb [<player>]

trigger:

if arg 1 is not set:

message "&cUsage: /kb [<player>]"

stop

if arg 1 is set:

set {location1.check.%arg 1%} to argument-player's location

set {kb.test.%argument-player%} to true

push the argument-player upwards at speed 2

wait 5 ticks

set {location2.check.%arg 1%} to argument-player's location

if {location1.check.%arg 1%} = {location2.check.%arg 1%}:

send "&c[AntiCheat] &f%argument-player% &cest suspecté d'&fAntiKnockBack &4{Check} &6(%argument-player's ping% ms)" to sender

else:

send "&c[AntiCheat] &f%argument-player% &an'est pas suspecté d'&fAntiKnockBack &4{Check} &6(%argument-player's ping% ms)" to sender

wait 4 seconds

set {kb.test.%argument-player%} to false

on quit:

clear {location1.%player%}

clear {location2.%player%}

 

on join:

clear {location1.%player%}

clear {location2.%player%}

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Essaye ce code, dis moi si tu as une/des erreurs:

 

on damage:
   victim is a player:
       block at victim is not cobweb:
           victim is not riding:
               damage wasn't caused by lava, fire, burning, fall, poison or wither:
                   victim doesn't have poison:
                       victim doesn't have wither:
                           victim isn't burning:
                               if victim's ping < 100:
                                   set {location1.%victim%} to victim's location
                                   wait 5 ticks
                                   set {location2.%victim%} to victim's location
                                   if {location1.%victim%} = {location2.%victim%}:
                                       loop all players:
                                           loop-player has permission "mod.kb":
                                               message "&c[AntiCheat] &f%victim% &cest suspecté d'&fAntiKnockBack &6(%ping of victim% ms)" to loop-player
on damage:
   if {kb.test.%victim%} is true:
       damage was caused by fall:
           cancel event

command /kb [<player>]:
   permission: mod.kb
   permission message: &cTu ne peux pas executer de test de KnockBack
   aliases: /knockbacktest, /kbtest, /antiKnockback
   Usage: &c/kb [<player>]
   trigger:
       arg 1 isn't set:
           message "&cUsage: /kb [<player>]"
           stop
       else:
           set {location1.check.%arg 1%} to argument-player's location
           set {kb.test.%argument-player%} to true
           push the argument-player upwards at speed 2
           wait 5 ticks
           set {location2.check.%arg 1%} to argument-player's location
           if {location1.check.%arg 1%} = {location2.check.%arg 1%}:
               send "&c[AntiCheat] &f%argument-player% &cest suspecté d'&fAntiKnockBack &4{Check} &6(%argument-player's ping% ms)" to sender
           else:
               send "&c[AntiCheat] &f%argument-player% &an'est pas suspecté d'&fAntiKnockBack &4{Check} &6(%argument-player's ping% ms)" to sender
               wait 4 seconds
               set {kb.test.%argument-player%} to false

on quit:
   clear {location1.%player%}
   clear {location2.%player%}
   clear {location1.check.%player%}
   clear {location2.check.%player%}
   {kb.test.%player%} is set:
       clear {kb.test.%player%}
       loop all players:
           loop-player has permission "mod.kb":
               send "&c[AntiCheat] %player% a déconnecté pendant une vérification KnockBack."

on join:
   clear {location1.%player%}
   clear {location2.%player%}

×
×
  • 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.