Dr_Kousek

Untitled

Sep 1st, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. on damage:
  2. if attacker is a player:
  3. if distance between the victim and {spawn} is bigger than {distance}:
  4. victim is a player
  5. {incombat.%victim%} is false
  6. set {incombat.%victim%} to true
  7. set {incombat.%attacker%} to true
  8. set {attacking.%attacker%} to "%victim%"
  9. send "&7%attacker% damaged you, no close session or you will &4die&7!" to victim
  10. send "&7You damaged %victim%, no close session or you will &4die!" to attacker
  11. wait 10 seconds
  12. set {incombat.%attacker%} to false
  13. set {incombat.%victim%} to false
  14. send "&7You can log out now" to victim
  15. send "&7You can log out now" to attacker
  16. on join:
  17. set {attacking.%player%} to ""
  18. set {incombat.%player%} to false
  19. on quit:
  20. if {incombat.%player%} is true:
  21. kill the player
  22. broadcast "{@anticombatlogout} %player% died because logged out while in combat!"
  23. set {combatlogout.%player%} to true
  24. stop
  25. on join:
  26. {combatlogout.%player%} is true
  27. send "{@anticombatlogout}You died because you logged out while in combat!"
  28. set {combatlogout.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment