Raised This Month: $51 Target: $400
 12% 

CSGO server list with real time updates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
binderjeep
Member
Join Date: Jan 2015
Old 12-08-2015 , 23:30   CSGO server list with real time updates
Reply With Quote #1

Hello. I am currently hosting a couple CSGO servers and I am able to list the server names on my website and have website visitors select the server which automatically launches steam and enters them into the server.

What i want to do is to list more information regarding the server on my website. More specifically, i want to be able to list the number of players currently in the server, and how much time is left in the current round. That way players know what they are getting into before connecting to the server.

Does anyone know of the PhP code required to acheive this, or any reasons why it wouldn't be possible?

thanks everyone.
binderjeep is offline
cam0
Senior Member
Join Date: Feb 2015
Old 12-08-2015 , 23:45   Re: CSGO server list with real time updates
Reply With Quote #2

https://github.com/xPaw/PHP-Source-Query

xPaw is also the guy that wrote the pawn-docgen that generates the pages on the SourceMod API. This should do what you need.

You could use a cron-job to update a json file with data every minute and create some Java-Script to load the server info onto a page. I do this for my community's website.
__________________

Last edited by cam0; 12-08-2015 at 23:45.
cam0 is offline
binderjeep
Member
Join Date: Jan 2015
Old 12-09-2015 , 16:12   Re: CSGO server list with real time updates
Reply With Quote #3

Thanks cam, ill give it a try
binderjeep 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 14:25.


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