Skip to content

Commit

Permalink
feat: Update to DZ 56
Browse files Browse the repository at this point in the history
- Fix: HUD/KeyHint inversed
- Fix: Incorrect spelling of "Has Restrcit" translate
- Fix: Buffer size when escaping
  • Loading branch information
Rushaway committed Apr 10, 2024
1 parent a7f1f47 commit 0bb5aa3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/entwatch/module_eban.inc
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public void EWM_Eban_BanClient(int iClient, int iAdmin, int iDuration, char[] sR
// Save to DB
if (g_iDBStatus == 4 && iBanDuration >= 0)
{
char szAdmin_Name[32], sClient_Name[32], szClient_Name[32], szReason[64];
char szAdmin_Name[32 * 2 + 1], sClient_Name[32 * 2 + 1], szClient_Name[32 * 2 + 1], szReason[64 * 2 + 1];
g_hEbanDB.Escape(sAdmin_Name, szAdmin_Name, sizeof(szAdmin_Name)); // Admin Name to DB
GetClientName(iClient, sClient_Name, sizeof(sClient_Name)); // Get Client Name
g_hEbanDB.Escape(sClient_Name, szClient_Name, sizeof(szClient_Name)); // Client Name to DB
Expand Down Expand Up @@ -445,7 +445,7 @@ public void EWM_Eban_UnBanClient(int iClient, int iAdmin, char[] sReason)
if(g_iDBStatus == 4)
{
char sSQL_Query[1024], szReason[64], szAdmin_Name[32];
char sSQL_Query[1024], szReason[64 * 2 + 1], szAdmin_Name[32 * 2 + 1];
g_hEbanDB.Escape(sReason, szReason, sizeof(szReason));//Reason Unban to DB
g_hEbanDB.Escape(sAdmin_Name, szAdmin_Name, sizeof(szAdmin_Name));//Admin Name Unban to DB
Expand Down
6 changes: 3 additions & 3 deletions addons/sourcemod/scripting/entwatch/module_hud.inc
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public Action EWM_Hud_Command_ToggleHUDType(int iClient, int iArgs)
{
g_CSettings_Hud[iClient].Type = !g_CSettings_Hud[iClient].Type;
SetClientCookie(iClient, g_hCookie_HudType, g_CSettings_Hud[iClient].Type ? "1" : "0");
CPrintToChat(iClient, "%s%t %s%t %s%t", g_SchemeConfig.Color_Tag, "EW_Tag", g_SchemeConfig.Color_Warning, "Hud Type", g_SchemeConfig.Color_Enabled, g_CSettings_Hud[iClient].Type ? "HUD" : "KeyHintText");
CPrintToChat(iClient, "%s%t %s%t %s%t", g_SchemeConfig.Color_Tag, "EW_Tag", g_SchemeConfig.Color_Warning, "Hud Type", g_SchemeConfig.Color_Enabled, g_CSettings_Hud[iClient].Type ?"KeyHintText" : "HUD");
}
return Plugin_Handled;
}
Expand Down Expand Up @@ -893,9 +893,9 @@ public int CookieMenuHandler(Menu menu, MenuAction action, int param1, int param
{
char Type[32];
if (g_CSettings_Hud[param1].Type)
FormatEx(Type, sizeof(Type), "%T", "HUD", param1);
else
FormatEx(Type, sizeof(Type), "%T", "KeyHintText", param1);
else
FormatEx(Type, sizeof(Type), "%T", "HUD", param1);

FormatEx(display, sizeof(display), "%T: %s", "Hud Type", param1, Type);
return RedrawMenuItem(display);
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/entwatch_dz.sp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Plugin myinfo =
name = "EntWatch",
author = "DarkerZ[RUS], AgentWesker, notkoen, sTc2201, maxime1907, Cmer, .Rushaway, Dolly",
description = "Notify players about entity interactions.",
version = "3.DZ.55",
version = "3.DZ.56",
url = "dark-skill.ru"
};

Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/translations/EntWatch_DZ.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
}
"Has a Restrict"
{
"en" "has a restrict"
"en" "is currently restricted"
}
"Transfered all items"
{
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/translations/fr/EntWatch_DZ.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
}
"Has a Restrict"
{
"fr" "a un restrict"
"fr" "est actuellement restreint"
}
"Transfered all items"
{
Expand Down

0 comments on commit 0bb5aa3

Please sign in to comment.