Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local buttons = {}
- local function setpos()
- for k,v in pairs(player.GetAll()) do
- if v ~= LocalPlayer() then
- if not IsValid(buttons[v]) then
- local btn = vgui.Create("DButton")
- btn:SetText(v:Nick())
- btn:SetSize(30,30)
- buttons[v] = btn
- else
- local Pos = v:GetShootPos():ToScreen()
- buttons[v]:SetPos(Pos.x,Pos.y)
- end
- end
- end
- end
- hook.Add("Think","setpos",setpos)
Advertisement
Add Comment
Please, Sign In to add comment