Poll

Was this module useful, and helpful?

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

Total Members Voted: 310

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

0 Members and 2 Guests are viewing this topic.

Offline zackdavies

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
Re: Player Chat Tags 2.5
« Reply #30 on: August 07, 2013, 05:12:41 PM »
Where do i put the folder in the addons?

Offline JSHuiting

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #31 on: August 08, 2013, 04:11:02 PM »
I'm using the automatic version and I'm set as Owner and my Friends are Admins. However everyone turns unassigned in chat and in the scoreboard.  Am i missing something or do i need to assign everyone separately?

Thanks in advance.

Offline YOLOSWAGTTT

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #32 on: August 14, 2013, 12:14:57 AM »
Assuming you are using RGB colour codes, why are there 4 numbers?

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Player Chat Tags 2.5
« Reply #33 on: August 14, 2013, 12:58:08 AM »
Assuming you are using RGB colour codes, why are there 4 numbers?

The fourth value is transparency or alpha. ( RGBA )
I cry every time I see that I am not a respected member of this community.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 857
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags 2.5
« Reply #34 on: August 14, 2013, 03:40:26 AM »
Now for that ever reason, ulx forums has completely stopped sending me emails of when people reply to my addons. So I thought it was to the "cool down" point where people stop asking questions... I'll try to see what's up with that.


The fourth value is transparency or alpha. ( RGBA )

You have been very helpful around the ulx forums. I can say personally on behalf of everyone that you're a widely respected person here. Thanks for the assistance.


Assuming you are using RGB colour codes, why are there 4 numbers?

As said above by Hellfox.
1,2,3,4
R-ed, G-reen, B-lue, Transparent


I'm using the automatic version and I'm set as Owner and my Friends are Admins. However everyone turns unassigned in chat and in the scoreboard.  Am i missing something or do i need to assign everyone separately?

Thanks in advance.

Have you set up the teams in the groups tab in ulx?
Reminder: Teams are different from groups.


Where do i put the folder in the addons?

You put the folder in the addons folder..?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Expenox

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #35 on: September 23, 2013, 05:47:45 PM »
Is there anyway instead of having it put: Owner| name Is there a way it could be [Owner] Name? and this also applies to the joining part of server, could it say that instead of just [Server] Name joined the server! To be [Server] [Owner] Name joined the server!?

-Thanks ahead of time!

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 857
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags 2.5
« Reply #36 on: September 24, 2013, 01:55:55 AM »
Is there anyway instead of having it put: Owner| name Is there a way it could be [Owner] Name? and this also applies to the joining part of server, could it say that instead of just [Server] Name joined the server! To be [Server] [Owner] Name joined the server!?

-Thanks ahead of time!

Yeah, just look at the code, you could most likely do it yourself really easily, or maybe ask around. I've got too many things to do now adays than worry about garry's mod, lua, or ulx in that matter. Sorry about my somewhat disappointing post.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline midg3tjake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #37 on: September 28, 2013, 02:40:27 PM »
This is a common error i get on the server using the manage_chat_tags

 [ERROR] addons/manage_chat_tags/lua/autorun/client/cl_tag.lua:20: attempt to call method 'IsUserGroup' (a nil value)
  1. fn - addons/manage_chat_tags/lua/autorun/client/cl_tag.lua:20

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8098
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Player Chat Tags 2.5
« Reply #38 on: September 28, 2013, 03:00:02 PM »
That's somewhat disturbing, as IsUserGroup is a default Gmod command.
Any other errors during server startup or join?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline midg3tjake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #39 on: September 28, 2013, 03:05:57 PM »
when people join they sometimes get the error and every now and then during the middle of the ttt round

Offline midg3tjake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #40 on: September 28, 2013, 03:08:40 PM »
The code hasnt been editied either so its nothing i have done to it

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: Player Chat Tags 2.5
« Reply #41 on: September 28, 2013, 03:12:27 PM »
The code hasnt been editied either so its nothing i have done to it
Post your code? I just checked with the original code that chaos put up, but line 20 doesn't have "IsUserGroup". Did you add more tags/colors to it?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline midg3tjake

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Player Chat Tags 2.5
« Reply #42 on: September 28, 2013, 03:18:13 PM »
Code: Lua
  1. // Cleint Side apple :p
  2.  
  3. local Tags =
  4. {
  5. --Group    --Tag     --Color
  6. {"admin", "Admin", Color(220, 0, 0, 255) },
  7. {"superadmin", "Owner", Color(0, 0, 250, 255) },
  8. {"trusted", "Trusted", Color(255, 255, 0, 255) },
  9. {"operator", "Mod", Color(255, 128, 0, 255) },
  10. {"chicken", "Chicken", Color(155, 128, 0, 255) },
  11. {"fukye", "Bass God", Color(255, 128, 0, 255) },
  12. {"ultimateswaggodoverlordyolo", "Ultimate Swag God Overlord Yolo", Color(0, 0, 0, 255) },
  13. {"thechef", "The Chef", Color(150, 0, 150, 255) },
  14. {"thecaptain", "The Captain", Color(150, 0, 150, 255) },
  15. {"littlebitch", "Little <censor>", Color(255, 0, 150, 255) }
  16. }
  17.  
  18. hook.Add("OnPlayerChat", "Tags", function(ply, Text, Team, PlayerIsDead)
  19.         for k,v in pairs(Tags) do
  20.                 if ply:IsUserGroup(v[1]) then
  21.                         if Team then
  22.                                         if ply:Alive() then
  23.                                                 chat.AddText(Color(0, 204, 0, 255), "{TEAM} ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  24.                                         else
  25.                                                 chat.AddText(Color(255, 0, 0, 255), "*DEAD*", Color(0, 204, 0, 255), "{TEAM} ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  26.                                         end
  27.                                         return true
  28.                         end
  29.                         if ply:IsPlayer() then
  30.                                 if ply:Alive() then
  31.                                         chat.AddText(Color(255, 0, 0, 255), "", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  32.                                         return true
  33.                                 elseif !ply:Alive() then
  34.                                         chat.AddText(Color(255, 0, 0, 255), "*DEAD* ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
  35.                                         return true
  36.                                 end
  37.                         end
  38.                 end
  39.         end
  40. end)
Yeah forgot about adding the ranks in  ::)

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 857
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Player Chat Tags 2.5
« Reply #43 on: September 28, 2013, 03:30:44 PM »
Just checking my email today, and found that I have 6 new emails from ULX forums (uncommon), and are all from the same thread (really uncommon).

Anyways, I'm not sure why you're getting an error, which is strange. I've checked for any Garry's mod updates (which never happen anyways), and nothing happened. So, I'm not sure what the issue is. Looks fine for me. Though, it might be a usererror on ulx's side.

Are you sure you have all the groups correctly named?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8098
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Player Chat Tags 2.5
« Reply #44 on: September 28, 2013, 06:58:54 PM »
His error indicates the function IsUserGroup is nil/doesn't exist, not that the variable being passed to it is.
Looks like another mod is overriding that function.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming