Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- if attacker is a player:
- if distance between the victim and {spawn} is bigger than {distance}:
- victim is a player
- {incombat.%victim%} is false
- set {incombat.%victim%} to true
- set {incombat.%attacker%} to true
- set {attacking.%attacker%} to "%victim%"
- send "&7%attacker% damaged you, no close session or you will &4die&7!" to victim
- send "&7You damaged %victim%, no close session or you will &4die!" to attacker
- wait 10 seconds
- set {incombat.%attacker%} to false
- set {incombat.%victim%} to false
- send "&7You can log out now" to victim
- send "&7You can log out now" to attacker
- on join:
- set {attacking.%player%} to ""
- set {incombat.%player%} to false
- on quit:
- if {incombat.%player%} is true:
- kill the player
- broadcast "{@anticombatlogout} %player% died because logged out while in combat!"
- set {combatlogout.%player%} to true
- stop
- on join:
- {combatlogout.%player%} is true
- send "{@anticombatlogout}You died because you logged out while in combat!"
- set {combatlogout.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment