mob/proc/DeathCheck(M)
M.Health = 0
M.MaxHealth = 100
M.icon_state="dead"
M.verbs+=(/mob/Death/verb/Spectate)
M.movestop=1
M.Alive=0
deaths+=1
world<<"<font color=red><b><BIG>[usr.key] has been killed!"
if(deaths==8)
world<<"<font color=red><b><BIG>All engineers have perished. Sending everyone back to lobby."
Problem description:
Just curious how I'd send every player in the world back to the lobby for the game. I have the lobby set as an area for locations, but can't figure out how to work it into the DeathCheck if everyone is dead.
Originally, I have it so the server reboots but I'd rather not do that.
area/Lobby