Jump to content

[C#]Chat Input String Modify


alexmohor1996

Recommended Posts

Hello, guys. I hope this finds you well. I have just started developing a Rage server in C# and I was wondering if someone can help me with a thing. I would like to alter the chat input string, as in: the current string, when hitting T and writing something, it is something like > {name}: {message}. The problem is I cannot find anywhere the chat string function, unfortunately. as I want to customize it with different own things. I would very much appreciate the help on this one, please :) .

Link to comment
Share on other sites

15 hours ago, hash_ said:

why don't you do something simple like

 

var p = player;

NAPI.Chat.SendChatMessageToPlayer($"{p.Name}:TEXT");

I really appreciate the reply, thank you. While waiting for one, I turned the internet upside down searching and I discovered I should have turned off the Global Chat and alter the "OnChatMessage" Event with a "SendChatMessageToAll" function.  Thank you, once again ^_^

Link to comment
Share on other sites

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.
×
×
  • Create New...