2016-04-06 16:04:51 +00:00
|
|
|
/*
|
|
|
|
Author: IT07
|
|
|
|
|
|
|
|
Description:
|
|
|
|
will alert players
|
|
|
|
|
|
|
|
Params:
|
2016-04-15 11:37:03 +00:00
|
|
|
for global systemChat message:
|
2016-04-06 16:04:51 +00:00
|
|
|
_this select 0: FORMATTED STRING - thing to send
|
|
|
|
_this select 1: STRING - mode to send to client
|
2016-04-15 11:37:03 +00:00
|
|
|
for mission announcement:
|
|
|
|
_this select 0: ARRAY
|
|
|
|
_this select 0 select 0: FORMATTED STRING - Message line
|
|
|
|
_this select 0 select 1: STRING - announcement title
|
|
|
|
_this select 1: STRING - must be empty
|
2016-04-06 16:04:51 +00:00
|
|
|
|
|
|
|
Returns:
|
|
|
|
nothing
|
|
|
|
*/
|
|
|
|
|
2016-04-13 20:26:37 +00:00
|
|
|
private ["_msg"];
|
2016-04-06 16:04:51 +00:00
|
|
|
_msg = param [0, "", [[],format[""]]];
|
|
|
|
if not(_msg isEqualTo "") then
|
|
|
|
{
|
2016-04-13 20:26:37 +00:00
|
|
|
private ["_mode"];
|
2016-04-06 16:04:51 +00:00
|
|
|
_mode = param [1, "", [""]];
|
|
|
|
if (count allPlayers > 0) then
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (isPlayer _x) then
|
|
|
|
{
|
|
|
|
VEMFrClientMsg = [_msg, _mode];
|
|
|
|
(owner _x) publicVariableClient "VEMFrClientMsg";
|
|
|
|
};
|
|
|
|
} forEach allPlayers;
|
|
|
|
};
|
|
|
|
};
|