Guest User

AntyLogout

a guest
Dec 26th, 2021
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. on quit:
  2. {in.combat.%player%} is true
  3. kill player
  4. teleport player to {spawn}
  5. broadcast "<light red>%player% zostal zabity za probe ucieczki z walki!"
  6.  
  7. delete {in.combat.%player%}
  8. delete {seconds.until.out.%player%}
  9. on damage:
  10. victim is player
  11. attacker is player
  12. if {ochrona.%victim%} is true:
  13. cancel event
  14. if {ochrona.%attacker%} is true:
  15. cancel event
  16. else:
  17. if {in.combat.%victim%} is true:
  18. set {seconds.until.out.%victim%} to 10
  19. stop
  20. send "<light red>Jestes w walce. Nie wychodz z gry!" to victim
  21. set {in.combat.%victim%} to true
  22. set {seconds.until.out.%victim%} to 10
  23. while {seconds.until.out.%victim%} is more than 1:
  24. {seconds.until.out.%victim%} is not set:
  25. stop
  26. subtract 1 from {seconds.until.out.%victim%}
  27. wait 1 second
  28. delete {in.combat.%victim%}
  29. delete {seconds.until.out.%victim%}
  30. send "<light green>Mozesz sie bezpiecznie wylogowac" to victim
  31. on death of player:
  32. set {in.combat.%player%} to false
  33. wait 3 tick
  34. teleport player to {spawn}
  35. kick player due to "Zostales zabity zaloguj sie ponownie"
  36.  
  37.  
  38. on damage:
  39. victim is player
  40. attacker is player
  41. if {ochrona.%victim%} is true:
  42. cancel event
  43. if {ochrona.%attacker%} is true:
  44. cancel event
  45. else:
  46. if {in.combat.%attacker%} is true:
  47. set {seconds.until.out.%attacker%} to 10
  48. stop
  49. send "<light red>Jestes w walce. Nie wychodz z gry!" to attacker
  50. set {in.combat.%attacker%} to true
  51. set {seconds.until.out.%attacker%} to 10
  52. while {seconds.until.out.%attacker%} is more than 1:
  53. {seconds.until.out.%attacker%} is not set:
  54. stop
  55. subtract 1 from {seconds.until.out.%attacker%}
  56. wait 1 second
  57. delete {in.combat.%attacker%}
  58. delete {seconds.until.out.%attacker%}
  59. send "<light green>Mozesz sie bezpiecznie wylogowac" to attacker
  60. on entering of region "spawn":
  61. {in.combat.%player%} is true
  62. cancel event
  63. push the player upwards at speed 0.3
  64. push the player horizontally forward at speed -1
  65. send "&cKtos cie oderzyl, wiec nie mozesz teraz wrocic na bezpieczna strefe!"
  66. On Place:
  67. {in.combat.%player%} is true
  68. if player's y-coordinate is smaller than 30:
  69. cancel event
  70. send "&cNie mozna stawiac blokow podczas pvp. &7(30y)" to player
  71. on rightclick on ender chest:
  72. {in.combat.%player%} is true
  73. cancel event
  74. send "&cEnderchesta nie mozna otwierac podczas pvp." to player
  75. on command:
  76. {in.combat.%player%} is true
  77. if command is "hdom" or "spawn" or "sethome" or "schowek" or "home" or "tpa" or "tpaccept" or "tpyes" or "unregister" or "repair" or "feed" or "kit":
  78. cancel event
  79. send "&ckomenda /%command% jest zablokowane podczas pvp." to player
  80.  
  81.  
  82. on join:
  83. {in.combat.%player%} is set:
  84. delete {in.combat.%player%}
  85. {seconds.until.out.%player%} is set:
  86. delete {seconds.until.out.%player%}
Advertisement
Add Comment
Please, Sign In to add comment