Guest User

Untitled

a guest
Jun 25th, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. # ---------------------------- #
  2. # TimeTnT Skript #
  3. # Author: GlobooX #
  4. # For: MinecraftPolska.Net #
  5. # ---------------------------- #
  6.  
  7. on load:
  8. if {timetnt} is not set:
  9. set {timetnt} to "tnt-is-off"
  10.  
  11. # ------------------- #
  12. # KONFIGURACJA #
  13. # ------------------- #
  14. options:
  15. check: 1 # CZAS W SEKUNDACH, CO ILE MA SPRAWDZAĆ AKTUALNĄ GODZINĘ
  16. tnt-set-on: 7 # O KÓREJ GODZINIE MA ZOSTAĆ WŁĄCZONE TNT (MINUT NIE MA!)
  17. tnt-set-off: 23 # O KTÓREJ GODZINE MA ZOSTAĆ WYŁĄCZONE TNT (MINUT NIE MA!)
  18.  
  19. # ------------------- #
  20. # KOD SKRYPTU #
  21. # ------------------- #
  22. every {@check} second:
  23. set {_check.time} to "%hour%" parsed as number
  24. if {timetnt} is "tnt-is-off":
  25. if {_check.time} is equal to {@tnt-set-on}:
  26. set {timetnt} to "tnt-is-on"
  27. if {timetnt} is "tnt-is-on":
  28. if {_check.time} is equal to {@tnt-set-off}:
  29. set {timetnt} to "tnt-is-off"
  30.  
  31. on rightclick with a tnt:
  32. if {timetnt} is "tnt-is-off":
  33. cancel event
  34. send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
  35. on explode:
  36. if {timetnt} is "tnt-is-off":
  37. cancel event
  38. send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
  39. on place tnt:
  40. if {timetnt} is "tnt-is-off":
  41. cancel event
  42. send "&6[&eTimeTnT&6] &cTnT oraz Creepery dostępne są w godzinach od {@tnt-set-on} do {@tnt-set-off}"
Advertisement
Add Comment
Please, Sign In to add comment