Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local userGroups =
- {
- ["limited"] = true,
- ["vip"] = true,
- ["vip-trusted"] = true,
- ["vip+"] = true,
- ["trial-helper"] = true,
- ["helper"] = true,
- ["trial-moderator"] = true,
- ["moderator"] = true,
- ["moderator+"] = true,
- ["head-moderator"] = true,
- ["head-moderator+"] = true,
- ["admin"] = true,
- ["admin+"] = true,
- ["head-admin"] = true,
- ["head-admin+"] = true,
- ["staff-manager"] = true,
- ["staff-manager+"] = true,
- ["superadmin"] = true,
- ["developer"] = true
- }
- hook.Add("OnPlayerChat", "chatthing", function(ply, text, teamOnly, alive, prefixText, color1, color2)
- if not userGroups[string.lower(ply:GetNWString("usergroup"))] then
- chat.AddText(Color(255, 0, 0, 255), alive, "[" .. ply:GetNWString("usergroup") .. "] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "developer"then
- chat.AddText(Color(139,0,139,255), "[Developer] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "staff-manager+"then
- chat.AddText(Color(65,105,225,255), "[Staff-Manager+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "staff-manager"then
- chat.AddText(Color(65,105,225,255), "[Staff-Manager] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "head-admin+"then
- chat.AddText(Color(255,69,0,255), "[Head-Admin+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "head-admin"then
- chat.AddText(Color(255,69,0,255), "[Head-Admin] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "admin+"then
- chat.AddText(Color(178,34,34,255), "[Admin+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "admin"then
- chat.AddText(Color(178,34,34,255), "[Admin] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "head-moderator+"then
- chat.AddText(Color(0,0,205,255), "[Head-Moderator+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "head-moderator"then
- chat.AddText(Color(0,0,205,255), "[Head-Moderator] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "moderator+"then
- chat.AddText(Color(30,144,255,255), "[Moderator+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "moderator"then
- chat.AddText(Color(30,144,255,255), "[Moderator] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "trial-moderator"then
- chat.AddText(Color(0,191,255,255), "[Trial-Moderator] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "helper"then
- chat.AddText(Color(255,20,147,255), "[Helper] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "trial-helper"then
- chat.AddText(Color(255,105,180,255), "[Trial-Helper] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "vip+"then
- chat.AddText(Color(255,225,0,255), "[VIP+] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "vip-trusted"then
- chat.AddText(Color(50,205,50,255), "[VIP-Trusted] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "limited"then
- chat.AddText(Color(105,105,105,255), "[Limited] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- if ply:GetNWString("usergroup") == "vip"then
- chat.AddText(Color(0,255,127,255), "[VIP] ", color1, ply:Nick(), color2, ": "..text)
- return true end
- end)
Advertisement
Add Comment
Please, Sign In to add comment