dargohs2

Untitled

Feb 11th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. command /tpa [<onlineplayer>]:
  2. trigger:
  3. if arg 1 is set:
  4. if {tpatoggle.%arg 1%::*} is false:
  5. if {_pedido.%player%.%arg 1%} is false:
  6. send "&6&lTPA: &9%player%&7 quer teleportar-se até você! &1[ACEITAR] &4[NEGAR]" to arg 1
  7. set {_pedido.%player%.%arg 1%} to true
  8. wait 20 seconds
  9. set {_pedido.%player%.%arg 1%} to false
  10. stop
  11. if {_pedido.%player%.%arg 1%} is true:
  12. send "&6&lTPA: &7Você tenque esperar 20 segundos para mandar tpa novamente!"
  13. stop
  14. else:
  15. send "&6&lTPATOGGLE: &9%arg 1% &7está com tpa desativado!" to player]
  16. stop
  17. else:
  18. send "&6&lTPA: &7Digite o nome de um jogador."
  19. stop
  20.  
  21. command /tpaceitar [<onlineplayer>]:
  22. trigger:
  23. if arg 1 is set:
  24. if {_pedido.%player%.%arg 1%} is true:
  25. send "&6&lTPA: &9%player% &7aceitou seu pedido de TPA, aguarde 3 segundos!" to arg 1
  26. send "&6&lTPA: &7Você aceitou o pedido de tpa de &9%arg 1%"
  27. wait 3 seconds
  28. set {_pedido.%player%.%arg 1%} to false
  29. teleport arg 1 to player
  30. stop
  31. else:
  32. send "&6&lTPA: &7Você não tem um pedido de tpa pendente de &9%arg 1%&7!"
  33. stop
  34. else:
  35. send "&6&lTPA: &7Digite o nome de um jogador."
  36. stop
  37.  
  38. command /tpnegar [<onlineplayer>]:
  39. trigger:
  40. if arg 1 is set:
  41. if {_pedido.%player%.%arg 1%} is true:
  42. send "&6&lTPA: &7Você negou o pedido de tpa de &9%arg 1%&7." to player
  43. send "&6&lTPA: &9%player% &7negou o seu pedido de tpa." to arg 1
  44. set {_pedido.%player%.%arg 1%} to false
  45. stop
  46. else:
  47. send "&6&lTPA: &7Você não tem um pedido de tpa pendente de &9%arg 1%&7."
  48. stop
  49. else:
  50. send "&6&lTPA: &7Digite o nome de um jogador."
  51.  
  52. command /tpatoggle:
  53. trigger:
  54. if arg 1 is set:
  55. open chest with 3 row named "&6&lTPATOGGLE" to player]
  56. wait 5 tick
  57. format slot 11 of player with a wool named "&a&lATIVAR" with lore "&aClique aqui para ativar seu TPA" to close then run "make console execute command "/tpaativar %player%"]"
  58. format slot 13 of player with a wool named "&c&lDESATIVAR" with lore "&cClique aqui para desativar seu TPA" to close then run "make console execute command "/tpadesativar %player%"]"
  59.  
  60. command /tpativar [<arg 1>]:
  61. executable by: console
  62. trigger:
  63. set {tpatoggle.%arg 1%::*} to false
  64. send "&6&lTPA: &7Você ativou seu TPA!"
  65. stop
  66.  
  67. command /tpdesativar [<arg 1>]:
  68. executable by: console
  69. trigger:
  70. set {tpatoggle.%arg 1%::*} to true
  71. send "&6&lTPA: &7Você desativou seu TPA!"
  72. stop
  73.  
  74. on join:
  75. set {tpatoggle:%player%::*} to false
  76.  
  77. on disconnect:
  78. delete {tpatoggle.%player%::*}
Advertisement
Add Comment
Please, Sign In to add comment