Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions game/addons/sourcemod/scripting/sbpp_comms.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2237,18 +2237,31 @@ stock void CreateBlock(int client, int targetId = 0, int length = -1, int type,

for (int i = 0; i < target_count; i++)
{
char auth[64];
int target = target_list[i];

if (target && IsClientInGame(target))
{
if (!GetClientAuthId(target, AuthId_Steam2, auth, sizeof(auth)))
{
g_bPlayerStatus[target] = false;
}
else
{
g_bPlayerStatus[target] = true;
}
}

#if defined DEBUG
char auth[64];
GetClientAuthId(target, AuthId_Steam2, auth, sizeof(auth));
PrintToServer("Processing block for %s", auth);
#endif

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");
char name[32];
GetClientName(target, name, sizeof(name));
ReplyToCommand(client, "%s%t", PREFIX, "Player Comms Not Verified", name);
skipped = true;
continue; // skip
}
Expand Down
21 changes: 11 additions & 10 deletions game/addons/sourcemod/translations/sbpp_comms.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,17 @@
}
"Player Comms Not Verified"
{
"en" "This player has not been verified. Please wait thirty seconds before retrying."
"hu" "Ezt a játékost még nem igazolták. Kérlek, várj harminc másodpercet , mielőtt újra próbálkoznál."
"es" "este jugador no ha podido ser verificado. Por favor, espera 30 segundos antes de volver a intentarlo"
"ru" "Игрок еще не идентифицирован. Подождите 30 секунд перед следующей попыткой."
"pl" "Gracz niezweryfikowany. Proszę poczekać 30 sekund przed ponowną probą."
"pt" "Este(a) jogador(a) não foi verificado(a). Por favor, aguarde trinta segundos antes de tentar novamente."
"de" "Der Spieler ist noch nicht identifiziert. Warten Sie 30 Sekunden vor dem nächsten Versuch."
"fr" "Ce joueur n'a pas été vérifié. Veuillez attendre 30 secondes avant de réessayer."
"chi" "此用户尚未认证,请等待30秒后再试."
"tr" "Bu oyuncu doğrulanamadı. Lütfen tekrar denemeden önce 30 saniye bekleyiniz."
"#format" "{1:s}"
"en" "{1} has not been verified. Please wait thirty seconds before retrying."
"hu" "{1} még nem igazolták. Kérlek, várj harminc másodpercet , mielőtt újra próbálkoznál."
"es" "{1} no ha podido ser verificado. Por favor, espera 30 segundos antes de volver a intentarlo."
"ru" "{1} еще не идентифицирован. Подождите 30 секунд перед следующей попыткой."
"pl" "{1} niezweryfikowany. Proszę poczekać 30 sekund przed ponowną probą."
"pt" "{1} não foi verificado. Por favor, aguarde trinta segundos antes de tentar novamente."
"de" "{1} ist noch nicht identifiziert. Warten Sie 30 Sekunden vor dem nächsten Versuch."
"fr" "{1} n'a pas été vérifié. Veuillez attendre 30 secondes avant de réessayer."
"chi" "此({1})用户尚未认证,请等待30秒后再试."
"tr" "{1} doğrulanamadı. Lütfen tekrar denemeden önce 30 saniye bekleyiniz."
}
//--------------------------------------------------------------------------------
"Player already muted"
Expand Down