[Addon] Server Status Image for HLstatsX:CE

Moderator: STS Developers

[Addon] Server Status Image for HLstatsX:CE

Postby MadMakz » 24 Sep 2009 23:27

Prewords:
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!):
Image

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
User avatar
MadMakz
Administrator
Administrator
 
Posts: 112
Joined: 30 Jul 2009 18:26

RE: [Addon] Server Status Image for HLstatsX:CE

Postby Scorpion » 26 Sep 2009 00:44

Nice work!
in hope we´ll find some image contributors.

That might be me this weekend or so ;)
Image
Scorpion
Administrator
Administrator
 
Posts: 26
Joined: 24 Aug 2009 23:29

Re: [Addon] Server Status Image for HLstatsX:CE

Postby MadMakz » 16 Oct 2009 19:02

project is now on our newly tracker http://code.squadtag.com/projects/show/hlxce-ssi
User avatar
MadMakz
Administrator
Administrator
 
Posts: 112
Joined: 30 Jul 2009 18:26

Re: [Addon] Server Status Image for HLstatsX:CE

Postby Mu6o » 24 Nov 2009 02:25

Can you upload the image elsewhere, becase it's not valid :/
Mu6o
Newbie
Newbie
 
Posts: 4
Joined: 24 Nov 2009 02:11


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest

cron