Heaven Cocotere Posté(e) le 23 janvier 2017 Posté(e) le 23 janvier 2017 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%}
0 Random Posté(e) le 23 janvier 2017 Posté(e) le 23 janvier 2017 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%}
0 Heaven Cocotere Posté(e) le 23 janvier 2017 Auteur Posté(e) le 23 janvier 2017 Même erreur ... décidément je n'y comprend rien. Et j'ai vraiment besoin d'un AntiKb
0 Random Posté(e) le 23 janvier 2017 Posté(e) le 23 janvier 2017 Quelle version de skript ? Tes addons ?
0 Heaven Cocotere Posté(e) le 23 janvier 2017 Auteur Posté(e) le 23 janvier 2017 Je ne sais pas dutout je suis en 1.8.8 j'ai wildskript skrayfall
0 Random Posté(e) le 24 janvier 2017 Posté(e) le 24 janvier 2017 Mets SkQuery, et prends la version de skript qui correspond a ton serveur dans le pack de Psyziik
0 Heaven Cocotere Posté(e) le 24 janvier 2017 Auteur Posté(e) le 24 janvier 2017 D'accord j'avais déjà Skquery je vais changer ma version de skript
Question
Heaven Cocotere
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