• (Fadmin) DarkRP Chat tags,
    4 replies, posted
Hi evreyone, I have been searching evreywhere for how to get chat tags for admins,moderators but i cant find any good script/addon, can somone please help me find one and tell me how to install it ? _ trainz
Use this hook, [lua]"OnPlayerChat"[/lua] That'll help you with starting to learn how to do it instead of coming on here just to ask the question for a free script.
[URL=http://www.uppercutservers.com/rejax/coderhire/everyone/chattags.zip]I wrote and released some free ones a while back[/URL]
I also found this script but i keep getting this error of it and i cant seem to fix it. anyone can help ? ERROR] lua/autorun/tags.lua:53: 'end' expected ( Too close 'for' at line 39 Near 'else' 1.unkown 0 lua/autorun/tags.lua:0 [code] if SERVER then AddCSLuaFile( "tags.lua" ) end local cWhite = Color( 255, 255, 255 ) local cBlack = Color( 0, 0, 0 ) local cRed = Color( 255, 0, 0 ) local cGreen = Color( 0, 255, 0 ) local cBlue = Color( 0, 0, 255 ) local cLightBlue = Color( 0, 255, 255 ) local CTags = {} -- CTags[Number] = { "Tag of group", "group-name", Color( of, the, tag ) } CTags[1] = { "[Server-owner]", "[Server-Owner]", cRed } CTags[2] = { "Admin", "admin", cGreen } CTags[3] = { "[V.I.P]", "[V.I.P]", cBlue } CTags[4] = { "Guest", "user", cGreen } CTags[5] = { "[Trusted]", "dev", cLightBlue } CTags[6] = { "[Player]", "[Player]", cWhite } 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 end 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, a:GetName() ) 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", "TTTChatTags", ChatTags ) [/code]
if a:IsUserGroup( v[2] ) then you're missing an end after table.insert( C, a:GetName() )
Sorry, you need to Log In to post a reply to this thread.