SRCDS Steam group


query server to get players steam id
#1
Hi

I tried some of the libraries, but none worked for me.

I need to input server's iport, and get players steam id that are playing in it.

Help?
Reply
#2
Here's documentation on every information you can get via the built-in queries:
http://developer.valvesoftware.com/wiki/Source_Server_Queries

If there's not what you need than you have to write a sourcemod-plugin using the socket-extension or a database that you can also access externally.

Maybe there's another solution depending on what you need the steam-ids for.
Reply
#3
Just use the rcon status command and it will return all the information you should want.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#4
Sorry, he's right, I forgot about that.

http://developer.valvesoftware.com/wiki/Source_RCON_Protocol
Reply
#5
Just figure I'd add to this again ... heres another PHP example since your first was PHP as well:

http://fremnet.net/article/199/source-rcon-class
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#6
Well if you done have rcon access, you're screwed.
Only solution would be to write a sourcemod plugin and upload it on the server. But it seems that you don't have any access to the server at all?
Reply
#7
You will not be able to use these RCON commands then if you do not have access to the rcon_password.
Game Servers -- CentralFrag.com -- Use promocode "frag" for 15% off every month!
Reply
#8
Well with rcon-socketconnection, but otherwise no.
Reply
#9
You write a PHP script and make it send the rcon command status to the server and then you parse the output of the server and get the steam-id's.,
Reply
#10
Download an rcon-php library. I don't know how, I'm using my own script to parse logfiles for Steam IDs
Reply
#11
As I already said, here's everything you need:
http://developer.valvesoftware.com/wiki/Source_RCON_Protocol
Reply
#12
Well no.
You obviously didn't read the article because it mentions a lot of examples at the end.
Reply
#13
Well obviously then it isn't what he's after. He wants to send a command to the port 27015, not an RCON command. The link you sent him explains rcon not anything else.
Reply
#14
Rolleyes 
Ah...ok...
Rolleyes

And which command does he want to send?
Reply
#15
"status"
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)