This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 13th, 2013  |  syntax: None  |  size: 0.66 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. local DButton2 = vgui.Create('DButton')
  2. local DButton2:SetSize ( 70, 25 )
  3. local DButton2:SetPos ( 48, 77 )
  4. local DButton2:SetText ( 'On' )
  5. local DButton2.DoClick = function() RunConsoleCommand( "Buy_Health", 1 ) end
  6.  
  7. local DButton1 = vgui.Create('DButton')
  8. local DButton1:SetSize(70, 25)
  9. local DButton1:SetPos(47, 41)
  10. local DButton1:SetText('Off')
  11. local DButton2.DoClick = function() RunConsoleCommand( "Buy_Health", 0 ) end
  12.  
  13. local Frame1 = vgui.Create('DFrame')
  14. local Frame1:SetSize(117, 96)
  15. local Frame1:SetPos(28, 16)
  16. local Frame1:SetTitle('Auto /Buyhealth')
  17. local Frame1:SetSizable(true)
  18. local Frame1:SetDeleteOnClose(false)
  19. local Frame1:MakePopup()
  20. end
clone this paste RAW Paste Data