Jump to content
Sign in to follow this  
1para{god-father}

how to Display a message evey 45 min or so

Recommended Posts

I would like to display our Server details / rules every so ofter on our dedi server from the mission what would be the best way to do this ?

Thanks

tried this but it does not show on dedi ?

INIT


if (isserver) then {
execVM "message.sqf";
};

message.sqf

while {true} do
{
    player globalChat "Message";
    sleep (60*5); //Wait 5 minutes
};

Edited by psvialli

Share this post


Link to post
Share on other sites

Globalchat also has to be executed on all clients for them to see the message you are trying to make them say.

Another note, the MOTD from the server cfg broadcasts messages by whatever interval you have set, so doing this isn't really needed.

Example:

motd[] = {
"Message One",
"Message Two",
"Message Three"
};
motdInterval = 300; // Time interval (in seconds) between each message

Share this post


Link to post
Share on other sites

Will that display Message 1 then 300 sec later message 2 and so on.

If so is there a way to loop , as say the server is up for 24 hours it will stop showing the message unless i create 24 messages

how would i get my Global chat to work then if i cannot use Player ? i have executed on all clients but still no joy

Edited by psvialli

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  

×