From 1cd23bc0fc1980d6023057e27945e8641588251a Mon Sep 17 00:00:00 2001 From: christian Date: Mon, 18 Oct 2021 20:49:57 +0200 Subject: [PATCH] bad fix to ensure admins/vips are set in case of forwards not being called --- AutismBotIngame/scripting/autism_bot_info.sp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index 8d8af742..c23cf065 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -316,6 +316,11 @@ public Action bot_check_connect(Handle timer, any data) for (int i = 1; i <= MaxClients; i++) if (IsValidClient(i) && !IsFakeClient(i)) { + //OnClientPostAdminCheck and OnClientAuthorized forwards wont trigger on the gg server after mapchanges/reconnects, welp + if (CheckCommandAccess(i, "sm_kick", ADMFLAG_KICK)) + admins[i] = true; + else if (CheckCommandAccess(i, "sm_reserved", ADMFLAG_RESERVATION)) + vips[i] = true; if (client_count > 60) { found_bot1 = true;