Jump to content

Show welcome message & popup message in game


Coco-Nuts

Recommended Posts

Hello there,

 

Firstly, I don't know if what I made is allowed by the dev team so if it's not allowed, I will removed this topic.

Also, I made a tutorial in this place cause there is not yet a Script section.

 

 

[Preview]

 

So, there are 2 files in this tutorial, 1 file called "welcome.sqf" show a welcome message.

It looks like this (clic on the picture to extend) :

 

mini_8346002014120600002.jpg

 

 

The second file named "popup.sqf" show differents custom messages on the right side like this :

 

mini_9659302014120600001.jpg

 

 

[installation]

 

Create an "init.sqf" file in your mission folder and put this code inside :

 

call compile preprocessFileLineNumbers "\x\addons\a3_epoch_code\init\both_init.sqf";
if (isDedicated) then {
call compile preprocessFileLineNumbers "\x\addons\a3_epoch_server\init\server_init.sqf";
} else {
call compile preprocessFileLineNumbers "\x\addons\a3_epoch_code\init\client_init.sqf";
};

//Custom message
[] execVM "custom\welcome.sqf";
[] execVM "custom\popup.sqf"; 

Then, create a folder called custom in your mission.

Download and put these files inside :

 

welcome.sqf 

popup.sqf

 

 

[battlEye]

 

You have to modify your script.txt file in your BattlEye folder.

Change the number 7 with the number 1 at lines 1 - 2 - 20 - 21

 

 

[Antihack] 

 

In your folder @EpochHive, you have to comment the line : {"\x\addons\a3_epoch_code\compile\setup\EPOCH_clientInit.sqf", "EPOCH_clientInit"},

in the epochAH.hpp file.

 

 

That's all :)

 

 

I DO NOT take credits about these 2 files, they come from Altis Server.

Link to comment
Share on other sites

  • 2 months later...

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
  • Discord

×
×
  • Create New...