Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ab = vgui.Create('DButton',t)
- ab:SetSize(100,20)
- ab:SetPos(420,5)
- ab:SetText('')
- ab.Paint = function(self)
- if IsValid(v) then
- draw.RoundedBox(0, 0, 0, self:GetWide(), self:GetTall() ,Color(50,50,50))
- draw.DrawText('SteamID',"sc_data",50,1,Color(255,255,255,255),TEXT_ALIGN_CENTER)
- draw.RoundedBox(0, 0, 0, self:GetWide()/20, self:GetTall() ,Color(250,250,250))
- else self:Remove() end
- end
- ab.DoClick = function()
- if IsValid(v) then
- SetClipboardText(v:SteamID())
- chat.AddText(Color( 90, 90, 90 ), "[", Color( 255, 0, 0 ), "Scoreboard", Color( 90, 90, 90 ), "] ", Color( 255, 255, 255 ),score.lang.messages.steamid_copied)
- else
- chat.AddText(Color( 90, 90, 90 ), "[", Color( 255, 0, 0 ), "Scoreboard", Color( 90, 90, 90 ), "] ", Color( 255, 255, 255 ),score.lang.messages.disconnected)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement