Jump to content
Sign in to follow this  
csk222

How to personalize a welcome message with players name

Recommended Posts

Hello. How can I personalize a welcome message with a players name using the following code.

_text = "<t size='1.5'>" + "BOMSF THOR SYSTEM" + "</t>" + "<br />" + "<t size='1.5'>" + "Enemy Assault" + "</t>" + "<br />" + "<img size='4' image='images\bomsf_thor.paa'/>" + "<br />" + "<br />" + "<t size='1'>" + "Welcome To" + "</t>" + "<br />" + "<t size='1'>" + "Kunduz, Afghanistan" + "</t>";
_1 =[_text,0.01,0.01,5,-1,0,90]spawn bis_fnc_dynamicText;
waituntil {scriptdone _1};

I want to insert the name after the image and before the "Welcome To".

Share this post


Link to post
Share on other sites

This maybe?:

hint (name player)

Share this post


Link to post
Share on other sites

I know I have to use name player, I just don't know how and where to put it in.

 

I have a hint script that allows me to display the players name, but I want to add the name to the welcome message if possible.

_num1 = 1;
_num2 = 2;
_num3 = 3;

_Stxt = parseText format
["
<t color='#00FFCC' size='1' align='center'>BOMSF THOR TASK MANAGEMENT SYSTEM</t><br/><br/>

<t color='#FF00FF' size='1' align='left'>%4</t> <t size='1' align='left'> Please take some time to read these instructions.</t><br /><br />

<t size='1' align='left'>Tasks are dynamically created by a squad leader. The objective is to clear all Opfor at each location.</t><br/><br/>

<t size='1' align='left'>Everything is done via the mouse Scroll Wheel Menu. Choose from the following options:</t><br/><br/>

<t color='#FFFF00' size='1' align='left'>TELEPORT MENU:</t> <t size='1' align='left'> Teleport to Leaders or Insertion Points. Make selection > Click OK.</t><br/>
<t size='1' align='left'>Note: When incapacitated, teleport to a Leader or Medic Station to be revived.</t><br/><br/>

<t color='#FF9900' size='1' align='left'>LOADOUTS MENU:</t> <t size='1' align='left'> Select preset  loadouts. Make selection > Close the pad with the Esc key.</t><br/>
<t size='1' align='left'>Note: Multiple scopes equipped in vest inventory.</t><br/><br/>

<t color='#A00000' size='1' align='left'>VIRTUAL ARSENAL</t> <t size='1' align='left'> and </t> <t color='#FF0000' size='1' align='left'>VIRTUAL AMMOBOX</t><t size='1' align='left'> also available.</t><br/><br/>

<t color='#00FF00' size='1' align='left'>REAMMO:</t> <t size='1' align='left'> Restocks your primary weapon's magazines (+1).</t><br/><br/>

<t color='#FF99FF' size='1' align='left'>View Distance Menu:</t> <t size='1' align='left'> Raise/Lower overall view distance and Remove Grass options.</t><br/><br/>

<t size='1' align='left'>Ctrl + Spacebar = Weapons Resting</t><br/>
<t size='1' align='left'>Shift + Page Up = BOMSF HUD</t><br/><br/>

<t size='1' align='left'>Weapons safe at base.</t><br/>
<t size='1' align='left'>No destruction of friendly equipment.</t><br/>
<t size='1' align='left'>Cooperative play expected.</t><br/>
<t size='1' align='left'>Stay with your squad.</t><br/><br/>

<t size='1' align='left'>Everyone is welcome here.</t><br/>
<t size='1' align='left'>Enjoy Your Stay and Good Hunting.</t><br/>

", _num1, _num2, _num3, name player];

hintSilent _Stxt;

Share this post


Link to post
Share on other sites


_text = format ["<t size='1.5'>" + "BOMSF THOR SYSTEM" + "</t>" + "<br />" + "<t size='1.5'>" + "Enemy Assault" + "</t>" + "<br />" + "<img size='4' image='images\bomsf_thor.paa'/>" + "<br />" + "<br />" + "<t size='1'>" + "Welcome %1 To" + "</t>" + "<br />" + "<t size='1'>" + "Kunduz, Afghanistan" + "</t>",name player];  

[_text,0.01,0.01,5,-1,0,90]spawn bis_fnc_dynamicText;

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  

×