Jump to content
Sign in to follow this  
Carpaazi

How to display text in multiplayer...

Recommended Posts

How can i use a text's that clients can see when playing multiplayer (sidechat,titletext etc...?)

---------- Post added at 01:37 PM ---------- Previous post was at 01:36 PM ----------

i found this sometime ago...

//nul=["text","hintS","",0] execVM "mp_chat.sqf";
_text = _this select 0;
_type = _this select 1;
_par1 = _this select 2;
_par2 = _this select 3;
if (isNil "_par2") then {
_par2 = 1;
};

_init = "";
_cone = createVehicle  ["RoadCone",[0,0,0], [], 0, "FLY"];
mp_chat = _par1;
publicVariable "mp_chat";

switch(_type)do 
{ 
case "group":
{
	_init = format["mp_chat groupchat '%1'",_text];		
};
case "vehicle":
{
	_init = format["mp_chat vehiclechat '%1'",_text];		
};
case "side":
{
	_init = format["mp_chat sidechat '%1'",_text];		
};
case "global":
{
	_init = format["mp_chat globalchat '%1'",_text];		
};
case "command":
{
	_init = format["mp_chat commandchat '%1'",_text];		
};
case "cutText":
{
	_init = format["cutText ['%1','%2',%3]",_text,_par1,_par2];		
};
case "echo":
{
	_init = format["echo '%1'",_text];		
};
case "hint":
{
	_init = format["hint '%1'",_text];		
};
case "hintC":
{
	_init = format["hintC '%1'",_text];		
};
case "hintS":
{
	_init = format["hintSilent '%1'",_text];		
};
};

_cone setVehicleInit _init;
processInitCommands;
deleteVehicle _cone;

But i can't get any text to show with this, and i can't find the thread that had this =)

Share this post


Link to post
Share on other sites

I am using this for my range I am making... The only part of it that I could get to work was the "hint" and "hintS" The person that made this did so as per request of me... It's in one of my threads, take a look under my profile and you will find it. I couldnt get any of the chats to work though..

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  

×