Counterstrike PHP class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

Counterstrike PHP class

Post by spamyboy »

Hi pleas i need help, I'm looking for PHP script wich could show curent map in my CS server, server name, players (ex. 4/24) ping and etc ?
Pleas were could I get it ?
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

http://server.counter-strike.net/phprcon/

gotta be something useful in that.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

That does remote console, but does it do simple queries, like he is asking?

I'd recommend reading more about this at http://dev.kquery.com/

It's by far the best resource online for this sort of thing that I've found. It has a page dedicated for the source engine (if you're talkin' CS: Source) and also one for Half-life (if you're talkin' CS 1.6).

Also, I believe GameQ ( http://gameq.sourceforge.net/ ) supports Half-life. Don't believe it supports Source though. That's a good solution if you're not experienced with PHP networking and general packet sending/handling. It's a plug-n-play solution, whereas you'd most likely need to program much of what you learn on kquery yourself.
User avatar
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

Post by spamyboy »

Im talking about 1.6
User avatar
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

Post by spamyboy »

Could I get more links ? :wink:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Didn't find what you were looking for on those two sites?

edit: typo
Last edited by m3mn0n on Thu Dec 22, 2005 8:10 am, edited 1 time in total.
User avatar
spamyboy
Forum Contributor
Posts: 266
Joined: Sun Nov 06, 2005 11:29 am
Location: Lithuania, vilnius

Post by spamyboy »

I didi (almost) but i still dint found how to show server ping
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Didn't you try GameQ? I know learning from the kquery site might be daunting for beginners, but GameQ is a plug-n-play PHP app. Just download... install.. and query...

And it supports Half-life (which means CS 1.6)
Post Reply