Python1320

Turtle

Jan 14th, 2011
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. /* Copyright by turtle you can edit and improve it but don't remove the credits or sell to anyone or remove this headline*/
  2. LocalPlayer():ChatPrint("New Improved toybox downloader")
  3. local TD = vgui.Create( "DFrame" )
  4. TD:SetPos( 50,50 )
  5. TD:SetSize( 500, 700 )
  6. TD:SetTitle( "Toybox" )
  7. TD:SetVisible( true )
  8. TD:SetDraggable( true )
  9. TD:ShowCloseButton( true )
  10. TD:MakePopup()
  11.  
  12. local TDV = vgui.Create("DListView")
  13. TDV:SetParent(TD)
  14. TDV:SetPos(25, 50)
  15. TDV:SetSize(450, 625)
  16. TDV:SetMultiSelect(false)
  17. TDV:AddColumn("Toybox ID")
  18. TDV:AddColumn("Size")
  19. TDV:GetSelectedLine( )
  20.  
  21. local NoSpam = 0
  22. local inum = inum or 1
  23. hook.Add("Think","Update", function()
  24. if (CurTime() >= NoSpam) then
  25. http.Get("http://toybox.garrysmod.com/ingame/?view="..inum.."&tab=code","",function(a,b)
  26. if #a <= 16 then inum = inum + 1 return end
  27. //if #a then
  28. //print(a)
  29. DermaListView:AddLine(inum,#a)
  30. //print(inum,#a)
  31. inum = inum + 1
  32. //end
  33. end)
  34. NoSpam = CurTime() + 6
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment