找回密码
 注-册

QQ登录

只需一步,快速开始

查看: 1107|回复: 0

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

[复制链接]
奔放的牛 发表于 2010-6-11 07:19:57 | 显示全部楼层 |阅读模式
-----------------------------
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个连续字节,并以一个空字节结束” 请给个例子。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注-册

本版积分规则

Archiver|手机版|小黑屋|DoDVip ( 桂ICP备14000730号 )

GMT+8, 2024-6-1 08:35 , Processed in 0.055044 second(s), 20 queries .

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表