Hello brains of FP. Can anyone here help me with the easiest method to detect if a single steam account is connected to more than one of my servers at once? I got reports that a client of mine used a second computer with his steam account in offline mode to connect to a second server of mine. For consistancy and exploit reasons I need to prevent this by either detecting if a user is in offline mode and kicking them, or grabbing steam ID's of connected clients from my other servers to compare to each client when they connect.
Any ideas on how to do this?
Thanks in advance.
You could:
- poll the other servers with A2S_whatever requests using a socket module by yourself (difficult)
- make an http call to some page implementing [url]https://github.com/xPaw/PHP-Source-Query[/url] hosted on some webserver (easy); [URL="https://github.com/xPaw/PHP-Source-Query/blob/master/Examples/Example.php"]here[/URL]'s an example for said page. The gist of it is that you would take in the ip/port info through GET or POST variables, create an instance of the ServerQuery class, and echo the data you need.
then parse the data from all the servers, add up all the steamids into some table, then check if the player is in that table.
Sorry, you need to Log In to post a reply to this thread.