You could have a series of triggers which are activated when the player passes them. Then you store the name (or number, whatever) of that trigger location and using that data, respawn the player there.
↧