From fce2dd09973f4dc3682a460212c63fa0b1fb5a6e Mon Sep 17 00:00:00 2001 From: vbawol Date: Sat, 26 Sep 2015 16:40:46 -0500 Subject: [PATCH] random message example --- .../addons/a3_epoch_server_settings.pbo | Bin 270975 -> 271191 bytes .../EpochEvents/MessageServer.sqf | 14 ++++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Server_Install_Pack/@epochhive/addons/a3_epoch_server_settings.pbo b/Server_Install_Pack/@epochhive/addons/a3_epoch_server_settings.pbo index 5f77595abc2e1204f901e6ded1fabdd747f5ecff..bf788d1ddc9b090defcef98d5f844acff32fb912 100644 GIT binary patch delta 330 zcmex=MBw@{fe9gsiv-xiTo@P_lJoP@GSl^v3krZ71Xv`nvGfTOTRTuyFXQBR<^~p1 zQwy`^$IR`InHhnY35c1uKW1i$l&sg+R|rbXOUchw@J%f)PE1cN=H=q$iqC~|6l@iu zdAXFJatek@I!HVt6rM2(&jiGawdUoDR)U(Pq@#c^wji-6F;^ivEjTAXzeuA9;sTB2 z{L;J+oQHerHW^O7_ qKx?{{EX#H#E&c89Wm#%iL?*hpai(5vlB{ofysYimxr|S0xBUQF$!9+R delta 115 zcmcb9OyK_!fe9gs$-L}gE({C|$@zI{ndy4T1qDD30wnWpEPcYnW)4)fm0@x`a|4Ts zxv6RMW9Ih9%#1+H1jNkSA2YK=N=_G$W7)d>q#R2Xi^!wW)h8{k6fai&?{{bO%gYxY I1qJQ|0IXvt*8l(j diff --git a/Sources/epoch_server_settings/EpochEvents/MessageServer.sqf b/Sources/epoch_server_settings/EpochEvents/MessageServer.sqf index adb54ef0..87d6ef02 100644 --- a/Sources/epoch_server_settings/EpochEvents/MessageServer.sqf +++ b/Sources/epoch_server_settings/EpochEvents/MessageServer.sqf @@ -1,2 +1,16 @@ +// Random Messages + +_messages = [ +"Message 1", +"Message 2", +"Message 3", +"Message 4", +]; +["message", _messages param [floor(random (count _messages))]] call EPOCH_serverCommand; + + +// Restart time +/* _restartIn = round((EPOCH_forceRestartTime-diag_tickTime)/60); ["message", format["Welcome to Epoch Mod, server wlll restart in %1 minutes",_restartIn]] call EPOCH_serverCommand; +*/