Garry's Mod
Zombie Survival
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 ความเห็น
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].
แก้ไขล่าสุดโดย цвяточеГ; 11 ต.ค. 2016 @ 6: 43am
โพสต์ดั้งเดิมโดย <? /*цвяточеГ*/ ?>:
-snip-

Thank you so much for this, I was searching for hours before I finally found this post
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
ต่อหน้า: 1530 50