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

Serverinfo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   v3x (159)
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 02-26-2006 , 11:54   Serverinfo
Reply With Quote #1

Serverinfo, by p3tsin

Description:
Get status of defined servers (server name, current map, players/maxplayers, etc)

Settings:
Place serverlist.ini in amxmodx/data directory and add the addresses you want.
(Note MAX_SERVERS definition!)

Cvars & Commands:
- srv_format - response format for queries
- srv_format2 - response format when couldn't get server status

- say /servers - prints the status of servers defined in serverlist.ini

Response format variables:
$type - HL1 / HL2
$ip - ip address
$host - hostname
$map - current map
$dir - gamedirectory (e.g. cstrike)
$mod - modname (e.g. Counter-Strike)
$players - players/maxplayers
$pw - password protected? (Yes/No)

$timeleft - time remaining on current map
$nextmap - next map

Changelog:
1.00 - Initial release
1.01 - Fixed maxplayers showing as 0 when there are no players
1.10 - Added $timeleft and $nextmap
- Improved speed

Thanks to:
Kraugh for helping me with the byte values in the response


Oh, and you need Sockets module to run the plugin
Attached Files
File Type: zip serverlist.zip (229 Bytes, 4239 views)
File Type: sma Get Plugin or Get Source (serverinfo.sma - 6259 views - 8.5 KB)
__________________
plop
p3tsin is offline
 



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 21:30.


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