Advertisement
Guest User

AntiForceField code pour Skript

a guest
May 22nd, 2016
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.58 KB | None | 0 0
  1. command /forcefield [<text>] [<offline player>]:
  2. aliases: ff, ka, killaura
  3. permission message: &fCommande inconnue.
  4. description: Commande de GuardBot ForceField
  5. permission : guardbot.forcefield
  6. trigger:
  7. if arg 1 is not set:
  8. send "<light green>/ff setup: Set-up l'antiforcefield"
  9. send "<gold>/ff setspawn: Definis l'endroit ou se teleportera le bot a la fin du check"
  10. send "<light red>/ff check <player>: Permet de check un joueur"
  11. if arg 1 is "setup":
  12. create a citizen named "GuardBot" at location of player as a player
  13. wait 5 ticks
  14. execute player command "npc select GuardBot"
  15. execute player command "npc gravity"
  16. if arg 1 is "setspawn":
  17. set {guardbot.ff.botlocf} to location of player
  18. send "Position de repos de GuardBot définie avec succès ! (%{guardbot.ff.botlocf}%)"
  19. if arg 1 is "check":
  20. set {guardbot.ff.target} to "%arg 2%"
  21. send "{@logo} &6Check du joueur %arg 2% dans 2 Secondes."
  22. if arg 2 is not set:
  23. send "&cErreur de Synthaxe"
  24. send "&3Ex: /guardbot forcefield check <joueur>"
  25. stop
  26. wait 2 seconds
  27. loop all entities:
  28. "%uncoloured name of loop-entity%" is "GuardBot"
  29. set {guardbot.ff.checking1.%arg 2%} to true
  30. teleport loop-entity 3 meter behind arg 2
  31. wait 0.4 second
  32. if {guardbot.ff.check1.%arg 2%} is true:
  33. delete {guardbot.ff.checking1.%arg 2%}
  34. delete {guardbot.ff.check1.%arg 2%}
  35. set {guardbot.ff.checking2.%arg 2%} to true
  36. add 1 to {guardbot.ff.hitbot.%arg 2%}
  37. teleport loop-entity 3 meters left arg 2
  38. wait 0.4 second
  39. if {guardbot.ff.check2.%arg 2%} is true:
  40. delete {guardbot.ff.checking2.%arg 2%}
  41. delete {guardbot.ff.check2.%arg 2%}
  42. set {guardbot.ff.checking3.%arg 2%} to true
  43. add 1 to {guardbot.ff.hitbot.%arg 2%}
  44. teleport loop-entity 3 meter right arg 2
  45. wait 0.4 second
  46. if {guardbot.ff.check3.%arg 2%} is true:
  47. delete {guardbot.ff.checking3.%arg 2%}
  48. delete {guardbot.ff.check3.%arg 2%}
  49. set {guardbot.ff.checking4.%arg 2%} to true
  50. add 1 to {guardbot.ff.hitbot.%arg 2%}
  51. teleport loop-entity 3 meters above arg 2
  52. wait 0.4 second
  53. if {guardbot.ff.check4.%arg 2%} is true:
  54. delete {guardbot.ff.checking4.%arg 2%}
  55. delete {guardbot.ff.check4.%arg 2%}
  56. add 1 to {guardbot.ff.hitbot.%arg 2%}
  57. # execute console command "/kick %arg 2% <light red>KillAura"
  58. add 1 to {guardbot.ff.checkban.%arg 2%}
  59. set {guardbot.ff.concluent.%arg 2%} to "yes"
  60. teleport loop-entity to {guardbot.ff.botlocf}
  61. if {guardbot.ff.concluent.%arg 2%} is "yes":
  62. send "&cHACKER-PLAYER | Le joueur a touché %{guardbot.ff.hitbot.%arg 2%}% bots."
  63. set {guardbot.ff.concluent.%arg 2%} to "no"
  64. loop all players:
  65. if loop-players has permission "guardbot.aclog.view":
  66. send "{@llogo} &6%arg 2% &3utilise sûrement un &cForceField &3! (HB: %{guardbot.ff.hitbot.%arg 2%}%)" to loop-players
  67. else if {guardbot.ff.hitbot.%arg 2%} > 1:
  68. send "&eVERIF-PLAYER | Le joueur a touché %{guardbot.ff.hitbot.%arg 2%}% bots."
  69. else:
  70. send "&2LEGIT-PLAYER | Le joueur a touché aucun bot."
  71. wait 1 second
  72. delete {guardbot.ff.hitbot.%arg 2%}
  73.  
  74.  
  75.  
  76. #-------------------------------------FIN COMMANDE -------------------#
  77.  
  78.  
  79.  
  80.  
  81. on join:
  82. set {guardbot.ff.check.%player%} to "on"
  83. delete {guardbot.ff.hitbot.%player%}
  84. on quit:
  85. set {guardbot.ff.check.%player%} to "on"
  86. delete {guardbot.ff.hitbot.%player%}
  87. on npc left click:
  88. if citizen is named "GuardBot":
  89. set {guardbot.ff.cible} to "%player%"
  90. if {guardbot.ff.checking1.%player%} is true:
  91. set {guardbot.ff.check1.%player%} to true
  92. if {guardbot.ff.checking2.%player%} is true:
  93. set {guardbot.ff.check2.%player%} to true
  94. if {guardbot.ff.checking3.%player%} is true:
  95. set {guardbot.ff.check3.%player%} to true
  96. if {guardbot.ff.checking4.%player%} is true:
  97. set {guardbot.ff.check4.%player%} to true
  98. on npc right click:
  99. if citizen is named "GuardBot":
  100. set {guardbot.ff.cible} to "%player%"
  101. if {guardbot.ff.checking1.%player%} is true:
  102. set {guardbot.ff.check1.%player%} to true
  103. if {guardbot.ff.checking2.%player%} is true:
  104. add 1 to {guardbot.ff.hitbot.%player%}
  105. if {guardbot.ff.checking3.%player%} is true:
  106. set {guardbot.ff.check3.%player%} to true
  107. if {guardbot.ff.checking4.%player%} is true:
  108. set {guardbot.ff.check4.%player%} to true
  109. every 30 seconds:
  110. execute console command "forcefield check %random player out of all players%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement