Poll

Was this module useful, and helpful?

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

Total Members Voted: 0

  • Print

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

0 Members and 1 Guest are viewing this topic.

Offline Adam_dale13

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #105 on: November 20, 2014, 01:32:51 am »
i Set myself as owner and my chat is Green now how can i set this to Red?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags 2.5
« Reply #106 on: November 20, 2014, 01:08:28 pm »
i Set myself as owner and my chat is Green now how can i set this to Red?

Depending on what version of the addon you're using. Are you using the manage version or automatic version, also what gamemode are you on?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline streetkilln

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #107 on: November 22, 2014, 08:27:20 am »
can some 1 help me?

i want the tags only to be colored not the whole user name.
also is there a way to get advert and occ working to show up?

Offline streetkilln

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #108 on: November 25, 2014, 07:56:43 am »
???????????????

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Player Chat Tags 2.5
« Reply #109 on: November 25, 2014, 08:06:14 am »
also is there a way to get advert and occ working to show up?
Hello,
your answer is literally on the previous page:
/index.php/topic,6196.75.html#msg37264 />
i want the tags only to be colored not the whole user name.
Simply remove the Color before ply:Nick()


Offline acc_name1

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #111 on: November 27, 2014, 11:01:56 pm »
yes i clicked on the link and went to facepunch but the link on there is dead

In order to make sure your name isn't color, add the teamGetColor. Like so:

Code: Lua
  1. hook.Add("OnPlayerChat", "Tags", function(ply, Text, Team, PlayerIsDead)
  2.         if ply:IsValid() then
  3.                 for k,v in pairs(Tags) do
  4.                         if ply:IsUserGroup(v[1]) then
  5.                                 if Team then
  6.                                                 if ply:Alive() then
  7.                                                         chat.AddText(Color(0, 204, 0, 255), "{TEAM} ",  v[3], v[2], team.GetColor(ply:Team()), ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  8.                                                 else
  9.                                                         chat.AddText(Color(255, 0, 0, 255), "*DEAD*", Color(0, 204, 0, 255), "{TEAM} ", v[3], v[2], team.GetColor(ply:Team()), ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  10.                                                 end
  11.                                                 return true
  12.                                 end
  13.                                 if ply:IsPlayer() then
  14.                                         if ply:Alive() then
  15.                                                 chat.AddText(Color(255, 0, 0, 255), "", v[3], v[2], team.GetColor(ply:Team()), ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  16.                                                 return true
  17.                                         elseif !ply:Alive() then
  18.                                                 chat.AddText(Color(255, 0, 0, 255), "*DEAD* ", v[3], v[2], team.GetColor(ply:Team()), ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  19.                                                 return true
  20.                                         end
  21.                                 end
  22.                         end
  23.                 end
  24.         end
  25. end)

P.S. I removed the original Gray "|" because I didn't like it, so make sure to not copy-paste that exactly if you want it. Just make sure you have the "team.GetColor(ply:Team())" in the right place before the "ply:Nick()" and it'll call whatever the original gamemode name team color was, making only the tag colored. :)

Offline UnderYouFive

  • Newbie
  • *
  • Posts: 28
  • Karma: -5
Re: Player Chat Tags 2.5
« Reply #112 on: December 13, 2014, 05:54:04 pm »
Can you change a steam ids chattag color with this addon?

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Player Chat Tags 2.5
« Reply #113 on: December 14, 2014, 01:36:24 am »
Hello,
you can assign tags with any color to certain groups, so you'd have to add that user to the specific group.
If I understood your question right, that is..

Offline Sgt.Blue

  • Newbie
  • *
  • Posts: 47
  • Karma: 2
Re: Player Chat Tags 2.5
« Reply #114 on: December 31, 2014, 06:37:36 am »
The colour values in the manage version have 4 values. I'd assume they'd be RGB values, but what is the 4th value for?

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: Player Chat Tags 2.5
« Reply #115 on: December 31, 2014, 07:55:19 am »
The colour values in the manage version have 4 values. I'd assume they'd be RGB values, but what is the 4th value for?
alpha (transparency)

Offline Custom

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
Re: Player Chat Tags 2.5
« Reply #116 on: January 18, 2015, 08:36:58 am »
I added the manage version on the addons folder. Do i need to add a addon?

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags 2.5
« Reply #117 on: January 21, 2015, 12:34:45 am »
I added the manage version on the addons folder. Do i need to add a addon?

Nope, as long as you read my description for this addon, everything should work for you.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline SkillerPenguin

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #118 on: January 28, 2015, 02:17:21 pm »
Hey!
In DarkRP, is there any way to make it so (OOC) still shows up before the prefix/name the way it does when this addon isn't installed?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Player Chat Tags 2.5
« Reply #119 on: January 28, 2015, 05:15:30 pm »


Hey!
In DarkRP, is there any way to make it so (OOC) still shows up before the prefix/name the way it does when this addon isn't installed?
Not with this addon, no.
Searching this thread from search box for "OOC" brings up this answer, linked/quoted several times. I dare say half a page of the 7 pages of this discussion are answering this question.
I didn't test the links. If they don't work, you'll likely have to find another, as the 'meant for Sandbox, other addons using chat hooks don't play well" (my paraphrasing) answer still applies.
These chat tags are mainly used for Sandbox.

I believe this is the ones you are looking for http://www.facepunch.com/showthread.php?t=1357420
Direct Link.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

  • Print