ID:262335
 
Code:
mob/var/ishost=0
var/spread = 0
var/host=""
mob/New()
..()
spawn()
checkhost()
mob/proc/checkhost()
if(client)
if(client.address==null ) host()//but the client is read as null

mob/proc/host()
if(istype(src,/mob))
host="[src.name]"
world.name="Dragonball Z : Legendary Super Saiyans"
world.status= "<font color=red>Main Server || V. 2.67 || Host: [src.key]</font> || byond://[world.address]:[world.port] "
ishost=1
if(src.key=="MechaDestroyerJD")
world.name="Dragonball Z : Legendary Super Saiyans"
world.status="<b><font color=green>Main Server || V. 2.67 || Host: [src.key] || byond://[world.address]:[world.port] </font></b>"
if(src.key == "")
world.name="Dragonball Z : Legendary Super Saiyans"
world.status="<font color=maroon>Temporary Server || V 2.67 || Host: [src.key] || byond://[world.address]:[world.port] </font>"
//for(var/X in typesof(/mob/host_verbs/verb)) verbs += X
else
..()


Problem description: For every person that hosts, it keeps sayin the Main Server..how can I fix this..

Change if(src.key=="") to else.
In response to Hell Ramen
Thanls..But um I wanan chaneg it so that whenever my hoster hosts, it'll say main serevr..how would I do that..
In response to Mecha Destroyer JD
He JUST TOLD YOU HOW!

~>Jiskuha
In response to Jiskuha
OH. I'm so dumb..Lol, I wasn't payin attention. When he said that, I looked at another part of the code. I see what he's talkin about..