Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- concommand.Add( "xdata_admin", function( ply, cmd, args )
- local admin_panel = vgui.Create( "DFrame" )
- admin_panel:SetSize( 1000, 700 )
- admin_panel:SetTitle( "" )
- admin_panel:Center()
- admin_panel:SetDraggable( true )
- admin_panel:MakePopup()
- local DermaListView = vgui.Create("DListView")
- DermaListView:SetParent(admin_panel) -- Le panel parrent
- DermaListView:SetPos(0, 30)
- DermaListView:SetSize(900, 400)
- DermaListView:SetMultiSelect(false)
- DermaListView:AddColumn("Name")
- DermaListView:AddColumn("Health")
- DermaListView:AddColumn("SteamID")
- DermaListView:AddColumn("Rank")
- DermaListView:AddColumn("Temps de jeux")
- DermaListView.OnRowSelected = function( lst, index, pnl )
- print( "".. pnl:GetColumnText( 1 ) .. " ( " .. pnl:GetColumnText( 5 ) .. " ) " )
- chat.AddText( Color( 100, 100, 255 ), "".. pnl:GetColumnText( 1 ) .. " ( " .. pnl:GetColumnText( 5 ) .. " ) " )
- end
- DermaListView.Paint = function()
- draw.RoundedBox( 0, 0, 0, DermaListView:GetWide(), DermaListView:GetTall(), Color( 0, 0, 0, 150 ) )
- end
- for k,v in pairs(player.GetAll()) do
- DermaListView:AddLine(v:Nick(),v:Health(),v:SteamID(),v:GetUserGroup(), v.GetNWInt("time_played") )
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement