[SB++] Allow blocks on unverified and skip saving them.

This commit is contained in:
zaCade 2025-07-20 17:53:11 +02:00
parent f3575929f7
commit c002407410

View File

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