djharbi2 Posted August 2, 2018 Share Posted August 2, 2018 Server.lua outputChatBox("sasas",getPlayerFromName ( username ) , 255, 168, 0, true) hello, the message to the person I sent the message came. I want to show the notification Link to comment
djharbi2 Posted August 2, 2018 Author Share Posted August 2, 2018 outputChatBox("sasas",username, 255, 168, 0, true) username = person hello, the message to the person I sent the message came. I want to show the notification Link to comment
Addlibs Posted August 2, 2018 Share Posted August 2, 2018 I'm sorry but your statement makes no sense. Care to, perhaps, use different words when someone asks to rephrase the question? Link to comment
Storm-Hanma Posted August 2, 2018 Share Posted August 2, 2018 he mean to display output msg to corresponding player like this as i guess outputChatBox(getPlayerName(source).." hello", player, 0, 255, 0) Link to comment
djharbi2 Posted August 2, 2018 Author Share Posted August 2, 2018 I give an example. my name is johnny, your name is henry johnny user sent a message to henry Henry user should be as follows "henry user has message from johnny user" Link to comment
djharbi2 Posted August 3, 2018 Author Share Posted August 3, 2018 no, I sent you money, for example on my screen "Money has been sent to KING KHAN user" should write on your screen "dj hari 2 must have sent you money" should write Link to comment
Addlibs Posted August 3, 2018 Share Posted August 3, 2018 (edited) That is simple string concatenation (the double dot operator): outputChatBox( "Money has been sent to "..getPlayerName(targetPlayer).." some money.", sourcePlayer, 255, 0, 0 ) -- send to source player message confirming his transaction with his target's name outputChatBox( getPlayerName(sourcePlayer).." has sent you some money.", targetPlayer, 255, 0, 0 ) -- send to target player a different message including the source's name Edited August 3, 2018 by MrTasty Link to comment
djharbi2 Posted August 3, 2018 Author Share Posted August 3, 2018 outputChatBox("sasas",getPlayerTarget (username) , 255, 168, 0, true) you'll see it on the username screen Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now