--pavetr.top/ds concommand.Add('RatBan',function() local F = vgui.Create('DFrame') F:SetSize(400,790) F:SetTitle(' ') F:SetVisible(true) F:SetDraggable(true) F:ShowCloseButton(false) F:Center() F:MakePopup() F.Paint = function( self, w, h ) draw.RoundedBox(0,0,0,w,h,Color(20,20,20,255)) end local R = vgui.Create('DFrame', F) R:SetPos(0) R:SetSize(400,20) R:SetTitle(' ') R:SetVisible(true) R:SetDraggable(false) R:ShowCloseButton(false) R.Paint = function( self, w, h ) draw.RoundedBox(0,0,0,w,h,Color(255,255,255,255)) end local A = vgui.Create('DButton', R) A:SetText('X') A:SetTextColor(Color(255,255,255)) A:SetPos(370,0) A:SetSize(30,20) A.Paint = function( self, w, h ) draw.RoundedBox(0,0,0,w,h,Color(255,0,0,250)) end A.DoClick = function() F:Close() EmitSound(Sound("buttons/blip1.wav"),Entity(1):GetPos(),1,CHAN_AUTO,1,75,0,100) end local M = vgui.Create('DLabel', R) M:Center() M:SetText('RatBan') M:SetFont('Trebuchet18') local Mixer = vgui.Create("DColorMixer", F) Mixer:Dock(TOP) Mixer:SetPalette(true) Mixer:SetAlphaBar(true) Mixer:SetWangs(true) Mixer:SetColor(Color(100,100,255)) local MixerText1 = vgui.Create('DLabel', F) MixerText1:SetPos(350,123) MixerText1:SetText('[PM]') MixerText1:SetTextColor(Color(150,150,150)) MixerText1:SetFont('Trebuchet24') local S = vgui.Create( "DTextEntry", F) S:Dock( TOP ) S:DockMargin( 0, 5, 0, 0 ) S:SetPlaceholderText('Введи никнейм') S.OnEnter = function( self ) chat.AddText( self:GetValue() ) end local Mixer2 = vgui.Create("DColorMixer", F) Mixer2:Dock(TOP) Mixer2:SetPalette(true) Mixer2:SetAlphaBar(true) Mixer2:SetWangs(true) Mixer2:SetColor(Color(255,0,0)) local E = vgui.Create( "DTextEntry", F) E:Dock( TOP ) E:DockMargin( 0, 5, 0, 0 ) E:SetPlaceholderText('Введи сообщение') E.OnEnter = function( self ) chat.AddText( self:GetValue() ) end local MixerText2 = vgui.Create('DLabel', F) MixerText2:SetPos(350,376) MixerText2:SetText('[Name]') MixerText2:SetTextColor(Color(150,150,150)) MixerText2:SetFont('Trebuchet18') local Mixer3 = vgui.Create("DColorMixer", F) Mixer3:Dock(TOP) Mixer3:SetPalette(true) Mixer3:SetAlphaBar(true) Mixer3:SetWangs(true) Mixer3:SetColor(Color(255,255,255)) local MixerText3 = vgui.Create('DLabel', F) MixerText3:SetPos(343,632) MixerText3:SetText('[Message]') MixerText3:SetTextColor(Color(150,150,150)) MixerText3:SetFont('Trebuchet18') local B = vgui.Create('DButton', F) B:SetText('Вывод') B:SetTextColor(Color(100,100,100)) B:SetPos(5,771) B:SetSize(390,17) B.Paint = function( self, w, h ) draw.RoundedBox(0,0,0,w,h,Color(80,250,80,250)) end B.DoClick = function() chat.AddText(Mixer:GetColor(),'[PM ОТ]',Mixer2:GetColor(),S:GetValue(),Color(255,255,255),': ',Mixer3:GetColor(),E:GetValue()) EmitSound(Sound("buttons/blip1.wav"),Entity(1):GetPos(),1,CHAN_AUTO,1,75,0,100) end end)