• Assmod Chat Tags?
    4 replies, posted
Alrighty, well I had a simple little question that I can't seem to fix! When I downloaded this file off of gmod.org in chat it was saying things twice. Let me elaborate. So when I would talk it would do something like this, Derek: Hello world! (Owner) Derek: Hello World! Or x3ndless: hey whatsup? (Guest) x3ndless: hey whatsup? It gets really annoying but I really want this file! Is there anything in here causing this!? Please help me! [Code]if (SERVER) then AddCSLuaFile("autorun/tags.lua") end if (CLIENT) then function Insert( pl, msg ) local tab = {} if pl:HasLevel(0) then table.insert( tab, Color( 255, 0, 0, 255 ) ) table.insert( tab, "(Owner) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) elseif pl:HasLevel(1) then table.insert( tab, Color( 0, 255, 0, 255 ) ) table.insert( tab, "(Admin) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) elseif pl:HasLevel(2) then table.insert( tab, Color( 0, 35, 175, 255 ) ) table.insert( tab, "(Mod) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) elseif pl:HasLevel(4) then table.insert( tab, Color( 0, 74, 175, 255 ) ) table.insert( tab, "(Respected) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) elseif pl:HasLevel(5) then table.insert( tab, Color( 0, 185, 35, 255 ) ) table.insert( tab, "(Guest) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) elseif pl:HasLevel(255) then table.insert( tab, Color( 255, 0, 175, 255 ) ) table.insert( tab, "(Faggot) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) else table.insert( tab, Color( 86, 185, 80, 255 ) ) table.insert( tab, "(Temp) " ) table.insert( tab, Color( 255, 255, 255, 255 ) ) table.insert( tab, pl ) table.insert( tab, ": " ) table.insert( tab, msg ) end chat.AddText( unpack(tab) ) return true end end hook.Add("OnPlayerChat", "InsertTags", Insert)[/Code] Source: [url]http://www.garrysmod.org/downloads/?a=view&id=95236[/url]
bump. noone?
Not sure. [editline]02:57AM[/editline] [url]http://www.facepunch.com/showthread.php?t=984940[/url] - Use the chatbox in this addon to add tags for ranks.
Try changing return true to return ""
Ok im trying get my chat tags to work only with your steamid. Can anyone help me with this for my server.
Sorry, you need to Log In to post a reply to this thread.