Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------
- -------------HatsChat 2-------------
- ------------------------------------
- --Copyright (c) 2013 my_hat_stinks--
- ------------------------------------
- HatsChat.ChatTags = {}
- local CT = HatsChat.ChatTags
- CT.Enabled = true
- CT.Tags = {
- --["superadmin"] = {Color(176,23,31), "[MA]"},
- ["superadmin"] = { {r=180,g=50,b=100,a=255, Glow=true, GlowTarget=Color(255,255,0)}, "[Owner]"},
- ["admin"] = {Color(16,78,139), "[Admin]"},
- ["vip"] = {Color(205,205,0), "[VIP]"},
- ["donoradmin"] = {Color(205,205,0), "[Donor]"},
- ["donorsuperadmin"] = {Color(205,205,0), "[Donor]"},
- ["vip+"] = {Color(180,200,100), "[VIP+]"},
- }
- CT.SteamIDTag = {
- ["STEAM_0:1:32779827" = {Color(180,200,100), "[Badass]"},
- }
- function CT.GetTag( ply )
- if not CT.Enabled then return end
- if not IsValid(ply) then return end
- if wyozite then --Wyozi Tag Editor support
- local str = ply:GetNWString("wte_sbtstr")
- local col = ply:GetNWVector("wte_sbtclr", Vector(-1,-1,-1))
- if (not col) or col[1]<0 or col[2]<0 or col[3]<0 then
- col = ply:GetNWVector("wte_sbclr", Vector(-1,-1,-1))
- if col[1]<0 or col[2]<0 or col[3]<0 then col = nil end
- end
- if col and str and #str>0 then
- local glow = ply:GetNWVector("wte_sbtclr2")
- return {
- {r=col[1], g=col[2], b=col[3], a=255, Glow = glow~=Vector(0,0,0), GlowTarget = glow},
- "["..str.."]"
- }
- end
- end
- local rank = HatsChat.GetPlayerRank(ply)
- return CT.SteamIDTag[ply:SteamID()] or CT.Tags[ string.lower(rank) ]
- end
Advertisement
Add Comment
Please, Sign In to add comment