Author Topic: Anyway to change rank chat tag color? Superadmin is red, so...  (Read 4506 times)

0 Members and 1 Guest are viewing this topic.

Offline Paladynne

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Anyway to change rank chat tag color? Superadmin is red, so...
« on: October 14, 2015, 09:25:49 PM »
I've been trying to Google this for a long time now, but I can't get any addons to work.

I got the scoreboard tags to work, so my ranks are colored and have an icon, but only in the scoreboard.

Now I just need the chat tags to work: [Superadmin] Paladynne: Test.

There should be a way, right? Superadmin is red by default, so, how is that? I've tried one code in the groups.txt file, but it didn't work:

Code: [Select]
{
"name" S. Admin
"color_red" 189
"color_blue" 160
"color_green" 199
}

Edit: or any working addon would be appreciated. I've tried Apple chat tags, no results.

Offline WispySkies

  • Full Member
  • ***
  • Posts: 144
  • Karma: 0
  • I make random commands and Lua errors.
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #1 on: October 15, 2015, 05:43:44 AM »
I found these other 2 scripts that you put in C:/garrysmod/garrysmod/lua/autorun/
It uses your teams designated in ULX "Groups" tab which when a team name is made and the color for the team is set you get the team tag beside your name and the color of the team on your name and the tag. Although say you have 3 people in admin and 2 in superadmin and you want them all to have custom names you have to make new groups with the team assigned to them. Its tedious, but it works.

Offline monkeymacman

  • Newbie
  • *
  • Posts: 44
  • Karma: 13
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #2 on: October 17, 2015, 08:43:52 AM »
I have a chattag system that I found somewhere but I don't entirely remember where... I think it was on some forums or something and it's just a lua code that you put in lua/autorun or you can put in addons/[file name]/lua/autorun . I'll post the code I guess, it works good, but like I said, I don't remember where I found it so I can't give credit to the creator.

Edit: SEE BOTTOM

Obviously you would edit this to fit your groups and the code should be easy enough to follow. I have it in a file addons/chattags/lua/autorun/chattags.lua , but you can put it in a different addon folder name or directly into lua/autorun or wherever. Just make sure to keep the lua file as chattags.lua unless you want to change the line near the top AddCSLuaFile( "chattags.lua" ) to the right name of he file
There are many ways to set it up which should be pretty easy if you read through the code, by default it's something lik [Rank]name:message. With a little bit of changing you can easily change it to "Rank | Name:Message" which is what I personally prefer, but obviously it's up to you. I'm not sure what gamemode you're using this in but for most gamemodes it should work fine, if it's ttt you might want to either remove the (TEAM) prefix so that innocents can't prove themself inno by typing in team chat, or just use another script that blocks innocents from being able to use teamchat.

Edit: I found the post that I got it from (I take no credit in making the code). It is Here
but note: in the comments it appears that the actual original post might be Here.
« Last Edit: October 17, 2015, 07:39:49 PM by monkeymacman »

Offline Aharon Tager

  • Newbie
  • *
  • Posts: 37
  • Karma: 0
    • Barely Legal Gaming
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #3 on: October 17, 2015, 05:24:43 PM »
TTT blocks the use of team chat with the default chatbox, or at least did until GMod update broke that.
Also, are you moneky from BT TTT?

Offline monkeymacman

  • Newbie
  • *
  • Posts: 44
  • Karma: 13
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #4 on: October 17, 2015, 07:02:06 PM »
Yeah, Aharon, that's me. I like messing around with ulx stuff in single player.

Offline Professor_Smiley

  • Newbie
  • *
  • Posts: 45
  • Karma: -24
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #5 on: October 21, 2015, 11:28:59 AM »
You change color_red to 0, color_green to 71 and color_blue to 255 for a nice bluish color.
Learn RGB

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: Anyway to change rank chat tag color? Superadmin is red, so...
« Reply #6 on: October 22, 2015, 02:57:49 AM »
This comment does not benefit the OP's question at all, just saying it because

I love seeing these type of questions! I could swear that this is at least maybe the 200th to 300th chat colour related thread I've seen on here. Though I need to say this too or I might die. The group/rank 'Superadmin' is not default as red, that's just the colour ulx gives it because that's what uteam does. All default (meaning like garry's mod default) colours (which technically means that either ulx is not installed, or you deleted the teams off uteam) are like a off yellow (which btw, is a disgusting colour and if I ever see it on a server, I know that server is trash right there and then, it's basically this colour -> http://www.w3schools.com/tags/ref_colorpicker.asp?colorhex=FFFF33 ).
« Last Edit: October 22, 2015, 03:01:03 AM by Bite That Apple »
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.