Trying to make a code that kills the player who disconnected on pvp...
Code:
on damage:
set {damage.%victim%} to true
set {player'soldhealth.%victim%} to victim's health
wait 5 seconds
if {player'soldhealth.%victim%} = victim's health:
set {damage.%victim%} to false
on leave:
if {damage.%player%} is true:
set {death.%player%} to true
on join:
if {death.%player%} is true:
kill player