16 posts in this topic

Posted (edited)

Hi guys, a little script me and @1Vincent Van Goat  fiddled around with and made it the welcome dialog on our server. So i thought id share it with you!

I this prompts the player on startup this fancy looking welcome screen! 

 

91b4ecb95e.jpg

 

Make a new file and call it "welcome.sqf" and edit it to your desire!

Spoiler

 

createDialog "RscDisplayWelcome"; 
 
_display = findDisplay 999999; 
_text1 = _display displayCtrl 1100; 
_buttonSpoiler = _display displayctrl 2400; 
_textSpoiler = _display displayctrl 1101; 
_text2 = _display displayCtrl 1102; 

_message = ""; 
_message = _message + "<t align='center' size='8' shadow='0'></t><br />"; 
_message = _message + "<t align='center' size='2' shadow='0'>Welcome to <a color='#ff9900'>GOAT</a> Exile Tanoa!</t><br />"; 
_message = _message + "<t align='center'>______________________________________________________________________________________</t><br /><br />"; 
_message = _message + "<t align='center' size='1' shadow='0'><a color='#ff9900'>TeamSpeak</a>: 164.132.233.77</t><br /><br />"; 
_message = _message + "<t align='center'>______________________________________________________________________________________</t><br /><br />"; 
_message = _message + "<t align='center' size='1.5' shadow='0'><t color='#ff9900'> We have HALO Jump Spawns - If this is your first time playing please click continue or you will hit the ground and die!</t></t><br />"; 
_message = _message + "<t align='center'>______________________________________________________________________________________</t><br /><br />"; 
_message = _message + "<t align='center' size='1' shadow='0'><t color='#ff9900'>Features:</t><br />"; 
_message = _message + "<t color='#ff9900'> Capture Points<br />"; 
_message = _message + "<t color='#ff9900'> The ability to mute ambient sounds<br />"; 
_message = _message + "<t color='#ff9900'> Missions<br />"; 
_message = _message + "<t color='#ff9900'> Tow/Lift<br />"; 
_message = _message + "<t color='#ff9900'> Server Events<br />"; 
_message = _message + "<t color='#ff9900'> Safezone Anti Theft<br />"; 
_message = _message + "<t color='#ff9900'> A Seperate Player Driven Market<br />"; 
_message = _message + "<t color='#ff9900'> An XM8 Full of interesting Apps<br />"; 
_message = _message + "<t color='#ff9900'> Virtual Garage<br />"; 
_message = _message + "<t color='#ff9900'> Town Invasions<br />"; 
_message = _message + "<t color='#ff9900'> Base Raiding With Grinders and Laptops<br />"; 
_message = _message + "<t color='#ff9900'> View Distance Changer<br />"; 
_message = _message + "<t color='#ff9900'> A Roaming Trader In Addition To Static Traders<br />"; 
_message = _message + "<t color='#ff9900'> Many GUI Improvements to make your time here at GOAT Exile Smoother<br />"; 
_message = _message + "<t align='center'>______________________________________________________________________________________</t><br /><br />"; 
_message = _message + "<t align='center' size='2' shadow='0'><t color='#ff9900'>Server Rules:</t></t><br />"; 
_message = _message + "<t align='center' size='2' shadow='0'><t color='#ff9900'>The Full Server Rules Are At http://www.goatexile.eu</t></t><br />"; 
_message = _message + "<t align='center' size='1.5' shadow='0'><t color='#ff0000'>By Clicking Continue you agree you have read the rules, or will read them at the nearest possible opportunity</t></t><br />"; 
_message = _message + "<t align='center'>______________________________________________________________________________________</t><br /><br />"; 
_message = _message + "- <a color='#ff9900'> We Offer Reserved Slots To Donators, To Donate Hop on the teamspeak and speak with an admin. </a></t><br /><br />"; 
_message = _message + "Sincerely, <a color='#ff9900'>Vincent Van Goat - Founder, Dev and owner of GOAT Exile</a><br /><br />"; 
  
 
_text1 ctrlSetStructuredText (parseText _message); 
 
_positionText1 = ctrlPosition _text1; 
_yText1 = _positionText1 select 1; 
_hText1 = ctrlTextHeight _text1; 
_text1 ctrlSetPosition [_positionText1 select 0, _yText1, _positionText1 select 2, _hText1]; 
_text1 ctrlcommit 0; 
_buttonSpoiler ctrlSetFade 1; 
_buttonSpoiler ctrlCommit 0; 
_buttonSpoiler ctrlEnable false; 
_textSpoiler ctrlSetFade 1; 
_textSpoiler ctrlCommit 0; 
_text2 ctrlSetFade 1; 
_text2 ctrlCommit 0;

Just call it in your init.sqf!

 

[] execVM "Custom\Welcome.sqf";

 

 

If you get this error: (Thanks @Sica)

variable _display does not support serialization

Too fix this error, add 

disableSerialization;

above variable _display

disableSerialization;
_display = findDisplay 999999; 
_text1 = _display displayCtrl 1100; 
_buttonSpoiler = _display displayctrl 2400; 
_textSpoiler = _display displayctrl 1101; 
_text2 = _display displayCtrl 1102; 
Edited by MrWardy
6 people like this

Share this post


Link to post
Share on other sites

Posted (edited)

Good one, thank you! only thing is when this script is executed an error pops up, 

variable _display does not support serialization

Too fix this error, add 

disableSerialization;

above variable _display

disableSerialization;
_display = findDisplay 999999; 
_text1 = _display displayCtrl 1100; 
_buttonSpoiler = _display displayctrl 2400; 
_textSpoiler = _display displayctrl 1101; 
_text2 = _display displayCtrl 1102; 

 

Edited by Sica
1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Posted (edited)

39 minutes ago, Sica said:

Good one, thank you! only thing is when this script is executed an error pops up, 


variable _display does not support serialization

Too fix this error, add 


disableSerialization;

above variable _display


disableSerialization;
_display = findDisplay 999999; 
_text1 = _display displayCtrl 1100; 
_buttonSpoiler = _display displayctrl 2400; 
_textSpoiler = _display displayctrl 1101; 
_text2 = _display displayCtrl 1102; 

 

Thank you for that, i was going to get around to adding a troubleshoot! but thanks pal!

Edited by MrWardy

Share this post


Link to post
Share on other sites

Posted (edited)

19 minutes ago, Mezo said:

You didn't make this.

Quote

Hi guys, a little script me and @1Vincent Van Goat  (Legend) put together.

Didnt say we did.

Its something we edited and made our welcome dialog. Something new. You're welcome.

Edited by MrWardy

Share this post


Link to post
Share on other sites
1 minute ago, Mezo said:

"put together" suggests you made it.

i shall rephrase this then. Thank you for pointing that out.

Share this post


Link to post
Share on other sites
1 minute ago, MrWardy said:

i shall rephrase this then. Thank you for pointing that out.

Do you have permission from the original author to release this?

Share this post


Link to post
Share on other sites
Just now, Mezo said:

Do you have permission from the original author to release this?

You mean bohemia? Not sure 99% of whats on here is. its part of the apex udate. 

Share this post


Link to post
Share on other sites
1 minute ago, MrWardy said:

You mean bohemia? Not sure 99% of whats on here is. its part of the apex udate. 

Wat8.jpg?1315930535

 

1 person likes this

Share this post


Link to post
Share on other sites
1 minute ago, Mezo said:

Wat8.jpg?1315930535

 

I found it in the apex files. Edited to our needs, and updated it on here... 

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

  • Recently Browsing   0 members

    No registered users viewing this page.