Advertisement
zGhol

Untitled

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