Code:
on player join:
if {cmert_count} is not set:
set {cmert_count} to "0"
on death of player:
if "0" = {cmert_count}:
set {cmert_count} to "1"
stop
if "1" = {cmert_count}:
set {cmert_count} to "2"
stop
if "2" = {cmert_count}:
set {cmert_count} to "3"
stop
if "3" = {cmert_count}:
set {cmert_count} to "4"
stop
if "4" = {cmert_count}:
set {cmert_count} to "5"
stop
if "5" = {cmert_count}:
teleport player to 500 500 500 to the world "Deads"
set {cmert_count} to 0