You might use it as alternative to "status.php"
However, this is the first release and since i´m not skilled at everything that belongs to graphics i just shipped and ugly default background, in hope we´ll find some image contributors.
Current Features:
* Shows Servername (stripped after 38 characters)
* Shows Server IP & Port
* Shows current Map
* Shows current players / maxplayers
* Shows total kills of Server
* Shows total CT/T wins of Server
* Shows current played map as image (if mapimage available, else the big questionmark you know from steamprofiles will show up)
* Shows gameicon on mapimage (if available, else it´ll print a default image)
* Shows country flag of server (if country info is available, else it´ll be not shown)
* Support for gametypebased backgrounds (Script will search for hlstatsimg/games//serverimage.png and use it automaticaly if it exists, else default is used)
Usage:
Unpack/copy files from archive into "hlstats.php" containing folder, keep structure intact!
You can call the image via "serverimage.php?server_id=X" (where X is your server ID)
Those who use mod_rewrite can use the following code and place them in a .htaccess file in the same folder where hlstats.php/serverimage.php resists
- Code: Select all
RewriteEngine On
RewriteRule serverimage-(.*).png$ serverimage.php?server_id=$1
(leave out the RewriteEngine On" line if you´re already using rewrite for HLX signatures!)
Now you can call the image via "serverimage-X.png" (where X is your server ID)
Preview (static screenshot!):

Download:
Here
Feature/Bug/Issue Tracker
Thanks:
Perry (from LGSL), bonzo, psychonic
Notes:
I added alot code comments, so it should be possible to be modified by everyone to fit your own needs.
Upcomming versions might have multiple sizes like i´ve done it on my LGSL reference version here already.
Have fun with it!
Makz
>>Thread at Interwave





