From 3c6513fd448f2482f0247ab2227e2ce762d587c2 Mon Sep 17 00:00:00 2001 From: IT07 Date: Sat, 11 Jun 2016 23:14:26 +0200 Subject: [PATCH] New file --- exile_vemf_reloaded/sqf/systemChatToClient.sqf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 exile_vemf_reloaded/sqf/systemChatToClient.sqf diff --git a/exile_vemf_reloaded/sqf/systemChatToClient.sqf b/exile_vemf_reloaded/sqf/systemChatToClient.sqf new file mode 100644 index 0000000..e14f67d --- /dev/null +++ b/exile_vemf_reloaded/sqf/systemChatToClient.sqf @@ -0,0 +1,18 @@ +/* + Author: IT07 + + Params: + _this select 0: FORMATTED STRING - line to broadcast + _this select 1: ARRAY - specific clients to (ONLY) send line to + + Returns: + nothing +*/ + +_line = param [0, "", [""]]; +_sendTo = param [1, [], [[]]]; +if (_sendTo isEqualTo []) then { _sendTo = allPlayers }; +{ + VEMFrMsgToClient = [_line, "sys"]; + (owner _x) publicVariableClient "VEMFrMsgToClient"; +} forEach _sendTo;