Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. --- RP-Point Viewer by Greek & Zona ---
  2.  
  3. PLUGIN_SHARED = PLUGIN
  4. -- Include the shared file.
  5. include("sh_init.lua")
  6.  
  7. local rpp_viewer = false
  8.  
  9. function rpp_viewer()
  10. rpp_viewer = true
  11. local ply = LocalPlayer()
  12.  
  13. --Let's make the DFrame.
  14.  
  15. local frame = vgui.Create("DFrame")
  16. frame:SetSize(700, 270)
  17. frame:Center()
  18. frame:SetTitle("RPP Viewer - 1.0")
  19. frame:MakePopup()
  20. frame:SetDraggable( false )
  21. frame:ShowCloseButton( false )
  22. frame.Paint = function(self,w,h) draw.RoundedBox(0, 0, 0, w, h, Color(34, 34, 34, 260)) end
  23.  
  24. -------------------------------------------------------------------------------------------
  25.  
  26. --Let's make the X Button.
  27.  
  28. local CloseButton9 = vgui.Create( "DColorButton", frame )
  29. CloseButton9:SetPos( 665, 5 )
  30. CloseButton9:SetSize( 30, 20 )
  31. CloseButton9:SetText( " X" )
  32. CloseButton9.Paint = function(self,w,h) draw.RoundedBox(0, 0, 0, w, h, Color(219, 0, 0, 260)) end
  33. CloseButton9.DoClick = function()
  34. frame:Close()
  35. end
  36.  
  37. -------------------------------------------------------------------------------------------------
  38.  
  39. --Let's make the List.
  40.  
  41. local RPPList = vgui.Create( "DListView", frame )
  42. RPPList:Dock(FILL)
  43. RPPList:SetMultiSelect(false)
  44. RPPList:AddColumn("Username")
  45. RPPList:AddColumn("Reasson")
  46. RPPList:AddColumn("Administrator" )
  47. RPPList:AddColumn("Date")
  48.  
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement