Raised This Month: $ Target: $400
 0% 

PHP get steam id of online players.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 06-29-2017 , 15:50   PHP get steam id of online players.
Reply With Quote #1

Is there a pure php script which only gets steam id's of online players?
4ever16 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-29-2017 , 16:06   Re: PHP get steam id of online players.
Reply With Quote #2

No, server queries don't give such info, you have to program your server (with a plugin or whatever) to send steam IDs.
klippy is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 06-30-2017 , 01:32   Re: PHP get steam id of online players.
Reply With Quote #3

As @KliPPy said:

- You will need RCON access and parse the data you receive by sending "status" via RCON.

OR

- You will need a plugin on the server that somehow opens up for the data you want to receive, it could for example be by populating a SQL database with the information when players join and/or quit the server, so the PHP script can retrieve it from the database.


So far, that's the only options you have, if you want more player details than the player name, kills/deaths and time spent on server.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 06-30-2017 at 01:33.
DarkDeviL is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode