Jump to content
Sign in to follow this  
TBGGrapidyGrape

Timed Server Messages

Recommended Posts

I there a way to setup timed server messages ? I want it to say "Join TBG Clan at tbgclan.com" every 15 or 20 min o0n our Arma 3 Servers. Is there a script for that ?

Share this post


Link to post
Share on other sites

Yeah that's setup but i want it to continue every 15 min motd just displays it when you first log in .

Share this post


Link to post
Share on other sites

Your answer is on that page Ed linked. Set your motdInterval=900; for 15 minute delay and put your "Join TBG Clan at tbgclan.com" message repeated under motd however many times you want it to display. So spam that every 15 minutes for 6 hours:

motd[] = {
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com",
"Join TBG Clan at tbgclan.com"
};
motdInterval = 900;

Share this post


Link to post
Share on other sites

cheap and cheerful waste of resources method....

init.sqf

//GLOBAL HINT
"FOCK_GHint" addPublicVariableEventHandler
 {
   private ["_GHint"];
  _GHint = _this select 1;
   hint format["%1", _GHint];
 };
execVM "servermessage.sqf";

servermessage.sqf

if (isserver) then {
while {true} do {
FOCK_GHint = "welcome to my server bitches!"; publicVariable "FOCK_GHint";
sleep 1200;
};

or you do it the otherway around

if !(isserver) then {
while {true} do {
hint "welcome to my server bitches!";
PAPABEAR=[West,"HQ"];
PAPABEAR SideChat "welcome to my server bitches!";
sleep 1200;
};

Share this post


Link to post
Share on other sites

Shame there does not seem to be an easy answer to this, kylania's works but you have to line up enough messages to last how ever long the server is going to be up.

Mike's relies on scripting the mission, which means you would have to rePBO all mission you had just to incorporate your server messages.

Something like

onUserConnected = "[{ handle = [] spawn {waitUntil {!isnull player}; while {true} do { systemChat 'server message here'; sleep 900; };};},'BIS_fnc_call',(_this select 0),false] call BIS_fnc_MP;"

in the server.cfg would be excellent but i cant get anything (and ive tried multiple different ideas) from this server script line to appear.

Edited by Larrow

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×