mob
proc
FullGameCheck()
if(colmustard == 1 && profplum == 1 && mrspeacock == 1 && msscarlet == 1 && mrgreen == 1 && mrswhite == 1)
alert("Sorry, the game is currently full",src,"Observe","Leave")
if("Observe")
usr.loc = locate(15,15,1)
src = new /mob/observer
if("Leave")
src = new /mob/kickme
src.LogMeOut()
else
return
mob/kickme/proc
LogMeOut()
src.Logout()
mob/observer/verb
Spam()
world << "Ahhhh!"
Problem description:
now checking for the game to be full works perfectly fine. however i'm having a problem disconnecting them people who want to disconnect. it disconnects myself as well. i've done about 10 attempts at a workaround but i can't seem to find any that work.
another problem is, the observers aren't getting the Spam() verb. so am i going about this wrong or what?
What it seems you are TRYING to do is change a player's mob and for that you need:
src.client.mob = new/mob/observer
That will create a new mob, assign the player to it, and log them out of the other mob. As for people leaving, that code is unneccessary. Just put this:
If the verbs still don't show, simply add a proc like this:
Hope that helps!