hoobonceagain

Untitled

Aug 10th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1.  
  2. local userGroups =
  3. {
  4. ["limited"] = true,
  5. ["vip"] = true,
  6. ["vip-trusted"] = true,
  7. ["vip+"] = true,
  8. ["trial-helper"] = true,
  9. ["helper"] = true,
  10. ["trial-moderator"] = true,
  11. ["moderator"] = true,
  12. ["moderator+"] = true,
  13. ["head-moderator"] = true,
  14. ["head-moderator+"] = true,
  15. ["admin"] = true,
  16. ["admin+"] = true,
  17. ["head-admin"] = true,
  18. ["head-admin+"] = true,
  19. ["staff-manager"] = true,
  20. ["staff-manager+"] = true,
  21. ["superadmin"] = true,
  22. ["developer"] = true
  23. }
  24.  
  25. hook.Add("OnPlayerChat", "chatthing", function(ply, text, teamOnly, alive, prefixText, color1, color2)
  26. if not userGroups[string.lower(ply:GetNWString("usergroup"))] then
  27. chat.AddText(Color(255, 0, 0, 255), alive, "[" .. ply:GetNWString("usergroup") .. "] ", color1, ply:Nick(), color2, ": "..text)
  28. return true end
  29. if ply:GetNWString("usergroup") == "developer"then
  30. chat.AddText(Color(139,0,139,255), "[Developer] ", color1, ply:Nick(), color2, ": "..text)
  31. return true end
  32. if ply:GetNWString("usergroup") == "staff-manager+"then
  33. chat.AddText(Color(65,105,225,255), "[Staff-Manager+] ", color1, ply:Nick(), color2, ": "..text)
  34. return true end
  35. if ply:GetNWString("usergroup") == "staff-manager"then
  36. chat.AddText(Color(65,105,225,255), "[Staff-Manager] ", color1, ply:Nick(), color2, ": "..text)
  37. return true end
  38. if ply:GetNWString("usergroup") == "head-admin+"then
  39. chat.AddText(Color(255,69,0,255), "[Head-Admin+] ", color1, ply:Nick(), color2, ": "..text)
  40. return true end
  41. if ply:GetNWString("usergroup") == "head-admin"then
  42. chat.AddText(Color(255,69,0,255), "[Head-Admin] ", color1, ply:Nick(), color2, ": "..text)
  43. return true end
  44. if ply:GetNWString("usergroup") == "admin+"then
  45. chat.AddText(Color(178,34,34,255), "[Admin+] ", color1, ply:Nick(), color2, ": "..text)
  46. return true end
  47. if ply:GetNWString("usergroup") == "admin"then
  48. chat.AddText(Color(178,34,34,255), "[Admin] ", color1, ply:Nick(), color2, ": "..text)
  49. return true end
  50. if ply:GetNWString("usergroup") == "head-moderator+"then
  51. chat.AddText(Color(0,0,205,255), "[Head-Moderator+] ", color1, ply:Nick(), color2, ": "..text)
  52. return true end
  53. if ply:GetNWString("usergroup") == "head-moderator"then
  54. chat.AddText(Color(0,0,205,255), "[Head-Moderator] ", color1, ply:Nick(), color2, ": "..text)
  55. return true end
  56. if ply:GetNWString("usergroup") == "moderator+"then
  57. chat.AddText(Color(30,144,255,255), "[Moderator+] ", color1, ply:Nick(), color2, ": "..text)
  58. return true end
  59. if ply:GetNWString("usergroup") == "moderator"then
  60. chat.AddText(Color(30,144,255,255), "[Moderator] ", color1, ply:Nick(), color2, ": "..text)
  61. return true end
  62. if ply:GetNWString("usergroup") == "trial-moderator"then
  63. chat.AddText(Color(0,191,255,255), "[Trial-Moderator] ", color1, ply:Nick(), color2, ": "..text)
  64. return true end
  65. if ply:GetNWString("usergroup") == "helper"then
  66. chat.AddText(Color(255,20,147,255), "[Helper] ", color1, ply:Nick(), color2, ": "..text)
  67. return true end
  68. if ply:GetNWString("usergroup") == "trial-helper"then
  69. chat.AddText(Color(255,105,180,255), "[Trial-Helper] ", color1, ply:Nick(), color2, ": "..text)
  70. return true end
  71. if ply:GetNWString("usergroup") == "vip+"then
  72. chat.AddText(Color(255,225,0,255), "[VIP+] ", color1, ply:Nick(), color2, ": "..text)
  73. return true end
  74. if ply:GetNWString("usergroup") == "vip-trusted"then
  75. chat.AddText(Color(50,205,50,255), "[VIP-Trusted] ", color1, ply:Nick(), color2, ": "..text)
  76. return true end
  77. if ply:GetNWString("usergroup") == "limited"then
  78. chat.AddText(Color(105,105,105,255), "[Limited] ", color1, ply:Nick(), color2, ": "..text)
  79. return true end
  80. if ply:GetNWString("usergroup") == "vip"then
  81. chat.AddText(Color(0,255,127,255), "[VIP] ", color1, ply:Nick(), color2, ": "..text)
  82. return true end
  83. end)
Advertisement
Add Comment
Please, Sign In to add comment