From 39f8e99bc869b8d0b28d5077e8156e264b8deeaf Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 8 Jul 2023 23:55:50 +0200 Subject: [PATCH] added mini comment on sourceban about if its same IP or steam ID thats detected --- jenz_ban_detector/scripting/jenz_ban_detector.sp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jenz_ban_detector/scripting/jenz_ban_detector.sp b/jenz_ban_detector/scripting/jenz_ban_detector.sp index 98689261..0459dde1 100644 --- a/jenz_ban_detector/scripting/jenz_ban_detector.sp +++ b/jenz_ban_detector/scripting/jenz_ban_detector.sp @@ -194,7 +194,16 @@ public void sql_select_sb_bans(Database db, DBResultSet results, const char[] er } Call_Finish(); //bans need to be over 1 hour long for getting detected - SBPP_BanPlayer(0, client, 0, "Ban avoiding (Jenz ban detector)"); + if (strlen(sSID) == 0) + { + SBPP_BanPlayer(0, client, 0, "Ban avoiding (Jenz ban detector). Same IP avoiding ban."); + } + else + { + char message[1024]; + Format(message, sizeof(message), "Ban avoiding (Jenz ban detector). SteamID avoiding ban: %s", sSID); + SBPP_BanPlayer(0, client, 0, message); + } } delete results; }