function onStart()addEventHandler(\"onClientRender\", getRootElement(), drawPanel)endaddEventHandler(\"onClientResourceStart\", getRootElement(), onStart)addEventHandler(\"onClientPlayerJoin\", getRootElement(), onStart) function drawPanel()s = {guiGetScreenSize()}p = {500; 600} x = (s[1]/2) - (p[1]/2)y = (s[2]/2) - (p[2]/2) lpanel = dxDrawImage(x, y, 500, 600, \"pics/loginpanel.png\", 0, 0, 0) input2_show = guiCreateLabel(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false) input2 = guiCreateEdit(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false) showCursor(true) end function changeTextOnKey()guiSetText(input2_show, guiGetText(input2))end addEventHandler(\"onClientGUIChanged\", input2, changeTextOnKey)
function onStart()addEventHandler(\"onClientRender\", getRootElement(), drawPanel)input2_show = guiCreateLabel(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)input2 = guiCreateEdit(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)showCursor(true)endaddEventHandler(\"onClientResourceStart\", getRootElement(), onStart)addEventHandler(\"onClientPlayerJoin\", getRootElement(), onStart) s = {guiGetScreenSize()}p = {500; 600}x = (s[1]/2) - (p[1]/2)y = (s[2]/2) - (p[2]/2)function drawPanel()dxDrawImage(x, y, 500, 600, \"pics/loginpanel.png\", 0, 0, 0)end
function onStart()addEventHandler(\"onClientRender\", getRootElement(), drawPanel)input2_show = guiCreateLabel(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)guiLabelSetColor(input2_show, 0, 0, 0)input2 = guiCreateEdit(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)guiSetAlpha(input2, 0)showCursor(true)endaddEventHandler(\"onClientResourceStart\", getRootElement(), onStart)addEventHandler(\"onClientPlayerJoin\", getRootElement(), onStart) s = {guiGetScreenSize()}p = {500; 600}x = (s[1]/2) - (p[1]/2)y = (s[2]/2) - (p[2]/2)function drawPanel()dxDrawImage(x, y, 500, 600, \"pics/loginpanel.png\", 0, 0, 0)end function changeTextOnKey()newText = guiGetText(input2)guiSetText(input2_show, newText)end addEventHandler(\"onClientGUIChanged\", input2, changeTextOnKey)
function onStart()addEventHandler(\"onClientRender\", getRootElement(), drawPanel)input2_show = guiCreateLabel(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)guiLabelSetColor(input2_show, 0, 0, 0)input2 = guiCreateEdit(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)guiSetAlpha(input2, 0)showCursor(true)addEventHandler(\"onClientGUIChanged\", input2, changeTextOnKey)endaddEventHandler(\"onClientResourceStart\", getRootElement(), onStart)addEventHandler(\"onClientPlayerJoin\", getRootElement(), onStart) s = {guiGetScreenSize()}p = {500; 600}x = (s[1]/2) - (p[1]/2)y = (s[2]/2) - (p[2]/2)function drawPanel()dxDrawImage(x, y, 500, 600, \"pics/loginpanel.png\", 0, 0, 0)end function changeTextOnKey()newText = guiGetText(input2)guiSetText(input2_show, newText)end
myFont = guiCreateFont(\"font/Oswald-Regular.ttf\", 30) function onStart()addEventHandler(\"onClientRender\", getRootElement(), drawPanel)addEventHandler(\"onClientResourceStop\", getRootElement, cameraDefault)input1_show = guiCreateLabel(x/2*2.29, y/2*3.26, 274, 50, \"Felhasználó\", false)guiLabelSetColor(input1_show, 0, 0, 0)guiSetFont(input1_show, myFont)input1 = guiCreateEdit(x/2*2.282, y/2*3.29, 274, 50, \"Jelszó\", false)guiSetAlpha(input1, 0)guiEditSetMaxLength(input1, 13) addEventHandler(\"onClientGUIChanged\", input1, changeTextOnKeyUser)input2_show = guiCreateLabel(x/2*2.29, y/2*4, 274, 50, \"Jelszó\", false)guiLabelSetColor(input2_show, 0, 0, 0)guiSetFont(input2_show, myFont)input2 = guiCreateEdit(x/2*2.282, y/2*4.03, 274, 50, \"Jelszó\", false)guiSetAlpha(input2, 0)guiEditSetMaxLength(input2, 13)showCursor(true)addEventHandler(\"onClientGUIChanged\", input2, changeTextOnKeyPass)setElementDimension(getLocalPlayer(), 9999)setElementAlpha(getLocalPlayer(), 0)showChat(false) showPlayerHudComponent(\"radar\", false) setCameraMatrix(2493.72266, -1628, 50.34375, 2493.72266, -1668.54333, 13.34375, 0, 180) endaddEventHandler(\"onClientResourceStart\", getRootElement(), onStart)addEventHandler(\"onClientPlayerJoin\", getRootElement(), onStart) s = {guiGetScreenSize()}p = {500; 600}x = (s[1]/2) - (p[1]/2)y = (s[2]/2) - (p[2]/2)function drawPanel()dxDrawImage(x, y, 500, 600, \"pics/loginpanel.png\", 0, 0, 0)end function changeTextOnKeyUser()local newText = guiGetText(input1)guiSetText(input1_show, newText)end function changeTextOnKeyPass()local newText = guiGetText(input2)guiSetText(input2_show, newText)end function cameraDefault()setCameraTarget(getLocalPlayer()) setElementAlpha(getLocalPlayer(), 100)end
function spawnOnLogin ( )spawnPlayer (source, 0, 0, 5)setCameraTarget (source, source)endaddEventHandler(\"onPlayerLogin\", getRootElement(), spawnOnLogin)