Thread: Serverinfo
View Single Post
Plugin Info:     Modification:          Category:          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, 4225 views)
File Type: sma Get Plugin or Get Source (serverinfo.sma - 6222 views - 8.5 KB)
__________________
plop
p3tsin is offline