Ulysses Stuff > Releases

Player Chat Tags [2.58v]

<< < (39/56) > >>

Caustic Soda-Senpai:

--- Quote from: Mamba . on April 30, 2015, 11:07:47 AM ---No, the text used to speak. It's stuck on color red.

--- End quote ---

Can you provide a screenshot?

Mamba .:

--- Quote from: syst3M4TiK on May 02, 2015, 07:56:33 AM ---Can you provide a screenshot?

--- End quote ---

http://steamcommunity.com/sharedfiles/filedetails/?id=438095673

Bite That Apple:

--- Quote from: Mamba . on May 05, 2015, 06:16:19 PM ---http://steamcommunity.com/sharedfiles/filedetails/?id=438095673

--- End quote ---

Can you copy the content within cl_chat_apple_tag.lua file, and share it with us all here, I feel this isn't my addon doing it, because I made it so my addon doesn't do that.

Mamba .:

--- Quote from: Bite That Apple on May 05, 2015, 09:09:40 PM ---Can you copy the content within cl_chat_apple_tag.lua file, and share it with us all here, I feel this isn't my addon doing it, because I made it so my addon doesn't do that.

--- End quote ---

--Chat Tags by Tyguy
CreateClientConVar("chat_tags_color_r", 0, true, false)
CreateClientConVar("chat_tags_color_g", 255, true, false)
CreateClientConVar("chat_tags_color_b", 35, true, false)
CreateClientConVar("chat_tags_color_a", 255, true, false)

local Tags =
{
--Group    --Tag     --Color
{"admin", "[Administrator] ", Color(255, 195, 0, 255) },
{"superadmin", "[Owner] ", Color(255, 0, 0, 255) },
{"mod", "[Moderator] ", Color(0, 221, 255, 255) },
{"user", "[Player] ", Color(0, 255, 5, 255) },
}

hook.Add("OnPlayerChat", "Tags", function(ply, strText, bTeamOnly)
   if IsValid(ply) and ply:IsPlayer() then
      for k,v in pairs(Tags) do
         if ply:IsUserGroup(v[1]) then
         local R = GetConVarNumber("chat_tags_color_r")
         local G = GetConVarNumber("chat_tags_color_g")
         local B = GetConVarNumber("chat_tags_color_b")
         local A = GetConVarNumber("chat_tags_color_a")
         local nickteam = team.GetColor(ply:Team())
            if !bTeamOnly then
            chat.AddText(v[3], v[2], nickteam, ply:Nick(), color_white, ": ", Color(R, G, B, A), strText)
            return true
            else
            chat.AddText(v[3], v[2], nickteam, "(TEAM) ", ply:Nick(), color_white, ": ", Color(R, G, B, A), strText)
            return true
            end
         end
      end
   end
   if !IsValid(ply) and !ply:IsPlayer() then
   local ConsoleColor = Color(255, 36, 251) --Change this to change Console name color
   chat.AddText(ConsoleColor, "Console", color_white, ": ", strText)
   return true
   end
end )

Caustic Soda-Senpai:
Remove the chat tags and see if it persists. If it does, then it's not the chat tags.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version