الكود الي لما يسجل تختف النافذه ظبط اما الي اول ماتخش السيرفر ماظبط .!
وبنسبه للكود هاذا هو
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}
GUIEditor_Window[1] = guiCreateWindow(435,269,445,262,"Login/Register",false)
GUIEditor_Edit[1] = guiCreateEdit(16,151,413,41,"",false,GUIEditor_Window[1])
GUIEditor_Edit[2] = guiCreateEdit(15,70,413,41,"",false,GUIEditor_Window[1])
GUIEditor_Button[1] = guiCreateButton(113,206,230,47,"Login/Register",false,GUIEditor_Window[1])
guiSetFont(GUIEditor_Button[1],"default-bold-small")
GUIEditor_Label[1] = guiCreateLabel(156,36,136,16,"Please write your name",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[1],255,0,0)
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Label[2] = guiCreateLabel(154,121,136,16,"Please write your Pass",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[2],255,0,0)
guiSetFont(GUIEditor_Label[2],"default-bold-small")
GUIEditor_Label[3] = guiCreateLabel(8,231,79,17,"By MR.SL6AN",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[3],255,0,0)
guiSetFont(GUIEditor_Label[3],"default-bold-small")
GUIEditor_Label[4] = guiCreateLabel(364,229,58,16,"Good Bye",false,GUIEditor_Window[1])
guiLabelSetColor(GUIEditor_Label[4],255,0,0)
guiSetFont(GUIEditor_Label[4],"default-bold-small")
guiSetVisible (GUIEditor_Window[1], true)
showCursor (false )
guiSetInputEnabled(true
function mrsl6an()
guiSetVisible (GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1]))
showCursor(guiGetVisible(GUIEditor_Window[1]))
playSound("mrsl6an.wav", false)
end
bindKey ("f6", "down", mrsl6an)
addEventHandler ("onClientGUIClick", getRootElement(),
function(button, state, absoluteX, absoluteY)
if ( source == GUIEditor_Button[1] ) then
guiSetVisible (GUIEditor_Window[1], false)
showCursor (false )
guiSetInputEnabled(false)
end
end)
guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FFFF0000")
guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FFFF0000")
outputChatBox ("#007fff[login/registerPanel]: #007fff.:[ #999999By #999999Mr.SL6AN #999999#007fff]:. ", 27, 89, 224, true)
outputChatBox ("#007fff[Open]: #007fffPress #007fff'F6' #007fffto open #007fffThe #007ffflogin/registerPanel.!", 255, 0, 0, true)
addEventHandler("onClientGUIClick",getRootElement(),
function()
if ( source == GUIEditor_Button[1] ) then
triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[2]), guiGetText(GUIEditor_Edit[1]))
end
end)