PDA

View Full Version : Player Counter for all servers?


gamemann
01-13-2012, 22:27
Is there a plugin or script that does the follow:
- calculates the CURRENT players on certain servers.
I want it so i can post it on my website, current users online(ingame on servers): <count>
Would be awesome :)
Please tell me if you don't understand!
thanks,
gamemann

TnTSCS
01-13-2012, 22:40
You could make a plugin where each server reports to a SQL server the current number of players

Then on your website, have it query and add up all of your server's reports from that SQL...

that's one way :)

gamemann
01-13-2012, 22:53
You could make a plugin where each server reports to a SQL server the current number of players

Then on your website, have it query and add up all of your server's reports from that SQL...

that's one way :)

yeah i was thinking about that :D
Sounds like a idea i could try :)
Only problem is i suck at sql on all languages :(

Impact123
01-13-2012, 22:58
I think php is the key here.

Yours sincerely
Impact

gamemann
01-14-2012, 16:54
Can anyone tell me how to make it?

TnTSCS
01-14-2012, 18:05
would be easier to make it then tell you how to make it...

basically, a config file will be used on each server where you will define each game server by a unique name/number and each plugin will communicate to a central database and update their record with the current players.

I won't touch the website portion, that would be up to you. But I "think" the plugin part would be simple enough.

mugen
01-14-2012, 18:23
try this


LINKS
Demo/Working Page: http://nihalindia.in/personal/srcds_multi.php
Download: http://nihalindia.in/personal/srcds_multi.zip


put in demo ip:port

wtfaatp
01-14-2012, 20:37
so basically something like this?
http://mfc4life.com/servers.php

TnTSCS
01-14-2012, 22:10
or ya, you could do it like mentioned above - just query your game servers individually and add up the totals instead of having a plugin report to a database