Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // CLIENT FILE
- PANELADMIN = { "superadmin", "admin" }
- if table.HasValue( PANELADMIN, LocalPlayer():GetUserGroup()) then
- local ADMINPanel = vgui.Create( "DPanel", MOTDPanel )
- ADMINPanel:SetPos( 100 , 300)
- ADMINPanel:SetSize( 200, 200 )
- ADMINPanel.Paint = function( self, w, h)
- blurPanel( self, 5 )
- draw.RoundedBox( 5, 0, 0, w, h, Color( 0, 0, 0, 250 ) )
- draw.DrawText("Admin Panel : ", "NLFspawn_panel2", 60, 25, Color( 255, 255, 255, 250 ), TEXT_ALIGN_CENTER)
- draw.DrawText("ON / OFF Boutton 2", "NLFspawn_panel2", 100, 75, Color( 255, 255, 255, 250 ), TEXT_ALIGN_CENTER)
- end
- local myCheckBox2 = vgui.Create("DCheckBox", ADMINPanel)
- myCheckBox2:SetPos(20,75)
- myCheckBox2:SetChecked(false)
- myCheckBox2:SetConVar( "nlfspawn_change" )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement