ArtzifyHD

Combat Log

Aug 15th, 2017
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. on damage:
  2. if attacker is a player:
  3. victim is a player
  4. {incombat.%victim%} is false
  5. set {incombat.%victim%} to true
  6. set {incombat.%attacker%} to true
  7. set {attacking.%attacker%} to "%victim%"
  8. send "&c%attacker% damaged you, &7do not logout or close session or you will &4die!" to victim
  9. send "&cYou damaged %victim%, &7do not logout or close session or you will &4die!" to attacker
  10. wait 20 seconds
  11. set {incombat.%attacker%} to false
  12. set {incombat.%victim%} to false
  13. send "&aYou can log out now as you are no longer in combat!" to victim
  14. send "&aYou can log out now as you are no longer in combat!" to attacker
  15. on join:
  16. set {attacking.%player%} to ""
  17. set {incombat.%player%} to false
  18.  
  19. on quit:
  20. if {incombat.%player%} is true:
  21. kill the player
  22. broadcast "&7[&eAntiCombatLogout&7]&c %player% died because logged out while in combat!"
  23. set {combatlogout.%player%} to true
  24. stop
  25.  
  26.  
  27. on join:
  28. {combatlogout.%player%} is true
  29. send "&7[&eAntiCombatLogout&7]&cYou died because you logged out while in combat!"
  30. set {combatlogout.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment