Jump to content
  • 0
Althezier

How to display player name in a mes during a talk with an NPC

Question

Hello!

I'd like to know how I can display the player name during a talk with an NPC, for instance:

 

Quote

mes "^FF9900[Teleport Guy]^000000";
mes "What's up playername, all good?";

 

And it shows: What's up Althezier, all good?

 

Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
6 minutes ago, Althezier said:

Hello!

I'd like to know how I can display the player name during a talk with an NPC, for instance:

 

 

And it shows: What's up Althezier, all good?

 

Thanks!

You would do something like

mes "What's up "+strcharinfo(0)+", all good?";

 

  • Like 1
Link to comment
Share on other sites

  • 0
20 minutes ago, TheDerpySupport said:

You would do something like

mes "What's up "+strcharinfo(0)+", all good?";

 

It worked like a charm. Thanks man.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.