grantygames

Untitled

Aug 4th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. options:
  2. # Delay em SEGUNDOS!
  3. delay: 3
  4.  
  5. # | Skript | #
  6. command /setwarp [<text>]:
  7. permission: script.admin
  8. permission message: &cVocê não tem acesso a este comando.
  9. trigger:
  10. if {vLocal::%arg 1%} is not set:
  11. set {vLocal::%arg 1%} to player's location
  12. add arg 1 to {vLocal.commands.executable::*}
  13. add arg 1 to {warps::*}
  14. send "&a&LWARP: &FTeleporte %arg 1% setado."
  15. send "&a&LWARP: &FUse /%arg 1%."
  16. stop
  17. else:
  18. send "&a&lWARP: &cEsta warp já foi setado! Delete-o antes de seta-lo novamente."
  19.  
  20. command /delwarp [<text>]:
  21. aliases: delocal
  22. permission: script.admin
  23. permission message: &cVocê não tem acesso a este comando.
  24. trigger:
  25. if {vLocal::%arg 1%} is set:
  26. delete {vLocal::%arg 1%}
  27. remove arg 1 from {warps::*}
  28. remove arg 1 from {vLocal.commands.executable::*}
  29. send "&a&lWARP: &cTeleporte&f %arg 1%&c deletado."
  30. stop
  31. else:
  32. send "&a&lWARP: &cEssa warp não existe."
  33. stop
  34.  
  35. command /warps:
  36. trigger:
  37. if {warps::*} is set:
  38. set {_a} to "%{warps::*}%"
  39. replace all "and" with "e" in {_a}
  40. send "&aWarps do servidor:"
  41. send "%{_a}%"
  42. stop
  43. else:
  44. send "&a&lWARP: &cDesculpe, não temos nenhuma warp."
  45. stop
  46.  
  47. on command:
  48. loop {vLocal.commands.executable::*}:
  49. loop-value is complete command:
  50. if player has permission "vlocal.%command%":
  51. cancel event
  52. send "&a&lWARP: &7Você será teleportado em &e{@delay} &7segundos!"
  53. wait {@delay} seconds
  54. teleport player to {vLocal::%command%}
  55. send " "
  56. send "&aTeleportado para o ''%command%''&a."
  57. send " "
  58. play mob spawner flames at player
  59. play raw sound "note.pling" at player with pitch 1 volume 10
  60. stop
  61. else:
  62. cancel event
  63. send "&a&lWARP: &cVocê não tem permissão para utilizar esse comando."
  64. stop
Advertisement
Add Comment
Please, Sign In to add comment