feat: check client state before spawning bots

This commit is contained in:
Lierrmm 2023-02-27 10:46:44 +00:00
parent b669a37632
commit 7bf8abe917

View File

@ -126,6 +126,15 @@ namespace bots
command::add("spawnBot", [](const command::params& params) command::add("spawnBot", [](const command::params& params)
{ {
if (!game::is_server())
{
const auto client_states = *reinterpret_cast<uint64_t*>(0x1576FB318_g);
if (!client_states)
{
return;
}
}
size_t count = 1; size_t count = 1;
if (params.size() > 1) if (params.size() > 1)
{ {