Jump to content
  • 0

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


Althezier

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  01/06/19
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  01/06/19
  • Last Seen:  

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...