Guest User

DCWarps

a guest
Sep 22nd, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. # Skript : DCWarps
  2. # Versão : 1.0
  3. # Autor : Epiic/Junior
  4. # Forum Gamers Board (:
  5.  
  6. options:
  7. #PREFIXO DO SERVIDOR
  8. P: &7[&6&lD&c&lC&7]
  9. #MSG DE SEM PERMISSÃO
  10. SP: &cVocê não tem permissão.
  11. #PERMISSÃO PARA ADMINISTRADORES
  12. PP: dcwarps.admin
  13.  
  14. command /setlocal [<text>] [<text>]
  15. trigger:
  16. if arg 1 is set:
  17. if arg 2 is not set:
  18. if player has permission "{@PP}":
  19. set {Locais::%arg 1%} to location of player
  20. send "{@P} &aVocê setou o local &7%arg 1%"
  21. send "{@P} &aComando para ir é &7/%arg 1%"
  22. send "{@P} &aPermissão do warp é » &cirwarps.%arg 1%&a.
  23. stop
  24. else:
  25. send "{@P} &cUse: &7/setlocal [local]"
  26. stop
  27. else:
  28. send "{@P} &cUse: &7/setlocal [local]"
  29. stop
  30.  
  31. command /dellocal [<text>]:
  32. trigger:
  33. if arg 1 is set:
  34. if player has permission "{@PP}":
  35. if {Locais::%arg 1%} is set:
  36. clear {Locais::%arg 1%}
  37. send "&aVocê deletou o &2%arg 1%&a!"
  38. stop
  39. else:
  40. send "{@P} &7Esse local não existe."
  41. stop
  42. else:
  43. send "{@P} {@SP}"
  44. stop
  45. else:
  46. send "{@P} &cUse: &7/dellocal [local]"
  47. stop
  48.  
  49. command /warps:
  50. trigger:
  51. send "&2&l@===&b&l//&c&lLOCAIS&b&l\\&2&l===@"
  52. loop {Locais::*}:
  53. send "&6» &7/&f%loop-index%"
  54. send "&2&l@===&b&l\\&c&lLOCAIS&b&l//&2&l===@"
  55. stop
  56.  
  57. on command:
  58. loop {Locais::*}:
  59. if "%loop-index%" is "%full command%":
  60. if player has permission "irwarps.%loop-index%":
  61. cancel event
  62. send "{@P} &aAguarde &73s &a..."
  63. set {_y} to rounded y coordinate of player
  64. set {_x} to rounded x coordinate of player
  65. set {_z} to rounded z coordinate of player
  66. wait 3 seconds
  67. if {_y} is rounded y coordinate of player:
  68. if {_x} is rounded x coordinate of player:
  69. if {_z} is rounded z coordinate of player:
  70. teleport player to {Locais::%loop-index%}
  71. send "{@P} &aVocê foi até &7%loop-index%."
  72. else:
  73. send "{@P} &cTeleporte cancelado, você se moveu."
  74. stop
  75. else:
  76. send "{@P} &cTeleporte cancelado, você se moveu."
  77. stop
  78. else:
  79. send "{@P} &cTeleporte cancelado, você se moveu."
  80. stop
  81. else:
  82. send "{@P} {@SP}"
Advertisement
Add Comment
Please, Sign In to add comment