ID:167179
Apr 18 2006, 11:06 am
|
|
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.)
|
Apr 18 2006, 11:27 am
|
|
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 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. |