奔放的牛 发表于 2010-6-11 07:19:57

CS服务器信息查询指令格式

-----------------------------
Game servers will answer the following messages:
Messages are sent to the server by sending 4 consecutive bytes of 255 (32-bit integer -1) and then the string command followed by a zero byte to terminate it "players" Server responds with the following packet:
(int32) -1
(byte) ASCII 'D' (players response, S2A_PLAYER)
(byte) active client count (byte) client number / index
(string) player name
(int32) client's frag total
(float32) client's total time in-game 大致是这个意思:如果向服务器发送内容为“players”的数据包,就得到以上格式的回应数据包。发送的数据是“4个连续字节,并以一个空字节结束” 请给个例子。
页: [1]
查看完整版本: CS服务器信息查询指令格式