Advertisement
Guest User

KDZ_Reiniciar.sk

a guest
Dec 31st, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. # Skript desenvolvido por KingZittu_ (Canal KingZittu_), baseado no skript de - OBanido. #
  2. # Em resposta ao pedido do tal no fórum da GamersBoard, realizei esta mudança no skript. #
  3. # Favor não retirar os créditos! #
  4. options:
  5. Servidor: &c&lFELP-REINICIAR
  6. variables:
  7. {reiniciando} = false
  8.  
  9. command /reiniciar [<text>]:
  10. trigger:
  11. if arg-1 is set:
  12. set {reiniciando} to true
  13. broadcast "&f "
  14. broadcast "&eServidor Reiniciando em 60 segundos!"
  15. broadcast "&eAlgumas funções seram desabilitadas!"
  16. broadcast "&eMotivo: %arg-1%"
  17. wait 30 seconds
  18. if {reiniciando} is true:
  19. broadcast "&eServidor Reiniciando em 30 segundos!"
  20. broadcast "&eAlgumas funções seram desabilitadas!"
  21. broadcast "&eMotivo: %arg-1%"
  22. wait 20 seconds
  23. if {reiniciando} is true:
  24. broadcast "&cO servidor será reiniciado em 10 segundos..."
  25. broadcast "&eAlgumas funções seram desabilitadas!"
  26. broadcast "&eMotivo: %arg-1%"
  27. wait 9 seconds
  28. if {reiniciando} is true:
  29. make console execute command "save-all"
  30. wait 1 second
  31. broadcast ""
  32. broadcast "&e* Reiniciando, voltamos ja."
  33. broadcast ""
  34. set {reiniciando} to false
  35. make console execute command "restart"
  36.  
  37. else:
  38. stop
  39. else:
  40. stop
  41. else:
  42. stop
  43.  
  44. command /creload:
  45. trigger:
  46. if {reiniciando} is true:
  47. set {reiniciando} to false
  48. broadcast ""
  49. broadcast "&4[Aviso] &cO reload foi cancelado!"
  50. broadcast ""
  51.  
  52.  
  53. on break:
  54. if {reiniciando} is true:
  55. if player does not have permission "burlar.restart":
  56. cancel event
  57. send ""
  58. send "{@Servidor}"
  59. send ""
  60. send "&cDesculpe você não pode fazer isso agora, o servidor esta reiniciando..."
  61. send ""
  62. on place:
  63. if {reiniciando} is true:
  64. if player does not have permission "burlar.restart":
  65. cancel event
  66. send ""
  67. send "{@Servidor}"
  68. send ""
  69. send "&cDesculpe você não pode fazer isso agora, o servidor esta reiniciando..."
  70. send ""
  71. on command:
  72. if {reiniciando} is true:
  73. if player does not have permission "burlar.restart":
  74. cancel event
  75. send ""
  76. send "{@Servidor}"
  77. send ""
  78. send "&cDesculpe você não pode fazer isso agora, o servidor esta reiniciando..."
  79. send ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement