Sign in to follow this  
Followers 0
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
2 people like this

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
6 minutes ago, NeverAgain said:

You are best !! And you still working on new zombies?

shhhhhhhhhhhhhhhhhhhhhhh

1 person likes this

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";

 

 

1 person likes this

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Exile Escape

    From the bottom of our hearts; we wish a merry christmas and a happy new year! May the next year be full of frags, bambi slayers and vishpirin! Thank you very much for your support! You guys rock!


    1,001.00 EUR of 1,000.00 EUR goal reached.
    Donate Now
  • Live Development
    10k followers possible?
  • Advertisement