搜索

[登录器]求助!

[复制链接]
 楼主| 发表于 2020-3-5 20:57:04 | 显示全部楼层 来自 重庆
k1nader 发表于 2020-3-5 19:39
如果你服务器是47/48兼容的话试试将:

老哥,你QQ多少,我加你....感谢万分!
回复

使用道具 举报

发表于 2020-3-5 22:30:44 | 显示全部楼层 来自 内蒙古

  1. // Client is sending it's CD Key to Client Master
  2. #define S2A_INFO_DETAILED                'm'        // New Query protocol, returns dedicated or not, + other performance info.
  3. #define S2A_INFO_SOURCE                                'I'        //
复制代码


  1.         case S2A_INFO_SOURCE:
  2.                 Packet_InfoSource();
  3.                 break;
  4.         case S2A_INFO_DETAILED:
  5.                 Packet_InfoDetailed();
  6.                 break;

复制代码


  1. void CHLMaster::Packet_InfoSource()
  2. {
  3.         int protocol;
  4.         char *name;
  5.         char *map;
  6.         char *mod;
  7.         char *gamedir;
  8.         char *game;
  9.         int appid;
  10.         int players;
  11.         int maxplayers;
  12.         int bots;
  13.         int dedicated;
  14.         char os[2];
  15.         int password;
  16.         int secure;
  17.         sv_t *sv;

  18.         msg_readcount = 5;

  19.         protocol = MSG_ReadByte();
  20.         name = MSG_ReadString();
  21.         map = MSG_ReadString();
  22.         gamedir = MSG_ReadString();
  23.         game = MSG_ReadString();
  24.         appid = MSG_ReadShort();
  25.         players = MSG_ReadByte();
  26.         maxplayers = MSG_ReadByte();
  27.         bots = MSG_ReadByte();
  28.         dedicated = MSG_ReadByte();
  29.         os[0] = MSG_ReadByte();
  30.         os[1] = 0;
  31.         password = MSG_ReadByte();
  32.         secure = MSG_ReadByte();
  33. }
复制代码



  1. void CHLMaster::Packet_InfoDetailed()
  2. {
  3.         char *address;
  4.         char *name;
  5.         char *map;
  6.         char *mod;
  7.         char *gamedir;
  8.         char *game;
  9.         int players;
  10.         int maxplayers;
  11.         int protocol;
  12.         int dedicated;
  13.         char os[2];
  14.         int password;
  15.         int secure;
  16.         int bots;
  17.         sv_t *sv;

  18.         msg_readcount = 5;

  19.         address = MSG_ReadString();
  20.         name = MSG_ReadString();
  21.         map = MSG_ReadString();
  22.         gamedir = MSG_ReadString();
  23.         game = MSG_ReadString();
  24.         players = MSG_ReadByte();
  25.         maxplayers = MSG_ReadByte();
  26.         protocol = MSG_ReadByte();
  27.         dedicated = MSG_ReadByte();
  28.         os[0] = MSG_ReadByte();
  29.         os[1] = 0;
  30.         password = MSG_ReadByte();

  31.         if (MSG_ReadByte() == 1)
  32.         {
  33.                 MSG_ReadString(); //Link
  34.                 MSG_ReadString(); //Download Link
  35.                 MSG_ReadByte();   //NULL
  36.                 MSG_ReadLong();   //Version
  37.                 MSG_ReadLong();   //Size
  38.                 MSG_ReadByte();   //Type
  39.                 MSG_ReadByte();   //DLL
  40.         }

  41.         secure = MSG_ReadByte();
  42.         bots = MSG_ReadByte();
  43. }
复制代码
回复

使用道具 举报

 楼主| 发表于 2020-3-6 07:50:02 | 显示全部楼层 来自 重庆

这些GetInfo我  得到了。不过GetPlayers我没得到  如图。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

 楼主| 发表于 2020-3-6 07:53:44 | 显示全部楼层 来自 重庆
k1nader 发表于 2020-3-5 19:39
如果你服务器是47/48兼容的话试试将:

这些GetInfo我  得到了。不过GetPlayers我没得到  如图他返回的信息是
图上红线勾住的地方,我 看他 源码伤害不是 会显示 名字,杀敌,死亡这些吗

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

发表于 2021-12-19 09:46:44 | 显示全部楼层 来自 北美地区
搞好发布套出来共享下
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

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