• ULX Chat Tags/Name Tags?
    1 replies, posted
I am in need of a Chat Tag/Name Tag script/addon or whatever that will allow me to very easily add Chat Tags to my admins or donators. Such as.. [Donator] -Ren3gade- OR.. [Admin] -Ren3gade- and possibly color the Donator or Admin a Green or Lime Green. Thanks for the help! [highlight](User was banned for this post ("wrong section" - postal))[/highlight]
[QUOTE=Ren3gade;42845003]I am in need of a Chat Tag/Name Tag script/addon or whatever that will allow me to very easily add Chat Tags to my admins or donators. Such as.. [Donator] -Ren3gade- OR.. [Admin] -Ren3gade- and possibly color the Donator or Admin a Green or Lime Green. Thanks for the help![/QUOTE] I don't think this is the proper section for requests, as this subforum is dedicated to [B]releases.[/B] Either way... I scoured the net myself a while back for exactly this and found some code that I modified to suit my own needs. This is for ULX. Not sure if it works with other admin tools. Here is the original code. [I]Enjoy[/I] [code] CreateClientConVar("chat_tags_color_r", 255, true, false) CreateClientConVar("chat_tags_color_g", 255, true, false) CreateClientConVar("chat_tags_color_b", 255, true, false) CreateClientConVar("chat_tags_color_a", 255, true, false) local Tags = { --Group --Tag --Color {"user", "[User] ", Color(212, 67, 255, 255) }, {"admin", "[ADMIN] ", Color(0, 0, 255, 255) }, {"superadmin", "[SUPERADMIN] ", Color(255, 0, 0, 255) }, {"owner", "[OWNER] ", Color(0, 255, 0, 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(0, 255, 0) --Change this to change Console name color chat.AddText(ConsoleColor, "Console", color_white, ": ", strText) return true end end ) [/code] [B]Note: [/B]Credits go to Dimstar on the Ulyssesmod forums, as he was the one who posted it in the first place. Not sure if he made it though. [B]Place it under autorun/client[/B]
Sorry, you need to Log In to post a reply to this thread.