added mini comment on sourceban about if its same IP or steam ID thats detected

This commit is contained in:
jenz 2023-07-08 23:55:50 +02:00
parent 0a18eeb5f3
commit 39f8e99bc8

View File

@ -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;
}