• ULX ChatTags
    8 replies, posted
Ok guys i've found a couple of scripts for this just ot the way i need or want. What I want Is ChatTags Of someones ulx name but colored different colors for each rank Also i would like them Fading in and out dont have to be though just preferred thanks in advanced guys.
I don't know how to do fade out- but this is what I have for chat tags: [CODE]if SERVER then AddCSLuaFile( "tags.lua" ) end local cOwner = Color( 255, 204, 0 ) local cSuperAdmin = Color( 204, 51, 51 ) local cAdmin = Color( 51, 153, 255 ) local cVip = Color( 255, 51, 204 ) local cWhite = Color( 255, 255, 255) local CTags = {} -- CTags[Number] = { "Tag of group", "group-name", Color( of, the, tag ) } CTags[1] = { "Owner", "owner", cOwner } CTags[2] = { "Super Admin", "superadmin", cSuperAdmin } CTags[3] = { "VIP", "vip", cVip } CTags[4] = { "Admin", "admin", cAdmin } local function ChatTags( a, b, c, d ) local C = {} if d then table.insert( C, Color( 255, 30, 40 ) ) table.insert( C, "*DEAD* " ) end if c then table.insert( C, Color( 30, 160, 40 ) ) table.insert( C, "(TEAM) " ) end if a:IsValid() then for _,v in pairs( CTags ) do if a:IsUserGroup( v[2] ) then table.insert( C, cWhite ) table.insert( C, "[" ) table.insert( C, v[3] ) table.insert( C, v[1] ) table.insert( C, cWhite ) table.insert( C, "] " ) break end end table.insert( C, team.GetColor( a:Team() ) ) table.insert( C, a:Nick() ) else table.insert( C, "Console" ) end table.insert( C, Color( 255, 255, 255 ) ) table.insert( C, ": "..b ) chat.AddText( unpack( C ) ) return true end hook.Add( "OnPlayerChat", "___ChatTags", ChatTags )[/CODE] Just edit colours and the text and groups as you wish.
Hello All Coding Prodigy Tyler Wearing Here Well First Of All That Code Is Entirely Correct What You Need To Do Is Hook PlayerSay ServerSide Then Detour The __MetaTable Garbage Collection MetaMethod And InJect The Chat InTo The Hook As It Natively Doesnt Support Returning Chat Ok I Hope That Helps Tyler Wearing Out
Ok Hey im not getting any errors but they do not work when i type.[QUOTE=Phred0804;39374333]I don't know how to do fade out- but this is what I have for chat tags: [CODE]if SERVER then AddCSLuaFile( "tags.lua" ) end local cOwner = Color( 255, 204, 0 ) local cSuperAdmin = Color( 204, 51, 51 ) local cAdmin = Color( 51, 153, 255 ) local cVip = Color( 255, 51, 204 ) local cWhite = Color( 255, 255, 255) local CTags = {} -- CTags[Number] = { "Tag of group", "group-name", Color( of, the, tag ) } CTags[1] = { "Owner", "owner", cOwner } CTags[2] = { "Super Admin", "superadmin", cSuperAdmin } CTags[3] = { "VIP", "vip", cVip } CTags[4] = { "Admin", "admin", cAdmin } local function ChatTags( a, b, c, d ) local C = {} if d then table.insert( C, Color( 255, 30, 40 ) ) table.insert( C, "*DEAD* " ) end if c then table.insert( C, Color( 30, 160, 40 ) ) table.insert( C, "(TEAM) " ) end if a:IsValid() then for _,v in pairs( CTags ) do if a:IsUserGroup( v[2] ) then table.insert( C, cWhite ) table.insert( C, "[" ) table.insert( C, v[3] ) table.insert( C, v[1] ) table.insert( C, cWhite ) table.insert( C, "] " ) break end end table.insert( C, team.GetColor( a:Team() ) ) table.insert( C, a:Nick() ) else table.insert( C, "Console" ) end table.insert( C, Color( 255, 255, 255 ) ) table.insert( C, ": "..b ) chat.AddText( unpack( C ) ) return true end hook.Add( "OnPlayerChat", "___ChatTags", ChatTags )[/CODE] Just edit colours and the text and groups as you wish.[/QUOTE]
Follow The Directions I Posted Above And It Will Work
I dont know what to do im a noob could you just do it for me and let me copy [QUOTE=s0ftwearing;39374672]Follow The Directions I Posted Above And It Will Work[/QUOTE] [editline]27th January 2013[/editline] ok can someone help me because s0ftwearing tried but i dont understand what hes saying
Can someone please help me
[URL="http://facepunch.com/showthread.php?t=1231080"]Chat tag release.[/URL]
thanks
Sorry, you need to Log In to post a reply to this thread.