• 0
Sign in to follow this  
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!

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this