Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /forcefield [<text>] [<offline player>]:
- aliases: ff, ka, killaura
- permission message: &fCommande inconnue.
- description: Commande de GuardBot ForceField
- permission : guardbot.forcefield
- trigger:
- if arg 1 is not set:
- send "<light green>/ff setup: Set-up l'antiforcefield"
- send "<gold>/ff setspawn: Definis l'endroit ou se teleportera le bot a la fin du check"
- send "<light red>/ff check <player>: Permet de check un joueur"
- if arg 1 is "setup":
- create a citizen named "GuardBot" at location of player as a player
- wait 5 ticks
- execute player command "npc select GuardBot"
- execute player command "npc gravity"
- if arg 1 is "setspawn":
- set {guardbot.ff.botlocf} to location of player
- send "Position de repos de GuardBot définie avec succès ! (%{guardbot.ff.botlocf}%)"
- if arg 1 is "check":
- set {guardbot.ff.target} to "%arg 2%"
- send "{@logo} &6Check du joueur %arg 2% dans 2 Secondes."
- if arg 2 is not set:
- send "&cErreur de Synthaxe"
- send "&3Ex: /guardbot forcefield check <joueur>"
- stop
- wait 2 seconds
- loop all entities:
- "%uncoloured name of loop-entity%" is "GuardBot"
- set {guardbot.ff.checking1.%arg 2%} to true
- teleport loop-entity 3 meter behind arg 2
- wait 0.4 second
- if {guardbot.ff.check1.%arg 2%} is true:
- delete {guardbot.ff.checking1.%arg 2%}
- delete {guardbot.ff.check1.%arg 2%}
- set {guardbot.ff.checking2.%arg 2%} to true
- add 1 to {guardbot.ff.hitbot.%arg 2%}
- teleport loop-entity 3 meters left arg 2
- wait 0.4 second
- if {guardbot.ff.check2.%arg 2%} is true:
- delete {guardbot.ff.checking2.%arg 2%}
- delete {guardbot.ff.check2.%arg 2%}
- set {guardbot.ff.checking3.%arg 2%} to true
- add 1 to {guardbot.ff.hitbot.%arg 2%}
- teleport loop-entity 3 meter right arg 2
- wait 0.4 second
- if {guardbot.ff.check3.%arg 2%} is true:
- delete {guardbot.ff.checking3.%arg 2%}
- delete {guardbot.ff.check3.%arg 2%}
- set {guardbot.ff.checking4.%arg 2%} to true
- add 1 to {guardbot.ff.hitbot.%arg 2%}
- teleport loop-entity 3 meters above arg 2
- wait 0.4 second
- if {guardbot.ff.check4.%arg 2%} is true:
- delete {guardbot.ff.checking4.%arg 2%}
- delete {guardbot.ff.check4.%arg 2%}
- add 1 to {guardbot.ff.hitbot.%arg 2%}
- # execute console command "/kick %arg 2% <light red>KillAura"
- add 1 to {guardbot.ff.checkban.%arg 2%}
- set {guardbot.ff.concluent.%arg 2%} to "yes"
- teleport loop-entity to {guardbot.ff.botlocf}
- if {guardbot.ff.concluent.%arg 2%} is "yes":
- send "&cHACKER-PLAYER | Le joueur a touché %{guardbot.ff.hitbot.%arg 2%}% bots."
- set {guardbot.ff.concluent.%arg 2%} to "no"
- loop all players:
- if loop-players has permission "guardbot.aclog.view":
- send "{@llogo} &6%arg 2% &3utilise sûrement un &cForceField &3! (HB: %{guardbot.ff.hitbot.%arg 2%}%)" to loop-players
- else if {guardbot.ff.hitbot.%arg 2%} > 1:
- send "&eVERIF-PLAYER | Le joueur a touché %{guardbot.ff.hitbot.%arg 2%}% bots."
- else:
- send "&2LEGIT-PLAYER | Le joueur a touché aucun bot."
- wait 1 second
- delete {guardbot.ff.hitbot.%arg 2%}
- #-------------------------------------FIN COMMANDE -------------------#
- on join:
- set {guardbot.ff.check.%player%} to "on"
- delete {guardbot.ff.hitbot.%player%}
- on quit:
- set {guardbot.ff.check.%player%} to "on"
- delete {guardbot.ff.hitbot.%player%}
- on npc left click:
- if citizen is named "GuardBot":
- set {guardbot.ff.cible} to "%player%"
- if {guardbot.ff.checking1.%player%} is true:
- set {guardbot.ff.check1.%player%} to true
- if {guardbot.ff.checking2.%player%} is true:
- set {guardbot.ff.check2.%player%} to true
- if {guardbot.ff.checking3.%player%} is true:
- set {guardbot.ff.check3.%player%} to true
- if {guardbot.ff.checking4.%player%} is true:
- set {guardbot.ff.check4.%player%} to true
- on npc right click:
- if citizen is named "GuardBot":
- set {guardbot.ff.cible} to "%player%"
- if {guardbot.ff.checking1.%player%} is true:
- set {guardbot.ff.check1.%player%} to true
- if {guardbot.ff.checking2.%player%} is true:
- add 1 to {guardbot.ff.hitbot.%player%}
- if {guardbot.ff.checking3.%player%} is true:
- set {guardbot.ff.check3.%player%} to true
- if {guardbot.ff.checking4.%player%} is true:
- set {guardbot.ff.check4.%player%} to true
- every 30 seconds:
- execute console command "forcefield check %random player out of all players%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement