Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- util.AddNetworkString("FirstNet")
- function Value(value)
- end
- net.Receive("FirstNet", function( lenght, ply )
- namebool = net.ReadBool()
- return namebool
- end)
- end
- if CLIENT then
- surface.CreateFont( "NinjeFontss", {
- font = "Arial",
- extended = false,
- size = 20,
- weight = 1200,
- blursize = 0,
- scanlines = 0,
- antialias = false,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- surface.CreateFont( "NinjeFont", {
- font = "Bold",
- extended = false,
- size = 75,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- hook.Add( "OnPlayerChat", "MeetingCommand", function ( ply, strText, bTeam, bDead)
- if ( ply != LocalPlayer() ) then return end
- strText = string.lower( strText )
- if ( strText == "!meeting" ) then
- local frames = vgui.Create("DFrame")
- frames:SetSize(600, 500)
- frames:Center()
- frames:ShowCloseButton(true)
- frames:MakePopup()
- frames.Paint = function( self, w, h )
- draw.RoundedBox(0, 0, 0, w, h, Color(0,0,0))
- draw.RoundedBox(0, 0, 0, w, h, Color(60,60,60))
- end
- local DComboBox = vgui.Create( "DComboBox", frames )
- DComboBox:SetPos( 220, 30 )
- DComboBox:SetSize(150, 40)
- DComboBox:SetValue( "Meeting Type" )
- DComboBox:AddChoice( "Police" )
- DComboBox:AddChoice( "Noonans" )
- DComboBox:AddChoice( "NHS" )
- DComboBox:AddChoice( "CID" )
- DComboBox:AddChoice( "SCO19" )
- DComboBox:AddChoice( "CTSFO" )
- DComboBox.OnSelect = function( self, index, value )
- TextInMeeting = value .." Meeting"
- end
- local button = vgui.Create("DButton", frames, "ButtonName")
- button:SetSize(180, 80)
- button:SetPos(110, 360)
- button:SetText("Start Meeting")
- button:SetFont("NinjeFontss")
- button.Paint = function(self, w, h)
- draw.RoundedBox(0, 5, 5, w, h, Color(168,0,0))
- draw.RoundedBox(0, -5, -5, w, h, Color(255,0,0))
- end
- button.DoClick = ( function()
- net.Start("FirstNet")
- net.WriteBool(true)
- net.SendToServer()
- end )
- local buttons = vgui.Create("DButton", frames, "ButtonNames")
- buttons:SetSize(180, 80)
- buttons:SetPos(300,360)
- buttons:SetText("Meeting Over")
- buttons:SetFont("NinjeFontss")
- buttons.Paint = function(self, w, h)
- draw.RoundedBox(0, 5, 5, w, h, Color(168,0,0))
- draw.RoundedBox(0, -5, -5, w, h, Color(255,0,0))
- end
- buttons.DoClick = function()
- net.Start("FirstNet")
- net.WriteBool(false)
- net.SendToServer()
- end
- end
- end )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement