Poll

Was this module useful, and helpful?

Yes :)
274 (87.5%)
No :(
39 (12.5%)

Total Members Voted: 308

Author Topic: Player Chat Tags [2.58v]  (Read 377916 times)

0 Members and 4 Guests are viewing this topic.

Offline eliman

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #180 on: April 24, 2015, 01:45:26 PM »
Please tell me you two have tried restarting your servers...
I restarted my server after installing, and still not working.

<Removed at Request>

  • Guest
Re: Player Chat Tags [2.58v]
« Reply #181 on: April 27, 2015, 09:57:50 AM »
I restarted my server after installing, and still not working.
Yeah, got the same problem here.
« Last Edit: February 04, 2018, 06:18:17 PM by JamminR »

Offline Consortias

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #182 on: April 27, 2015, 05:29:46 PM »
Yes, I've tried restarting my server several times..

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Player Chat Tags [2.58v]
« Reply #183 on: April 27, 2015, 08:26:58 PM »
Simple file name problem, fixed it for you.  Feel free to update original post with this.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags [2.58v]
« Reply #184 on: April 28, 2015, 11:30:01 AM »
This addon has been working for almost two years now, I don't understand how it could just randomly break, it was working after the Gmod update, so I don't understand it at all, I say this is a user-error, but more people have confirmed the bug, so examining what Aaron had posted, even further brought questions into my head, and got me more confused. So I just remade the filenames, and yeah.. should work now.. I think. Download on the original post.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Groth

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #185 on: April 29, 2015, 08:53:56 AM »
how do i make it so the players names aren't the same colour as there tag?

Offline Mamba .

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #186 on: April 29, 2015, 06:18:38 PM »
How do I change the text color? The text is always stuck on red.  :(

(The text used to type.)
« Last Edit: April 29, 2015, 06:32:37 PM by Mamba . »

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Player Chat Tags [2.58v]
« Reply #187 on: April 29, 2015, 10:55:41 PM »
How do I change the text color? The text is always stuck on red.  :(

(The text used to type.)

Change the colour option (255, 0, 0, 255) to anything else.. unless I misread this question.
Once you get to know me, you'll find you'll have never met me at all.

Offline Mamba .

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #188 on: April 30, 2015, 11:07:47 AM »
Change the colour option (255, 0, 0, 255) to anything else.. unless I misread this question.

No, the text used to speak. It's stuck on color red.

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
Re: Player Chat Tags [2.58v]
« Reply #189 on: May 02, 2015, 01:01:42 AM »
Is there a way to have multiple colors in it? example: "[Admin] Tomzen: blah blah blah", the closing brackets being red, and the rank and name in white?
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Player Chat Tags [2.58v]
« Reply #190 on: May 02, 2015, 07:56:33 AM »
No, the text used to speak. It's stuck on color red.

Can you provide a screenshot?
Once you get to know me, you'll find you'll have never met me at all.

Offline Mamba .

  • Newbie
  • *
  • Posts: 9
  • Karma: 0

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags [2.58v]
« Reply #192 on: May 05, 2015, 09:09:40 PM »
http://steamcommunity.com/sharedfiles/filedetails/?id=438095673

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.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Mamba .

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Player Chat Tags [2.58v]
« Reply #193 on: May 06, 2015, 12:32:31 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.

--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 )

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Player Chat Tags [2.58v]
« Reply #194 on: May 06, 2015, 12:40:39 PM »
Remove the chat tags and see if it persists. If it does, then it's not the chat tags.
Once you get to know me, you'll find you'll have never met me at all.