mob
verb
Shutdown()
set category="Admin"
switch(alert("Are you sure you want to shutdown the world?",,"Yes","No"))
if("Yes")
for(var/mob/Player/M in world)
M.islocked = 0
M.SaveAuto()
sleep(100)
del (world)
mob/proc/SaveAuto()
src.client.Save()
src<<"<font color = #dc143c>Your game has been auto-saved."
Now, What i want this system to do is save every player before shutting down. It saves the player but the procedure ends after that and the world does not get deleted. Help?
~>Jiskuha