Hi all,
I'm planning to make a link from my roleplayer server to my TTT server.
I already created an NPC which makes you connect but there is one problem...\
If the server is full you disconnected and you get the error.
Now, is there a way to get playerinformation (such as online players) of that server to see if there is a spot, if yes, connect them?
MySQL, or if you cannot do that, I guess, if you are lazy, you could just save the amount of players to a txt document everytime someone joins/leaves, then when they try to connect from darkrp, it checks the document and sees if you can fit?
[QUOTE=AnonTakesOver;44761013]MySQL, or if you cannot do that, I guess, if you are lazy, you could just save the amount of players to a txt document everytime someone joins/leaves, then when they try to connect from darkrp, it checks the document and sees if you can fit?[/QUOTE]
Pretty sure there's a more efficient way than using mySQL or a text file, although I have no idea how.
With some searching I found these pages in a thread related to getting the player count of another server.
[url]http://facepunch.com/showthread.php?t=1139772&p=33245316&viewfull=1#post33245316[/url]
[url]https://developer.valvesoftware.com/wiki/Master_Server_Query_Protocol[/url]
[url]http://www.facepunch.com/threads/1136961[/url]
If it's a bit too overwhelming for you, you should probably just stick with the simpler solutions suggested above.
Sockets.
Sorry, you need to Log In to post a reply to this thread.