Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.00 KB | None | 0 0
  1.  
  2. local PLAYER = _R.Player
  3.  
  4. function PLAYER:AddChat( r, g, b, m, r2, g2, b2, m2 )
  5.     if !r or !g or !b or !msg then return end
  6.     if msg2 and !r2 or !g2 or !b2 then return end
  7.     if msg then
  8.         chat.AddText( Color( r, g, b ), msg )
  9.     elseif msg and msg2 then
  10.         chat.AddText( Color( r, g, b ), msg, Color( r2, g2, b2 ), msg2 )
  11.     else
  12.         print("||--> AddChat error, something dun goof'd. <--||")
  13.     end
  14. end
  15. -- Lua generated by DermaDesigner
  16.  
  17. concommand.Add("vb4_register", function( p, c, a )
  18.     local DFrame1 = vgui.Create('DFrame')
  19.     DFrame1:SetSize(300, 300)
  20.     DFrame1:SetPos(0, 0)
  21.     DFrame1:SetTitle('Forum Registeration')
  22.     DFrame1:SetSizable(true)
  23.     DFrame1:SetDeleteOnClose(false)
  24.     DFrame1:MakePopup()
  25.  
  26.     local DTextEntry1 = vgui.Create('DTextEntry', DFrame1)
  27.     DTextEntry1:SetSize(100, 20)
  28.     DTextEntry1:SetPos(5, 50)
  29.     DTextEntry1:SetText('')
  30.  
  31.     local DLabel1 = vgui.Create('DLabel', DFrame1)
  32.     DLabel1:SetPos(8, 30)
  33.     DLabel1:SetText('Username:')
  34.     DLabel1:SizeToContents()
  35.  
  36.     local DTextEntry2 = vgui.Create('DTextEntry', DFrame1)
  37.     DTextEntry2:SetSize(100, 20)
  38.     DTextEntry2:SetPos(5, 100)
  39.     DTextEntry2:SetText('')
  40.  
  41.     local DLabel2 = vgui.Create('DLabel', DFrame1)
  42.     DLabel2:SetPos(8, 80)
  43.     DLabel2:SetText('Password:')
  44.     DLabel2:SizeToContents()
  45.  
  46.     local DLabel3 = vgui.Create('DLabel', DFrame1)
  47.     DLabel3:SetPos(8, 130)
  48.     DLabel3:SetText('Email:')
  49.     DLabel3:SizeToContents()
  50.  
  51.     local DTextEntry3 = vgui.Create('DTextEntry', DFrame1)
  52.     DTextEntry3:SetSize(100, 20)
  53.     DTextEntry3:SetPos(5, 150)
  54.     DTextEntry3:SetText('')
  55.  
  56.     // This is if you want a logo right of your username, password, and email.
  57.     /*
  58.     local DPanel1 = vgui.Create('DImage', DFrame1)
  59.     DPanel1:SetSize(296, 272)
  60.     DPanel1:SetPos(1, 25)
  61.     Dpanel1:SetMaterial( ) // Place some image here
  62.     */
  63.    
  64.     local DButton1 = vgui.Create('DButton', DFrame1)
  65.     DButton1:SetSize(70, 25)
  66.     DButton1:SetPos(115, 271)
  67.     DButton1:SetText('Submit')
  68.     DButton1.DoClick = function()
  69.         p:Register( DTextEntry1:GetValue(), DTextEntry2:GetValue(), DTextEntry3:GetValue() )
  70.     end
  71. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement