XoXFaby

Untitled

Sep 8th, 2014
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. ------------------------------------
  2. -------------HatsChat 2-------------
  3. ------------------------------------
  4. --Copyright (c) 2013 my_hat_stinks--
  5. ------------------------------------
  6.  
  7. HatsChat.ChatTags = {}
  8. local CT = HatsChat.ChatTags
  9.  
  10. CT.Enabled = true
  11. CT.Tags = {
  12.  
  13. --["superadmin"] = {Color(176,23,31), "[MA]"},
  14. ["superadmin"] = { {r=180,g=50,b=100,a=255, Glow=true, GlowTarget=Color(255,255,0)}, "[Owner]"},
  15.  
  16. ["admin"] = {Color(16,78,139), "[Admin]"},
  17.  
  18. ["vip"] = {Color(205,205,0), "[VIP]"},
  19. ["donoradmin"] = {Color(205,205,0), "[Donor]"},
  20. ["donorsuperadmin"] = {Color(205,205,0), "[Donor]"},
  21. ["vip+"] = {Color(180,200,100), "[VIP+]"},
  22.  
  23. }
  24. CT.SteamIDTag = {
  25. ["STEAM_0:1:32779827" = {Color(180,200,100), "[Badass]"},
  26. }
  27.  
  28. function CT.GetTag( ply )
  29. if not CT.Enabled then return end
  30. if not IsValid(ply) then return end
  31.  
  32. if wyozite then --Wyozi Tag Editor support
  33. local str = ply:GetNWString("wte_sbtstr")
  34. local col = ply:GetNWVector("wte_sbtclr", Vector(-1,-1,-1))
  35. if (not col) or col[1]<0 or col[2]<0 or col[3]<0 then
  36. col = ply:GetNWVector("wte_sbclr", Vector(-1,-1,-1))
  37. if col[1]<0 or col[2]<0 or col[3]<0 then col = nil end
  38. end
  39. if col and str and #str>0 then
  40. local glow = ply:GetNWVector("wte_sbtclr2")
  41. return {
  42. {r=col[1], g=col[2], b=col[3], a=255, Glow = glow~=Vector(0,0,0), GlowTarget = glow},
  43. "["..str.."]"
  44. }
  45. end
  46. end
  47.  
  48. local rank = HatsChat.GetPlayerRank(ply)
  49. return CT.SteamIDTag[ply:SteamID()] or CT.Tags[ string.lower(rank) ]
  50. end
Advertisement
Add Comment
Please, Sign In to add comment