ID:273307
 
EDIT: Whoops hit enter instead of tab.

Uhh..Anyways I'd like to know how to do what the title says

(PS: you just lost)
Well, i know how you could do it with a Skin button, and that would be to just place a button on the skin and put .quit in the commands section
In response to Kaioken
@Darkjohn66: That actually defeats the purpose of the project I have going. Also, i already knew that one. But, thanks anyways.

@Kaioken: Aha! Many thanks! That had the exact answer I was looking for.
basically make a hud on screen and give it a click option with
quit()
or
del(world)


Sorry if im wrong i haven't used byond for few months just reminding myself now...
Here's a simple way, if you are not looking for a skin button.

obj/HUD
icon='HUD.dmi' // Or whatever you want
Quit
screen_loc="1,0"// Set the coords on the screen grid it's assigned to.
icon_state="Quit" // Or whatever you want your iconstate to be.
Click(mob/M)
if(!istype(M,/mob/Player/)) return
M.Logout()


You'll probably have to place the HUD button on the screen too.

mob/proc
CreateHUD()
client.screen += new/obj/HUD/Quit // Add the button to their screen.