function UCast( ply )
local ply = LocalPlayer()
local BackGround = vgui.Create( "DFrame" )
BackGround:SetSize( 400,100 )
BackGround:SetPos( (ScrW()/2)-BackGround:GetWide(),(ScrH()/2)-BackGround:GetTall() )
BackGround:SetTitle( "Admin Menu - Type Your Message To The Server Here" )
BackGround:SetVisible( true )
BackGround:SetDraggable( true )
BackGround:ShowCloseButton( true )
BackGround:MakePopup()
BackGround.Paint = function()
draw.RoundedBox(4, 0, 0, BackGround:GetWide(), BackGround:GetTall(), Color(100, 100, 100, 255))
draw.RoundedBox(2, 2, 2, BackGround:GetWide()-4, 21, Color(50, 50, 50, 255))
end
local TextEntry = vgui.Create( "DTextEntry", BackGround )
TextEntry:SetPos( 20,40 )
TextEntry:SetTall( 20 )
TextEntry:SetWide( 360 )
TextEntry:SetEnterAllowed( true )
TextEntry.OnEnter = netMessage()
net.Receive( 'adminMsg', function()
chat.AddText(Color(0, 0, 0), "[", Color(255, 0, 0), "ADMIN MESSAGE", Color(0, 0, 0), "]", Color(0, 255, 0), TextEntry:GetText() )
end )
BackGround:SetVisible()
end
end
concommand.Add("broadcast_chat",UCast)