summaryrefslogtreecommitdiffstats
path: root/Client/PVFunctions/LocalizeMessage.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
commita3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch)
treea554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Client/PVFunctions/LocalizeMessage.sqf
downloada2wf_chernarus-main.tar.gz
a2wf_chernarus-main.tar.bz2
a2wf_chernarus-main.zip
Diffstat (limited to 'Client/PVFunctions/LocalizeMessage.sqf')
-rw-r--r--Client/PVFunctions/LocalizeMessage.sqf23
1 files changed, 23 insertions, 0 deletions
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