Shooterowy

[SCRIPT] TNT

Jul 27th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. #Autor: Shooterowy
  2.  
  3. options:
  4. time_on: 8
  5. time_off: 20
  6. variables:
  7. {TNT::status} = 2
  8. on place of TNT:
  9. if player doesn't have the permission "TNT.*" or "TNT.bypass":
  10. if {TNT::status} is 0:
  11. cancel event
  12. send "&cTNT jest aktualnie wylaczone przez administratora."
  13. stop
  14. if {TNT::status} is 2:
  15. if hour is smaller than {@time_on}:
  16. cancel event
  17. send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
  18. stop
  19. if hour is more than or equal to {@time_off}:
  20. cancel event
  21. send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
  22. stop
  23. command /tnt [<text>]:
  24. trigger:
  25. if arg is not set:
  26. if {TNT::status} is 0:
  27. send "&cTNT jest aktualnie wylaczone przez administratora."
  28. stop
  29. if {TNT::status} is 1:
  30. send "&aTNT jest aktualnie wlaczone przez administratora."
  31. stop
  32. if {TNT::status} is 2:
  33. send "&7TNT jest wlaczone w godzinach od &c{@time_on} &7do &c{@time_off}&c."
  34. if hour is smaller than {@time_on}:
  35. send "&cTNT jest aktualnie wylaczone."
  36. stop
  37. if hour is more than or equal to {@time_off}:
  38. send "&cTNT jest aktualnie wylaczone."
  39. stop
  40. send "&aTNT jest aktualnie wlaczone."
  41. stop
  42. if arg is not "wlacz" or "on" or "wylacz" or "off" or "auto":
  43. execute player command "tnt"
  44. stop
  45. if player doesn't have the permission "TNT.*":
  46. send "&cNie masz uprawnien do tej komendy!"
  47. stop
  48. if arg is "wlacz" or "on":
  49. set {TNT::status} to 1
  50. send "&aWlaczyles TNT."
  51. stop
  52. if arg is "wylacz" or "off":
  53. set {TNT::status} to 0
  54. send "&cWylaczyles TNT."
  55. stop
  56. if arg is "auto":
  57. set {TNT::status} to 2
  58. send "&7Ustawiles TNT na tryb automatyczny."
  59. stop
Add Comment
Please, Sign In to add comment