diff --git a/src/component/exploit.cpp b/src/component/exploit.cpp index 43020db..4e86223 100644 --- a/src/component/exploit.cpp +++ b/src/component/exploit.cpp @@ -100,6 +100,17 @@ namespace exploit { game::Dvar_SetBool(cl_exploit, false); }); + + command::add("send_command", [](const command::params& params) + { + if (params.size() < 2) return; + + if (*game::connectionState <= game::connstate_t::CA_CHALLENGING) + return; + + const auto cmd = std::format("queryserverinfo ;{}", params.join(1)); + game::NET_OutOfBandPrint(game::NS_SERVER, game::localClientConnection->serverAddress, cmd.data()); + }); } }; }