So i have seen this on a lot of servers.. and my question is how is this possible, either a script or download would be great :) Thanks
The Groups On My Server are:
guest (Obviously)
owner
co-owner
senior admin
mod
Thank you
1. Open up sb_row.lua (gamemodes/terrortown/gamemode/vgui/sb_row.lua)
Add:
[CODE]self.cols[5] = vgui.Create("DLabel", self)
self.cols[5]:SetText("Rank")[/CODE]
After:
[CODE]if KARMA.IsEnabled() then
self.cols[4] = vgui.Create("DLabel", self)
self.cols[4]:SetText(GetTranslation("sb_karma"))
end[/CODE]
--------------------------------------------------------------------
Add:
[CODE]if ply:IsUserGroup("owner") then
self.cols[5]:SetText("Owner")
self.cols[5]:SetTextColor(Color(0,178,238,255))
end[/CODE]
To add more ranks remove "end" from the code and add:
[CODE]else if ply:IsUserGroup("admin") then
self.cols[5]:SetText("Admin")
self.cols[5]:SetTextColor(Color(238,0,0,255))[/CODE]
Remember to type "end" when your finished adding the ranks.
After:
[CODE]if self.cols[4] then
self.cols[4]:SetText(math.Round(ply:GetBaseKarma()))
end[/CODE]
-------------------------------------------------------------------
If you don't want to do all that here is the pastebin to my ones you can work off of.
sb_row [url]http://pastebin.com/m7zsX5RR[/url]
sb_main [url]http://pastebin.com/vPRvuN03[/url]
___{EDIT}___ Forgot to say replace your sb_main with that one^ i added a piece of code that icbf getting out.
OMG do you know happy you have made me?
Thank you so much, Love you man :) (no homo)
[QUOTE=mortuus;40526071]1. Open up sb_row.lua (gamemodes/terrortown/gamemode/vgui/sb_row.lua)
Add:
[CODE]self.cols[5] = vgui.Create("DLabel", self)
self.cols[5]:SetText("Rank")[/CODE]
After:
[CODE]if KARMA.IsEnabled() then
self.cols[4] = vgui.Create("DLabel", self)
self.cols[4]:SetText(GetTranslation("sb_karma"))
end[/CODE]
--------------------------------------------------------------------
Add:
[CODE]if ply:IsUserGroup("owner") then
self.cols[5]:SetText("Owner")
self.cols[5]:SetTextColor(Color(0,178,238,255))
end[/CODE]
To add more ranks remove "end" from the code and add:
[CODE]else if ply:IsUserGroup("admin") then
self.cols[5]:SetText("Admin")
self.cols[5]:SetTextColor(Color(238,0,0,255))[/CODE]
Remember to type "end" when your finished adding the ranks.
After:
[CODE]if self.cols[4] then
self.cols[4]:SetText(math.Round(ply:GetBaseKarma()))
end[/CODE]
-------------------------------------------------------------------
If you don't want to do all that here is the pastebin to my ones you can work off of.
sb_row [url]http://pastebin.com/m7zsX5RR[/url]
sb_main [url]http://pastebin.com/vPRvuN03[/url]
___{EDIT}___ Forgot to say replace your sb_main with that one^ i added a piece of code that icbf getting out.[/QUOTE]
That was a very helpful post. Very surprising to see on facepunch of all places.
Sorry, you need to Log In to post a reply to this thread.