Sign in to follow this  
NeverAgain

[Solved]Server message

8 posts in this topic

Please how to change to exile message(toast) ?

/******************************************************************
Advertise.sqf 
ver 1.0
(from a wasteland release, sorry, cant recall which one)

Waits 3 minutes for server to be running for first message then 
writes a message on players screen every X seconds (_delay)
List each message on a separate line [your message], and end with a 
comma EXCEPT the last message, no comma for last element of an array.

Include this file in your mission folder and in your init.sqf
add this line
if (!isserver) then {[]execvm "advertise.sqf";};
*******************************************************************/

_delay = 300;//5 minutes
sleep 180; // 3 minutes delay until first message
_messageArray = [
	["The fasted way to contact an admin is to join our teamspeak and ask for help."],
	["Join up on our website and take part in the discussions"],
	["Dont be a victim, Shoot First and SURVIVE!"],
	["The server restarts every 6 hours"]
];

while {true} do
{
	sleep _delay;
	_msg = _messageArray select (random (count _messageArray - 1));
	titleText [_msg, "PLAIN DOWN", 3];
};

 

Edited by NeverAgain

Share this post


Link to post
Share on other sites
51 minutes ago, NeverAgain said:

Please how to change to exile message(toast) ?

_delay = 300; //5 minutes
uiSleep 180; // 3 minutes delay until first message
_messageArray = [
	["The fasted way to contact an admin is to join our teamspeak and ask for help."],
	["Join up on our website and take part in the discussions"],
	["Dont be a victim, Shoot First and SURVIVE!"],
	["The server restarts every 6 hours"]
];

while {true} do
{
	uiSleep _delay;
	private _msg = selectRandom _messageArray;
	["InfoTitleOnly",[_msg]] call ExileClient_gui_toaster_addTemplateToast;
};

 

Edited by StokesMagee
  • Like 2

Share this post


Link to post
Share on other sites
Advertisement
1 hour ago, StokesMagee said:

_delay = 300; //5 minutes
uiSleep 180; // 3 minutes delay until first message
_messageArray = [
	["The fasted way to contact an admin is to join our teamspeak and ask for help."],
	["Join up on our website and take part in the discussions"],
	["Dont be a victim, Shoot First and SURVIVE!"],
	["The server restarts every 6 hours"]
];

while {true} do
{
	uiSleep _delay;
	private _msg = selectRandom _messageArray;
	["InfoTitleOnly",[_msg]] call ExileClient_gui_toaster_addTemplateToast;
};

 

You are best !! Deleted

Edited by NeverAgain

Share this post


Link to post
Share on other sites
11 minutes ago, StokesMagee said:

shhhhhhhhhhhhhhhhhhhhhhh

This is right ?

[] execVM "AVS\AVS_fnc_init.sqf";
[] execVM "Custom\R3F_LOG\init.sqf"; 
execVM "intro\intro.sqf";

if (isServer) then {

[] execVM "Custom\Message\advertise.sqf";

 

Edited by NeverAgain

Share this post


Link to post
Share on other sites
7 minutes ago, NeverAgain said:

This is right ?


[] execVM "AVS\AVS_fnc_init.sqf";
[] execVM "Custom\R3F_LOG\init.sqf"; 
[] execVM "intro\intro.sqf";
[] execVM "Custom\Message\advertise.sqf";

 

 

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.