From dee52083d359434fc3ac51a871c1b836d092d2ac Mon Sep 17 00:00:00 2001 From: hybrid Date: Thu, 11 Jun 2026 19:55:41 +0300 Subject: init --- Client/PVFunctions/LocalizeMessage.sqf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Client/PVFunctions/LocalizeMessage.sqf (limited to 'Client/PVFunctions/LocalizeMessage.sqf') diff --git a/Client/PVFunctions/LocalizeMessage.sqf b/Client/PVFunctions/LocalizeMessage.sqf new file mode 100644 index 0000000..0dfbe80 --- /dev/null +++ b/Client/PVFunctions/LocalizeMessage.sqf @@ -0,0 +1,23 @@ +Private["_localize","_txt"]; + +_localize = _this select 0; + +_txt = ""; +switch (_localize) do { + case "BuildingTeamkill": {_txt = Format [Localize "STR_WF_CHAT_Teamkill_Building",_this select 1, _this select 2, _this select 3]}; + case "Teamswap": {_txt = Format [Localize "STR_WF_CHAT_Teamswap",_this select 1, _this select 2, _this select 3, _this select 4]}; + case "UpgradeComplete": {_txt = Format [Localize "STR_WF_CHAT_Upgrade_Complete_Message",('WFBE_UPGRADELABELS' Call GetNamespace) select (_this select 1), _this select 2]}; + case "CommanderDisconnected": {_txt = Localize "strwfcommanderdisconnected"}; + case "TacticalLaunch": {_txt = Localize "STR_WF_CHAT_ICBM_Launch"}; + case "Teamkill": {_txt = Format [Localize "STR_WF_CHAT_Teamkill",('WFBE_TEAMKILLPENALTY' Call GetNamespace)]; -('WFBE_TEAMKILLPENALTY' Call GetNamespace) Call ChangePlayerFunds}; + case "FundsTransfer": {_txt = Format [Localize "STR_WF_CHAT_FundsTransfer",_this select 1,_this select 2]}; + case "StructureSold": {_txt = Format [Localize "STR_WF_CHAT_Structure_Sold",([_this select 1,'displayName'] Call GetConfigInfo)]}; + case "StructureSell": {_txt = Format [Localize "STR_WF_CHAT_Structure_Sell",([_this select 1,'displayName'] Call GetConfigInfo),_this select 2]}; + case "SecondaryAward": {_txt = Format [Localize "STR_WF_CHAT_Secondary_Award",_this select 1, _this select 2];(_this select 2) Call ChangePlayerFunds}; +}; + +if (_localize != 'FundsTransfer') then { + _txt Call CommandChatMessage; +} else { + _txt Call GroupChatMessage; +}; \ No newline at end of file -- cgit v1.3.1