Вот код:
local function Icons()
local mdl = vgui.Create("DModelPanel")
mdl:SetSize(85,85)
mdl:SetPos(33,862)
mdl:SetModel(LocalPlayer():GetModel())
function mdl:LayoutEntity(Entity) return end
mdl:SetLookAt(Vector(0,0,62))
mdl:SetCamPos(Vector(85,-20,65))
mdl:SetFOV(12)
mdl.Entity:SetEyeTarget(Vector(200, 200, 100) )
timer.Create("UpdateIcon",0.5, 0,function()
if mdl:IsValid() and LocalPlayer():GetModel() != mdl.Entity:GetModel() then
mdl:SetModel(LocalPlayer():GetModel())
end
end)
end
Что надо сделать,а то моделька игрока на чат налезает и перекрывает.
local function Icons()
local mdl = vgui.Create("DModelPanel")
mdl:SetSize(85,85)
mdl:SetPos(33,862)
mdl:SetModel(LocalPlayer():GetModel())
function mdl:LayoutEntity(Entity) return end
mdl:SetLookAt(Vector(0,0,62))
mdl:SetCamPos(Vector(85,-20,65))
mdl:SetFOV(12)
mdl.Entity:SetEyeTarget(Vector(200, 200, 100) )
timer.Create("UpdateIcon",0.5, 0,function()
if mdl:IsValid() and LocalPlayer():GetModel() != mdl.Entity:GetModel() then
mdl:SetModel(LocalPlayer():GetModel())
end
end)
end
Что надо сделать,а то моделька игрока на чат налезает и перекрывает.