From 487a24f27822997a4121725e97287cbb592af1d8 Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 14 Aug 2023 12:55:53 +0200 Subject: [PATCH] just adding delay --- jenz_ban_detector/scripting/jenz_ban_detector.sp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jenz_ban_detector/scripting/jenz_ban_detector.sp b/jenz_ban_detector/scripting/jenz_ban_detector.sp index 05193d95..f8dcaecf 100644 --- a/jenz_ban_detector/scripting/jenz_ban_detector.sp +++ b/jenz_ban_detector/scripting/jenz_ban_detector.sp @@ -142,6 +142,19 @@ public void SQL_callback_update(Database db, DBResultSet results, const char[] e return; } if (IsValidClient(client) && !g_disable_html_motd[client]) + { + CreateTimer(7.0, re_open_motd, GetClientSerial(client)); + } +} + +public Action re_open_motd(Handle hTimer, int Serial) +{ + int client; + if ((client = GetClientFromSerial(Serial)) == 0) + { + return; + } + if (IsValidClient(client)) { //reopening the menu again after info got stored. it still generates the same fingerprint despite not showing the client any menu. Handle panel = CreateKeyValues("data");