Small fix
This commit is contained in:
parent
a546cc3392
commit
90c9227034
@ -123,9 +123,10 @@ namespace patches
|
|||||||
const auto menu_id = atoi(params.get(1));
|
const auto menu_id = atoi(params.get(1));
|
||||||
const auto client = &svs_clients[ent->s.entityNum];
|
const auto client = &svs_clients[ent->s.entityNum];
|
||||||
|
|
||||||
// 22 => "end_game"
|
// 32 => "end_game"
|
||||||
if (menu_id == 22 && client->header.remoteAddress.type != game::NA_LOOPBACK)
|
if (menu_id == 32 && client->header.remoteAddress.type != game::NA_LOOPBACK)
|
||||||
{
|
{
|
||||||
|
game::SV_DropClient_Internal(client, "PLATFORM_STEAM_KICK_CHEAT", true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,6 +197,7 @@ namespace game
|
|||||||
WEAK symbol<void(mp::client_t*, const char*, int)> SV_ExecuteClientCommand{0x0, 0x0};
|
WEAK symbol<void(mp::client_t*, const char*, int)> SV_ExecuteClientCommand{0x0, 0x0};
|
||||||
WEAK symbol<void(int localClientNum)> SV_FastRestart{0x0, 0x54BE00};
|
WEAK symbol<void(int localClientNum)> SV_FastRestart{0x0, 0x54BE00};
|
||||||
WEAK symbol<void(void* cl, int type, const char* fmt, ...)> SV_SendServerCommand{0x0, 0x1CC040};
|
WEAK symbol<void(void* cl, int type, const char* fmt, ...)> SV_SendServerCommand{0x0, 0x1CC040};
|
||||||
|
WEAK symbol<void(mp::client_t* drop, const char* reason, bool tellThem)> SV_DropClient_Internal{0x0, 0x54E7F0};
|
||||||
|
|
||||||
WEAK symbol<void()> Sys_ShowConsole{0x0, 0x0};
|
WEAK symbol<void()> Sys_ShowConsole{0x0, 0x0};
|
||||||
WEAK symbol<void(const char* error, ...)> Sys_Error{0x0, 0x1D8710};
|
WEAK symbol<void(const char* error, ...)> Sys_Error{0x0, 0x1D8710};
|
||||||
|
Loading…
Reference in New Issue
Block a user