ID:174075
 
when the game is live, in the bottom of the page it says

1 Game Live!


Join
|----------|
|-picture-| Logged in: ZDarkGoku
|-picture-|
|----------|

how do i make it says that who is hosting and stuff?
world/status="HELLO!"
Try this:
var
client
host=null
version="V.1.0"
players=0
mob
Login()
players++
if(!src.client.address)
host=src.client
world.status="[world.name] ([version]) Host - [host], Players - [players]"
..()
mob
Logout()
players--
del(src)
..()
In response to Goku72
Goku72 wrote:
Try this:
> var
> client
> host=null
> version="V.1.0"
> players=0
> mob
> Login()
> players++
> if(!src.client.address)
> host=src.client
> world.status="[world.name] ([version]) Host - [host], Players - [players]"
> ..()
> mob
> Logout()
> players--
> del(src)
> ..()
>



Woah woah woah!
if(!src.client.address)

If the client doesn't have an IP, return 1, and make them the host? Totally wrong.

It should be if(!world.address)
to change that line, change world.status. If you make world.status="This Is A Server" in the hub it will say just that; "This Is A Server"
In response to Airjoe
Airjoe wrote:
Woah woah woah!
if(!src.client.address)

If the client doesn't have an IP, return 1, and make them the host? Totally wrong.

It should be if(!world.address)

Actually, Goku was right here. world.address depends on whether the world is being hosted, NOT if the client is the host! And it certainly won't be different for different clients! src.client.address is the right var to use here.