SpecT Posted August 27, 2014 Share Posted August 27, 2014 Hey! How can i make the /me command without colors ? Link to comment
xXMADEXx Posted August 27, 2014 Share Posted August 27, 2014 You'll need to re-script it. Functions/Events onPlayerChat cancelEvent getPlayerName outputChatBox addCommandHandler -- optional Link to comment
undefined Posted August 27, 2014 Share Posted August 27, 2014 You'll need to re-script it.Functions/Events onPlayerChat cancelEvent getPlayerName outputChatBox addCommandHandler -- optional e.g addEventHandler("onPlayerChat", getRootElement(), function(msg, msgType) if msgType == 1 then cancelEvent() outputChatBox(getPlayerName(source)..": "..msg) end end) Link to comment
Anubhav Posted August 27, 2014 Share Posted August 27, 2014 addEventHandler("onPlayerChat", getRootElement(), function(msg, msgType) if msgType == 1 then cancelEvent() local playerName = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") local message = msg:gsub("#%x%x%x%x%x%x", "") outputChatBox("*"..playerName.." "..message) end end) Link to comment
SpecT Posted August 27, 2014 Author Share Posted August 27, 2014 Thanks for the replies guys! I appreciate it! 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