Advertisement
zGhol

Untitled

Feb 4th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. command /tpa [<player>]:
  2. trigger:
  3. if arg 1 is set:
  4. set {Tpa.%player%::%arg 1%} to true
  5. send "&c&lI&f&lr &c&l> &fPedido de Ir enviado para %arg 1%" to player
  6. send "&c&lI&f&lr &c&l> &fO Jogador &c%arg 1% &fdeseja ir até você"
  7. send json of "&c&TP&f&lA &c&l> &f&lClique aqui para Aceitar!" run "/tpaccept %player%"
  8. send json of "&c&TP&f&lA &c&l> &f&lClique aqui para Negar!" run "/tpdeny %player%"
  9. wait 1 minutes
  10. set {Tpa.%player%::%arg 1%} to false
  11. send "&c&TP&f&lA &c&l> &fSeu pedido de TPA expirou !"
  12. stop
  13. else:
  14. send "&c&TP&f&lr &c&l> &fUse /tpa NICK"
  15. stop
  16.  
  17. command /tpaccept [<player>]:
  18. trigger:
  19. if arg 1 is set:
  20. if {Tpa.%arg 1%::%player%} is true:
  21. set {Tpa.%arg 1%::%player%} to false
  22. teleport %arg 1% to player
  23. send "&c&TP&f&lA &c&l> &fSeu pedido de TPA foi aceito !" to arg 1
  24. send "&c&TP&f&lA &c&l> &fPedido de TPA aceito !" to player
  25. stop
  26. else:
  27. send "&c&TP&f&lA &c&l> &fEsse pedido de TPA já expirou !"
  28. stop
  29. else:
  30. send "&&c&TP&f&lA &c&l> &fUse /tpaccept NICK"
  31. stop
  32.  
  33. command /tpdeny [<player>]:
  34. trigger:
  35. if arg 1 is set:
  36. if {Ir.%arg 1%::%player%} is true:
  37. set {Tpa.%arg 1%::%player%} to false
  38. send "&c&TP&f&lA &c&l> &fSeu pedido de TPA foi negado !" to arg 1
  39. send "&c&TP&f&lA &c&l> &fPedido de TPA negado !" to player
  40. stop
  41. else:
  42. send "&c&TP&f&lr &c&l> &fEsse pedido de TPA já expirou !"
  43. stop
  44. else:
  45. send "&c&TP&f&lA &c&l> &fUse /tpdeny NICK"
  46. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement