Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
fake

Colored text messages

Recommended Posts

Hey folks,

just a quick question - how can I send colored text messages to the player?

Right now I'm sending text messages to players likes this:

void sendPlayerMessage(PlayerBase player, string message)	
{
  Param1<string> Msgparam;
  Msgparam = new Param1<string>(message);
  GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, Msgparam, true, player.GetIdentity());
}

I am triggering any input of the player by the callback:

override void OnEvent(EventType eventTypeId, Param params)

case ChatMessageEventTypeID

This allows the player to use commands without mods of course and
to send global messages by using a command right before his message.

The issue is the RPC_USER_ACTION_MESSAGE type which is DARK RED and hard to see.
 

(1) How could I send messages instead by defining an own color or at least in WHITE?

(2) How can I hide the (local) message the player has entered from being displayed in the chat?

 

I appreciate any kind of help.

Regards - FakE

Share this post


Link to post
Share on other sites
Sign in to follow this  

×