how to make brackets in white,
advert,ooc in red
I tried to change the color of ooc in sv_chatcommands.lua but it paints over the brackets ooc and nickname in red
here is the team that is responsible for this:
DarkRP.talkToPerson(v, col, "(" .. phrase .. ") " .. name, col2, text, ply)
local function OOC(ply, args)
if not GAMEMODE.Config.ooc then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("disabled", DarkRP.getPhrase("ooc"), ""))
return ""
end
local DoSay = function(text)
if text == "" then
DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
return ""
end
local col = team.GetColor(ply:Team())
local col2 = Color(255, 255, 255, 255)
if not ply:Alive() then
col2 = Color(255, 200, 200, 255)
col = col2
end
local phrase = DarkRP.getPhrase("ooc")
local name = ply:Nick()
for _, v in ipairs(player.GetAll()) do
DarkRP.talkToPerson(v, col, "(" .. phrase .. ") " .. name, col2, text, ply)
end
end
return args, DoSay
end
DarkRP.defineChatCommand("/", OOC, true, 1.5)
DarkRP.defineChatCommand("a", OOC, true, 1.5)
DarkRP.defineChatCommand("ooc", OOC, true, 1.5)
help
Sorry, you need to Log In to post a reply to this thread.