ID:167179
 
I have a feeling this is going to sound very noobish, but I've been having trouble with it and can't stand to look at it any more. Whats a good way to make sure that the person whos actually HOSTING the server gets host powers?(Note, I've already experimented with just giving it to the first player who logs in. I knew it wouldnt work, and it didn't but I triend anyway.)
Try this hosting demo to see if you can figure it out. I just did a quick search, and that seemed to be the best one.
Just check to see if the client's ip address is the same as the world's address.

example:

var/host
mob/Login()
checkhost(src)
if(client.address==world.address)
host=m.key
if(host==src)
world<<"[src] is the host!"


It would require more if you wanted to save it to a savefile so if the hosts host via dreamseeker, it'll log the host, and then if the host decides to host with dream daemon, it'll still say the host is the host. But if you deciced some one to be the host, just have them log into the game first to change the host.