Advertisement
Guest User

FORZIM

a guest
Dec 6th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. local ab = vgui.Create('DButton',t)
  2. ab:SetSize(100,20)
  3. ab:SetPos(420,5)
  4. ab:SetText('')
  5. ab.Paint = function(self)
  6. if IsValid(v) then
  7. draw.RoundedBox(0, 0, 0, self:GetWide(), self:GetTall() ,Color(50,50,50))
  8. draw.DrawText('SteamID',"sc_data",50,1,Color(255,255,255,255),TEXT_ALIGN_CENTER)
  9. draw.RoundedBox(0, 0, 0, self:GetWide()/20, self:GetTall() ,Color(250,250,250))
  10. else self:Remove() end
  11. end
  12.  
  13. ab.DoClick = function()
  14. if IsValid(v) then
  15. SetClipboardText(v:SteamID())
  16. chat.AddText(Color( 90, 90, 90 ), "[", Color( 255, 0, 0 ), "Scoreboard", Color( 90, 90, 90 ), "] ", Color( 255, 255, 255 ),score.lang.messages.steamid_copied)
  17. else
  18. chat.AddText(Color( 90, 90, 90 ), "[", Color( 255, 0, 0 ), "Scoreboard", Color( 90, 90, 90 ), "] ", Color( 255, 255, 255 ),score.lang.messages.disconnected)
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement