So how do I change the players nickname in my gamemode using Derma Text Entry
This is my code for the text entries
this is on cl_init.lua I think the function may have to be called on the init.lua but IDK
if someone could explain that would be great!
local FirstName = vgui.Create( "DTextEntry", Frame ) -- create the form as a child of frame FirstName:SetPos( 25, 75 ) FirstName:SetSize( 900, 25 ) FirstName:SetText( "First Name" ) FirstName.OnEnter = function( self ) end local LastName = vgui.Create( "DTextEntry", Frame ) -- create the form as a child of frame LastName:SetPos( 25, 125 ) LastName:SetSize( 900, 25 ) LastName:SetText( "Last Name" ) LastName.OnEnter = function( self ) end
[editline]13th February 2016[/editline]
Also How can I have the player die when they initaly spawn into the server?