Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ff [<text>] [<player>]:
- description: Forcefield check
- permission : Ffcheck.use
- executable by: players
- trigger:
- if arg 1 is not set :
- send "&c/ff invoque"
- send "&c/ff check [<player>]"
- if arg 1 is "invoque" :
- create a citizen named "AntiCheat" at location of player
- set citizen 0 nametag invisible
- set {Anticheat.loc} to the player's location
- send "&cAntiCheat invoqué !"
- if arg 1 is "check" :
- if arg 2 is not set :
- send "&cEt la cible ?"
- send "Usage: /ff check [<player>]"
- stop trigger
- if arg 2 is set:
- loop all entities :
- "%uncoloured name of loop-entity%" is "AntiCheat"
- delete {bot.%arg 2%}
- delete {bot1.%arg 2%}
- delete {bot2.%arg 2%}
- delete {bot3.%arg 2%}
- delete {bot4.%arg 2%}
- set {checkff1} to true
- teleport loop-entity 4.5 meters in front of arg 2
- wait 0.4 second
- delete {checkff1}
- set {checkff2} to true
- teleport loop-entity 5 meters above arg 2
- wait 0.4 second
- delete {checkff2}
- set {checkff3} to true
- teleport loop-entity 3 meter behind arg 2
- wait 0.4 second
- delete {checkff3}
- set {checkff4} to true
- teleport loop-entity 3 meters under arg 2
- wait 0.4 second
- delete {checkff4}
- if {bot1.%arg 2%} is not set:
- set {bot1.%arg 2%} to "&cBot 1 non-touché (4.5 blocks devant)"
- if {bot2.%arg 2%} is not set:
- set {bot2.%arg 2%} to "&cBot 2 non-touché (5 blocks au dessus)"
- if {bot3.%arg 2%} is not set:
- set {bot3.%arg 2%} to "&cBot 3 non-touché (3 blocks derriere)"
- if {bot4.%arg 2%} is not set:
- set {bot4.%arg 2%} to "&cBot 4 non-touché (3 blocks en dessous)"
- teleport loop-entity to {anticheat.loc}
- message "%{bot1.%arg 2%}%"
- message "%{bot2.%arg 2%}%"
- message "%{bot3.%arg 2%}%"
- message "%{bot4.%arg 2%}%"
- wait 5 ticks
- delete {bot.%arg 2%}
- delete {bot.%arg 2%}
- delete {bot1.%arg 2%}
- delete {bot2.%arg 2%}
- delete {bot3.%arg 2%}
- delete {bot4.%arg 2%}
- on npc left click:
- if {checkff1} is true :
- set {bot1.%player%} to "&2Bot 1 touché (4.5 blocks devant)"
- stop
- if {checkff2} is true :
- set {bot2.%player%} to "&2Bot 2 touché (5 blocks au dessus)"
- stop
- if {checkff3} is true :
- set {bot3.%player%} to "&2Bot 3 touché (3 blocks derriere)"
- stop
- if {checkff4} is true :
- set {bot4.%player%} to "&2Bot 4 touché (3 blocks en dessous)"
- stop
Advertisement
Add Comment
Please, Sign In to add comment