Advertisement
osome

Untitled

Dec 16th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. // CLIENT FILE
  2.  
  3. PANELADMIN = { "superadmin", "admin" }
  4.  
  5. if table.HasValue( PANELADMIN, LocalPlayer():GetUserGroup()) then
  6.         local ADMINPanel = vgui.Create( "DPanel", MOTDPanel )
  7.             ADMINPanel:SetPos( 100 , 300)
  8.             ADMINPanel:SetSize( 200, 200 )
  9.             ADMINPanel.Paint = function( self, w, h)
  10.        
  11.             blurPanel( self, 5 )
  12.             draw.RoundedBox( 5, 0, 0, w, h, Color( 0, 0, 0, 250 ) )
  13.            
  14.             draw.DrawText("Admin Panel : ", "NLFspawn_panel2", 60, 25, Color( 255, 255, 255, 250 ), TEXT_ALIGN_CENTER)
  15.            
  16.             draw.DrawText("ON / OFF Boutton 2", "NLFspawn_panel2", 100, 75, Color( 255, 255, 255, 250 ), TEXT_ALIGN_CENTER)
  17.         end
  18.    
  19.     local myCheckBox2 = vgui.Create("DCheckBox", ADMINPanel)
  20.     myCheckBox2:SetPos(20,75)
  21.     myCheckBox2:SetChecked(false)
  22.     myCheckBox2:SetConVar( "nlfspawn_change" )
  23.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement