Garry's Mod

Garry's Mod

Zombie Survival
Riotline 2016 年 6 月 15 日 上午 2:12
Scoreboard Question
How can I change group icons on the scoreboard like admins to have a star and a regular to have a heart
< >
正在显示第 1 - 2 条,共 2 条留言
цвяточеГ 2016 年 10 月 11 日 上午 6:42 
Go to gamemodes/zombiesurvival/gamemode/cl_scoreboard.lua, 363 line.
Change:
if gamemode.Call("IsSpecialPerson", pl, self.m_SpecialImage) then self.m_SpecialImage:SetVisible(true) else self.m_SpecialImage:SetTooltip() self.m_SpecialImage:SetVisible(false) end
To:
if pl:IsUserGroup('superadmin') then -- For superadmins self.m_SpecialImage:SetTooltip('Superadmin') --Title of Tooltip self.m_SpecialImage:SetImage('icon16/shield.png') --Icon of Tooltip self.m_SpecialImage:SetVisible(true) --Visible true end if pl:IsUserGroup('admin') then self.m_SpecialImage:SetTooltip('Admin') --ect. self.m_SpecialImage:SetImage('icon16/wand.png') self.m_SpecialImage:SetVisible(true) end if pl:IsUserGroup('VIP') then self.m_SpecialImage:SetTooltip('VIP') self.m_SpecialImage:SetImage('icon16/star.png') self.m_SpecialImage:SetVisible(true) end if pl:IsUserGroup('user') then self.m_SpecialImage:SetTooltip('Player') self.m_SpecialImage:SetImage('icon16/user.png') self.m_SpecialImage:SetVisible(true) end
Icons u can get here[www.famfamfam.com].
最后由 цвяточеГ 编辑于; 2016 年 10 月 11 日 上午 6:43
James 2017 年 5 月 14 日 下午 7:05 
-snip-

Thank you so much for this, I was searching for hours before I finally found this post
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50