ich habe ein Problem ich habe was probiert aber dies funktioniert nicht also das öffnet sich nicht wenn ich das command eingebe.
Code:function GmRMOTD() local ply = LocalPlayers() local BackGround = vgui.Create( "DFrame" ) BackGround:setSize ( 200,70 ) BackGround:setPos ( ScrW()/2)-BackGround:GetWide(),(ScrH()/2)-BackGround:GetTall() ) BackGround:setTitle( "My Cool Menu" ) BackGround:SetVisible( true ) BackGround:SetDraggable( true ) BackGround:ShowCloseButton( true ) BackGround:MakePopup()( true ) BackGround.Paint = function() draw.RoundedBox(4, 0, 0, BackGround:GetWide(), BackGround:GetTall(), Color(200,0,0,200)) draw.RoundedBox(2, 2, 2, BackGround:GetWide()-4, 21, Color(50,50,50,200)) end local TextEntry = vgui.Create( "DtextEntry", BackGround ) TextEntry.SetPos( 20,30 ) TextEntry.SetTall( 20 ) TextEntry.SetWide( 160 ) TextEntry.SetEnterAllowed( true ) TextEntry.OnEnter = function () ply.ConCommand("say "..TextEntry:GetValue()) BackGround:SetVisible ( false ) end end concommand.Add( "GmRMOTD", GmRMOTD )


Zitieren

