Esempio n. 1
0
        private void HandleCreateLobbyResponse(IPacketMsg packetMsg)
        {
            var createResponse = new ClientMsgProtobuf <CMsgClientMMSCreateLobbyResponse>(packetMsg);

            EResult result = (EResult)createResponse.Body.eresult;

            if (result == EResult.OK)
            {
                ulong lobbyId = createResponse.Body.steam_id_lobby;
                CSGOClient.lobbyId = lobbyId;

                SetLobbyData(0, 1, 1, 1);
                SetLobbyData(0, 1, 2, 0);
                SetLobbyData(0, 1, 2, 0);
                SetLobbyOwner(CSGOClient.steamId);
                SetLobbyData(0, 10, 2, 0);
                SetLobbyData(0, 10, 2, 0);
                SetLobbyData(0, 10, 2, 0);

                RegisterLobbyParty();
                CSGOClient.UpdateRichPresence();
                //ClientGamesPlayedWithDataBlob(3);

                string log = string.Format("Lobby created with lobbyId : {0}", lobbyId);

                form.ToggleLobby(true);
                form.AddMessage(log);
                form.AddLog(log);
            }
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Directory.CreateDirectory(dirData);
            Directory.CreateDirectory(dirData + dirDataSentry);
            Directory.CreateDirectory(dirData + dirDataDebug);

            Utils.DeletingFiles(dirData + dirDataDebug + "\\");

            Thread.Sleep(500);

            Client = new CSGOClient(this, "USERNAME", "PASSWORD");
        }