From c00240741081b3c3f0ded30c4989e9960230ccca Mon Sep 17 00:00:00 2001 From: zaCade Date: Sun, 20 Jul 2025 17:53:11 +0200 Subject: [PATCH] [SB++] Allow blocks on unverified and skip saving them. --- Sourcebans++/scripting/sbpp_comms.sp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sourcebans++/scripting/sbpp_comms.sp b/Sourcebans++/scripting/sbpp_comms.sp index 5945867..dddedb9 100644 --- a/Sourcebans++/scripting/sbpp_comms.sp +++ b/Sourcebans++/scripting/sbpp_comms.sp @@ -2072,6 +2072,7 @@ stock CreateBlock(client, targetId = 0, length = -1, type, const String:sReason[ decl target_list[MAXPLAYERS], target_count, bool:tn_is_ml, String:target_name[MAX_NAME_LENGTH]; new String:reason[256]; new bool:skipped = false; + new bool:unverified = false; // checking args if (targetId) @@ -2167,9 +2168,10 @@ stock CreateBlock(client, targetId = 0, length = -1, type, const String:sReason[ if (!g_bPlayerStatus[target]) { // The target has not been blocks verify. It must be completed before you can block anyone. - ReplyToCommand(client, "%s%t", PREFIX, "Player Comms Not Verified"); - skipped = true; - continue; // skip + //ReplyToCommand(client, "%s%t", PREFIX, "Player Comms Not Verified"); + //skipped = true; + //continue; // skip + unverified = true; } switch (type) @@ -2251,7 +2253,7 @@ stock CreateBlock(client, targetId = 0, length = -1, type, const String:sReason[ } } } - if (target_count == 1 && !skipped) + if (target_count == 1 && !skipped && !unverified) SavePunishment(client, target_list[0], type, length, reason); if (target_count > 1 || !skipped) ShowActivityToServer(client, type, length, reason, target_name, tn_is_ml);