Jump to content
×
×
  • Create New...
  • 0

[HELP]Hyperlink pw in chat


StrinG

Question

Hello,

 

I have a problem because I do all in this topic : 

 

Maybe someone interested, here it is for the source:

Open game/input_main.cpp and search for this:
 

Code:
int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);

Replace with this:
 

Code:
    int len;
    if (pinfo->type == CHAT_TYPE_SHOUT)
    {
        len = snprintf(chatbuf, sizeof(chatbuf), "|Hmsg:%s|h%s|h|r : %s", ch->GetName(), ch->GetName(), buf);
    }
    else
    {
        len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    }

On client-side just do the modifications in the interfacemodule.py, the uichat.py modification is not required anymore.

 

 

And when click in nickname in chat open chat this person but I would like behind nickname been: example [PW]

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.