[SB++] Allow blocks on unverified and skip saving them.
This commit is contained in:
parent
f3575929f7
commit
c002407410
@ -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];
|
decl target_list[MAXPLAYERS], target_count, bool:tn_is_ml, String:target_name[MAX_NAME_LENGTH];
|
||||||
new String:reason[256];
|
new String:reason[256];
|
||||||
new bool:skipped = false;
|
new bool:skipped = false;
|
||||||
|
new bool:unverified = false;
|
||||||
|
|
||||||
// checking args
|
// checking args
|
||||||
if (targetId)
|
if (targetId)
|
||||||
@ -2167,9 +2168,10 @@ stock CreateBlock(client, targetId = 0, length = -1, type, const String:sReason[
|
|||||||
if (!g_bPlayerStatus[target])
|
if (!g_bPlayerStatus[target])
|
||||||
{
|
{
|
||||||
// The target has not been blocks verify. It must be completed before you can block anyone.
|
// 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");
|
//ReplyToCommand(client, "%s%t", PREFIX, "Player Comms Not Verified");
|
||||||
skipped = true;
|
//skipped = true;
|
||||||
continue; // skip
|
//continue; // skip
|
||||||
|
unverified = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (type)
|
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);
|
SavePunishment(client, target_list[0], type, length, reason);
|
||||||
if (target_count > 1 || !skipped)
|
if (target_count > 1 || !skipped)
|
||||||
ShowActivityToServer(client, type, length, reason, target_name, tn_is_ml);
|
ShowActivityToServer(client, type, length, reason, target_name, tn_is_ml);
|
||||||
|
Loading…
Reference in New Issue
Block a user