我的未来不是梦 发表于 2020-3-5 20:57:04

k1nader 发表于 2020-3-5 19:39
如果你服务器是47/48兼容的话试试将:




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

201724 发表于 2020-3-5 22:30:44


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



        case S2A_INFO_SOURCE:
                Packet_InfoSource();
                break;
        case S2A_INFO_DETAILED:
                Packet_InfoDetailed();
                break;




void CHLMaster::Packet_InfoSource()
{
        int protocol;
        char *name;
        char *map;
        char *mod;
        char *gamedir;
        char *game;
        int appid;
        int players;
        int maxplayers;
        int bots;
        int dedicated;
        char os;
        int password;
        int secure;
        sv_t *sv;

        msg_readcount = 5;

        protocol = MSG_ReadByte();
        name = MSG_ReadString();
        map = MSG_ReadString();
        gamedir = MSG_ReadString();
        game = MSG_ReadString();
        appid = MSG_ReadShort();
        players = MSG_ReadByte();
        maxplayers = MSG_ReadByte();
        bots = MSG_ReadByte();
        dedicated = MSG_ReadByte();
        os = MSG_ReadByte();
        os = 0;
        password = MSG_ReadByte();
        secure = MSG_ReadByte();
}




void CHLMaster::Packet_InfoDetailed()
{
        char *address;
        char *name;
        char *map;
        char *mod;
        char *gamedir;
        char *game;
        int players;
        int maxplayers;
        int protocol;
        int dedicated;
        char os;
        int password;
        int secure;
        int bots;
        sv_t *sv;

        msg_readcount = 5;

        address = MSG_ReadString();
        name = MSG_ReadString();
        map = MSG_ReadString();
        gamedir = MSG_ReadString();
        game = MSG_ReadString();
        players = MSG_ReadByte();
        maxplayers = MSG_ReadByte();
        protocol = MSG_ReadByte();
        dedicated = MSG_ReadByte();
        os = MSG_ReadByte();
        os = 0;
        password = MSG_ReadByte();

        if (MSG_ReadByte() == 1)
        {
                MSG_ReadString(); //Link
                MSG_ReadString(); //Download Link
                MSG_ReadByte();   //NULL
                MSG_ReadLong();   //Version
                MSG_ReadLong();   //Size
                MSG_ReadByte();   //Type
                MSG_ReadByte();   //DLL
        }

        secure = MSG_ReadByte();
        bots = MSG_ReadByte();
}

我的未来不是梦 发表于 2020-3-6 07:50:02

201724 发表于 2020-3-5 22:30


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

我的未来不是梦 发表于 2020-3-6 07:53:44

k1nader 发表于 2020-3-5 19:39
如果你服务器是47/48兼容的话试试将:




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

dvbbs1 发表于 2021-12-19 09:46:44

搞好发布套出来共享下
页: 1 [2]
查看完整版本: [登录器]求助!