Guest User

Untitled

a guest
Jul 20th, 2016
3,445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. command /ff [<text>] [<player>]:
  2. description: Forcefield check
  3. permission : Ffcheck.use
  4. executable by: players
  5. trigger:
  6. if arg 1 is not set :
  7. send "&c/ff invoque"
  8. send "&c/ff check [<player>]"
  9. if arg 1 is "invoque" :
  10. create a citizen named "AntiCheat" at location of player
  11. set citizen 0 nametag invisible
  12. set {Anticheat.loc} to the player's location
  13. send "&cAntiCheat invoqué !"
  14. if arg 1 is "check" :
  15. if arg 2 is not set :
  16. send "&cEt la cible ?"
  17. send "Usage: /ff check [<player>]"
  18. stop trigger
  19. if arg 2 is set:
  20. loop all entities :
  21. "%uncoloured name of loop-entity%" is "AntiCheat"
  22. delete {bot.%arg 2%}
  23. delete {bot1.%arg 2%}
  24. delete {bot2.%arg 2%}
  25. delete {bot3.%arg 2%}
  26. delete {bot4.%arg 2%}
  27. set {checkff1} to true
  28. teleport loop-entity 4.5 meters in front of arg 2
  29. wait 0.4 second
  30. delete {checkff1}
  31. set {checkff2} to true
  32. teleport loop-entity 5 meters above arg 2
  33. wait 0.4 second
  34. delete {checkff2}
  35. set {checkff3} to true
  36. teleport loop-entity 3 meter behind arg 2
  37. wait 0.4 second
  38. delete {checkff3}
  39. set {checkff4} to true
  40. teleport loop-entity 3 meters under arg 2
  41. wait 0.4 second
  42. delete {checkff4}
  43. if {bot1.%arg 2%} is not set:
  44. set {bot1.%arg 2%} to "&cBot 1 non-touché (4.5 blocks devant)"
  45. if {bot2.%arg 2%} is not set:
  46. set {bot2.%arg 2%} to "&cBot 2 non-touché (5 blocks au dessus)"
  47. if {bot3.%arg 2%} is not set:
  48. set {bot3.%arg 2%} to "&cBot 3 non-touché (3 blocks derriere)"
  49. if {bot4.%arg 2%} is not set:
  50. set {bot4.%arg 2%} to "&cBot 4 non-touché (3 blocks en dessous)"
  51. teleport loop-entity to {anticheat.loc}
  52. message "%{bot1.%arg 2%}%"
  53. message "%{bot2.%arg 2%}%"
  54. message "%{bot3.%arg 2%}%"
  55. message "%{bot4.%arg 2%}%"
  56. wait 5 ticks
  57. delete {bot.%arg 2%}
  58. delete {bot.%arg 2%}
  59. delete {bot1.%arg 2%}
  60. delete {bot2.%arg 2%}
  61. delete {bot3.%arg 2%}
  62. delete {bot4.%arg 2%}
  63.  
  64. on npc left click:
  65. if {checkff1} is true :
  66. set {bot1.%player%} to "&2Bot 1 touché (4.5 blocks devant)"
  67. stop
  68. if {checkff2} is true :
  69. set {bot2.%player%} to "&2Bot 2 touché (5 blocks au dessus)"
  70. stop
  71. if {checkff3} is true :
  72. set {bot3.%player%} to "&2Bot 3 touché (3 blocks derriere)"
  73. stop
  74. if {checkff4} is true :
  75. set {bot4.%player%} to "&2Bot 4 touché (3 blocks en dessous)"
  76. stop
Advertisement
Add Comment
Please, Sign In to add comment