ID:171157
 
with the hubs, like on Mystic Journey and some others, how do u make it so it displays who is hosting??
world.status = "Hosted by []"
In response to Madpeter
thanks
In response to Madpeter
That will work, but its also hard-coded.

var/host
client/New()
if(src.client.address == null||src.client.address == "12.0.0.1"||src.client.address == world.address)
host = src.key
if(host) world.status = {"Hosted by <a href="http://developer.byond.com/people/[host]">[host]</a>"}
else world.status = "Unable to determine host."
.=..()
In response to SSJ2GohanDBGT
client/New()
for(var/client/C)
if(C.address == null||C.address == "12.0.0.1"||C.address == world.address)
host = src.key
world.status = "Hosted by [host]"
.=..()


Shouldn't it be that?
In response to Hell Ramen
Ouch, thats an unnecessary loop. =)

No, it should work fine. It checks the client that has logged in if it is the host or not.