Kilfwan Posted June 10, 2015 Share Posted June 10, 2015 Hola algo esta mal o que? este es el codigo. Probe el login mediante aplastando f8 y q salga el cursor todo vale pero el cursor no aparece. PD: 20% De mi script es del comunity function loginPanel() if not(isElement(loginGui)) then x,y = guiGetScreenSize() local sWidth,sHeight = guiGetScreenSize() local Width,Height = 372,412 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) loginGui = guiCreateWindow(X,Y,Width,Height,"Bienvenido al Servidor.", false) guiWindowSetSizable(loginGui, false) labelss = guiCreateLabel(20, 73, 45, 16, "Usuario:", false, loginGui) guiSetFont(labelss, "default-bold-small") labeee = guiCreateLabel(16, 110, 70, 17, "Contraseña:", false, loginGui) guiSetFont(labeee, "default-bold-small") editusuario = guiCreateEdit(90, 67, 126, 26, "", false, loginGui) editcontra = guiCreateEdit(90, 105, 126, 27, "", false, loginGui) guiEditSetMasked(editcontra, true) labee = guiCreateLabel(16, 148, 70, 17, "Confirmar:", false, loginGui) guiSetFont(labee, "default-bold-small") editcon = guiCreateEdit(90, 142, 126, 27, "", false, loginGui) guiEditSetMasked(editcon, true) imagen = guiCreateStaticImage(252, 60, 110, 109, ":guieditor/images/6.png", false, loginGui) login = guiCreateButton(52, 196, 101, 36, "Logearse", false, loginGui) guiSetFont(login, "default-bold-small") guiSetProperty(login, "NormalTextColour", "FFFFFFFF") label = guiCreateLabel(20, 29, 213, 21, "Por favor Debes Logearte:", false, loginGui) guiSetFont(label, "default-bold-small") guiLabelSetColor(label, 247, 0, 0) regist = guiCreateButton(226, 196, 101, 36, "Registrarse", false, loginGui) guiSetFont(regist, "default-bold-small") guiSetProperty(regist, "NormalTextColour", "FFFFFFFF") edit = guiCreateEdit(11, 243, 351, 159, "Login Panel Actualizado el 11/06/15 by:Adrian.", false, loginGui) guiEditSetReadOnly(edit, true) if GuestEnable == true then else end regist = guiCreateButton(226, 196, 101, 36, "Registrarse", false, loginGui) guiSetFont(regist, "default-bold-small") guiSetProperty(regist, "NormalTextColour", "FFFFFFFF") guiSetVisible(loginGui,true) showCursor(true) local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiSetText ( editusuario, tostring(username)) guiSetText ( editcontra, tostring(password)) else guiSetText ( editusuario, tostring(username)) guiSetText ( editcontra, tostring(password)) end addEventHandler("onClientGUIClick",login,onClickBtninicio) addEventHandler("onClientGUIClick", regist,vergui,false) addEventHandler("onClientGUIClick", regist,verguis, false) end end addEventHandler("onClientResourceStart", resourceRoot, loginPanel) Link to comment
Recommended Posts