Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("OnPlayerChat", "AddDeadAndTeamTags", function(ply, strText, bTeamOnly, bPlayerIsDead)
- local tab = {}
- if ( !ply:Alive() ) then
- table.insert( tab, Color( 255, 30, 40 ) )
- table.insert( tab, "*DEAD* " )
- end
- if ( Chatbox.TeamChat ) then
- table.insert( tab, Color( 255, 255, 255 ) )
- table.insert( tab, "[TEAM] " )
- end
- if ( IsValid( ply ) ) then
- table.insert( tab, ply )
- else
- table.insert( tab, "Console" )
- end
- table.insert( tab, Color( 255, 255, 255 ) )
- table.insert( tab, ": " .. strText )
- chat.AddText( unpack(tab) )
- return true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement