diff --git a/scripting/retakes_instadefuse.sp b/scripting/retakes_instadefuse.sp index 4fe549f..983ec1c 100644 --- a/scripting/retakes_instadefuse.sp +++ b/scripting/retakes_instadefuse.sp @@ -24,7 +24,7 @@ public Plugin myinfo = name = "[Retakes] Instant Defuse", author = "B3none", description = "Allows a CT to instantly defuse the bomb when all Ts are dead and nothing can prevent the defusal.", - version = "1.4.0", + version = "1.5.0", url = "https://github.com/b3none" } @@ -118,6 +118,24 @@ void AttemptInstantDefuse(int client, int exemptNade = 0) g_bWouldMakeIt = (c4TimeLeft >= 10.0 && !hasDefuseKit) || (c4TimeLeft >= 5.0 && hasDefuseKit); } + if (!g_bWouldMakeIt && (5.0 <= c4TimeLeft <= 10.0)) + { + for (int i = 0; i <= MaxClients; i++) + { + if (IsValidClient(i) && IsPlayerAlive(i) && HasDefuseKit(i)) + { + for (int j = 0; j <= MaxClients; j++) + { + if (IsValidClient(j)) + { + PrintToChat(j, "%T", "TeammateHasDefuseKit", j, MESSAGE_PREFIX); + } + } + return; + } + } + } + if (GetConVarInt(hEndIfTooLate) == 1 && !g_bWouldMakeIt) { if (!OnInstandDefusePre(client, c4)) diff --git a/translations/chi/instadefuse.phrases.txt b/translations/chi/instadefuse.phrases.txt index 95c5c4b..457d5d1 100644 --- a/translations/chi/instadefuse.phrases.txt +++ b/translations/chi/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "chi" "{1} 距离炸弹爆炸还有 {2} 秒, 反恐精英胜利" } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "chi" "{1} 你没有时间!你的队友有一个化解套件!" + } } diff --git a/translations/da/instadefuse.phrases.txt b/translations/da/instadefuse.phrases.txt index 8cdd804..5debbcf 100644 --- a/translations/da/instadefuse.phrases.txt +++ b/translations/da/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "da" "{1} Der var {2} sekunder tilbage på bomben. CT vinder." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "da" "{1} Du har ikke tid! Din holdkammerat har et Defuse Kit!" + } } diff --git a/translations/de/instadefuse.phrases.txt b/translations/de/instadefuse.phrases.txt index 5539aef..caf3720 100644 --- a/translations/de/instadefuse.phrases.txt +++ b/translations/de/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "de" "{1} Es waren {2} Sekunden übrig bis zur Explosion. Die Antiterroreinheit gewinnt." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "de" "{1} Du hast keine Zeit! Dein Teamkollege hat ein Entschärfungskit!" + } } diff --git a/translations/fr/instadefuse.phrases.txt b/translations/fr/instadefuse.phrases.txt index 67ccdc4..5703250 100644 --- a/translations/fr/instadefuse.phrases.txt +++ b/translations/fr/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "fr" "{1} Il restait {2} secondes avant l'explosion. Les CT gagnents." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "fr" "{1} Vous n'avez pas le temps ! Votre coéquipier a un kit de désamorçage !" + } } diff --git a/translations/hu/instadefuse.phrases.txt b/translations/hu/instadefuse.phrases.txt index fc5d72a..1801e12 100644 --- a/translations/hu/instadefuse.phrases.txt +++ b/translations/hu/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "hu" "{1} {2} Másodperc volt hátra a bomba robbanásáig, a CT-k nyertek!" } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "hu" "{1} Nincs időd! Csapattársának van Defuse Kitje!" + } } diff --git a/translations/instadefuse.phrases.txt b/translations/instadefuse.phrases.txt index ad6735e..679840d 100644 --- a/translations/instadefuse.phrases.txt +++ b/translations/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "en" "{1} There were {2} seconds left of the bomb. Counter Terrorists win." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "en" "{1} You have no time! Your teammate has a Defuse Kit!" + } } diff --git a/translations/nl/instadefuse.phrases.txt b/translations/nl/instadefuse.phrases.txt index c086d25..d38ecba 100644 --- a/translations/nl/instadefuse.phrases.txt +++ b/translations/nl/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "nl" "{1} Er waren nog {2} seconden over op de bomb. CTs winnen." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "nl" "{1} Je hebt geen tijd! Je teamgenoot heeft een Defuse Kit!" + } } diff --git a/translations/no/instadefuse.phrases.txt b/translations/no/instadefuse.phrases.txt index 6b01f7f..b1c3ca4 100644 --- a/translations/no/instadefuse.phrases.txt +++ b/translations/no/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "no" "{1} Det var {2} sekund igjen av bomben, CT vinner!" } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "no" "{1} Du har ikke tid! Lagkameraten din har et Defuse Kit!" + } } diff --git a/translations/pt/instadefuse.phrases.txt b/translations/pt/instadefuse.phrases.txt index 5fd3a4e..0b1c9ee 100644 --- a/translations/pt/instadefuse.phrases.txt +++ b/translations/pt/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "pt" "{1} Havia {2} segundos até a bomba explodi. Os CT's ganharam a ronda." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "pt" "{1} Você não tem tempo! Seu companheiro de equipe tem um kit de desarme!" + } } diff --git a/translations/ru/instadefuse.phrases.txt b/translations/ru/instadefuse.phrases.txt index 0b08e8b..049c83b 100644 --- a/translations/ru/instadefuse.phrases.txt +++ b/translations/ru/instadefuse.phrases.txt @@ -23,4 +23,10 @@ "#format" "{1:s},{2:.1f}" "ru" "{1} До взрыва оставалось {2} секунд. Спецназ победил." } + + "TeammateHasDefuseKit" + { + "#format" "{1:s}" + "ru" "{1} У тебя нет времени! У вашего товарища по команде есть комплект для обезвреживания!" + } }