SpecT Posted August 27, 2014 Posted August 27, 2014 Hey! How can i make the /me command without colors ?
xXMADEXx Posted August 27, 2014 Posted August 27, 2014 You'll need to re-script it. Functions/Events onPlayerChat cancelEvent getPlayerName outputChatBox addCommandHandler -- optional
undefined Posted August 27, 2014 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)
Anubhav Posted August 27, 2014 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)
SpecT Posted August 27, 2014 Author Posted August 27, 2014 Thanks for the replies guys! I appreciate it!
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