Jump to content

كود تسجيل الدخوول


Recommended Posts

سلام عليكم ورحمة الله

انا سويت نافذة تجسيل دخول

واضفت فيه زر لحفظ الاسم والباس

وخليتها تفت بإرتباط من مود ثاني

executeCommandHandler("openLoginwndserver",getLocalPlayer()) 

ولكن لما يسوي الارتباط مايبي يطلع الوحة

انا بعطيتك الملفين كاملين

ابيكم تصلحو الاخطاء الي فيه بس

سيرفر وكلنت

client

wnd = guiCreateStaticImage(204, 151, 612, 444, "window.png", false) 
 
 
guiSetVisible(wnd,false)      
GUIEditor.label[1] = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd)
       
guiSetFont(GUIEditor.label[1], "default-bold-small")
       
GUIEditor.label[2] = guiCreateLabel(113, 203, 215, 48, "Password:", false, wnd)
       
guiSetFont(GUIEditor.label[2], "default-bold-small")
       
name = guiCreateEdit(202, 140, 203, 28, "", false, wnd)
       
pass = guiCreateEdit(202, 198, 203, 28, "", false, wnd)
       
log_err = guiCreateLabel(178, 236, 253, 26, "", false, wnd)
       
guiSetFont(log_err, "default-bold-small")
       
guiLabelSetHorizontalAlign(log_err, "center", false)
 
guiLabelSetColor(log_err,255,0,0)      
login = guiCreateButton(202, 272, 99, 45, "Login", false, wnd)
goreg = guiCreateButton(311, 272, 99, 45, "Register", false, wnd)
chekbox = guiCreateCheckBox(415, 180, 95, 18, "(save)", false, false, wnd)    
-------------||Register||----------------------
GUIEditor.label[3] = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd)
       
guiSetFont(GUIEditor.label[3], "default-bold-small")
       
REGname = guiCreateEdit(202, 140, 203, 28, "", false, wnd)
       
REGpass = guiCreateEdit(202, 188, 203, 28, "", false, wnd)
       
GUIEditor.label[4] = guiCreateLabel(112, 193, 104, 48, "Password:", false, wnd)
       
guiSetFont(GUIEditor.label[4], "default-bold-small")
       
Rpass = guiCreateEdit(202, 227, 203, 28, "", false, wnd)
       
GUIEditor.label[5] = guiCreateLabel(70, 231, 104, 48, "Repeat Password:", false, wnd)
       
guiSetFont(GUIEditor.label[5], "default-bold-small")
       
back = guiCreateButton(317, 289, 88, 43, "Back", false, wnd)
       
reg = guiCreateButton(206, 289, 88, 43, "Register", false, wnd)
       
reg_err = guiCreateLabel(192, 258, 229, 31, "", false, wnd)
       
guiSetFont(reg_err, "default-bold-small")
       
guiLabelSetHorizontalAlign(reg_err, "center", false)
guiSetVisible(GUIEditor.label[3], false)
guiSetVisible(GUIEditor.label[4], false)
guiSetVisible(GUIEditor.label[5], false)
guiSetVisible(REGname, false)
guiSetVisible(REGpass, false)
guiSetVisible(Rpass, false)
guiSetVisible(reg_err, false)
guiSetVisible(back, false)
guiSetVisible(reg, false)  
--------------
 
addEventHandler("onClientResourceStart",resourceRoot,
 
 
 
function () 
local xmlFile = xmlLoadFile ("files/xml/userdata.xml")
   
if not xmlFile then
       
xmlFile = xmlCreateFile("files/xml/userdata.xml", "login")
   
end
   
local userN = xmlFindChild (xmlFile, "username", 0)
   
local passN = xmlFindChild (xmlFile, "password", 0)
   
if usernameNode and passwordNode then
user = xmlNodeGetValue(userN)
pas = xmlNodeGetValue(passN)
 
getSetText(name,user)
getSetText(pass,pas)
else
       
getSetText(name,"")
getSetText(pass,"")  
end
 
xmlSaveFile ( xmlFile )  
xmlUnloadFile ( xmlFile )
 
end
 
 
)
 
 
function saveLoginToXML(username, password)  
local xmlSFile = xmlLoadFile ("files/xml/userdata.xml")
   
if not xmlSFile then
       
xmlSFile = xmlCreateFile("files/xml/userdata.xml", "login")
   
end
   
if (username ~= "") then
       
local usernameNode = xmlFindChild (xmlSFile, "username", 0)
       
if not usernameNode then
           
usernameNode = xmlCreateChild(xmlSFile, "username")
       
end
       
xmlNodeSetValue (usernameNode, tostring(username))
   
end
   
if (password ~= "") then
       
local passwordNode = xmlFindChild (xmlSFile, "password", 0)
       
if not passwordNode then
           
passwordNode = xmlCreateChild(xmlSFile, "password")
       
end    
       
xmlNodeSetValue (passwordNode, tostring(password))
   
end
   
xmlSaveFile(xmlSFile)
   
xmlUnloadFile (xmlSFile)
end
 
addEvent("saveLoginToXML", true)
 
addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML)
 
 
 
addEventHandler("onClientGUIclick", root,
function ()
  if (source == goreg) then
   guiSetVisible(GUIEditor.label[1], false)
   guiSetVisible(GUIEditor.label[2], false)
   guiSetVisible(name, false)
   guiSetVisible(pass, false)
   guiSetVisible(log_err, false)
   guiSetVisible(goreg, false)
   guiSetVisible(login, false)
   guiSetVisible(GUIEditor.label[3], true)
   guiSetVisible(GUIEditor.label[4], true)
   guiSetVisible(GUIEditor.label[5], true)
   guiSetVisible(REGname, true)
   guiSetVisible(REGpass, true)
   guiSetVisible(Rpass, true)
   guiSetVisible(reg_err, true)
   guiSetVisible(back, true)
   guiSetVisible(reg, true)
  elseif (source == back) then
   guiSetVisible(GUIEditor.label[1], true)
   guiSetVisible(GUIEditor.label[2], true)
   guiSetVisible(name, true)
   guiSetVisible(pass, true)
   guiSetVisible(log_err, true)
   guiSetVisible(goreg, true)
   guiSetVisible(login, true)
   guiSetVisible(GUIEditor.label[3], false)
   guiSetVisible(GUIEditor.label[4], false)
   guiSetVisible(GUIEditor.label[5], false)
   guiSetVisible(REGname, false)
   guiSetVisible(REGpass, false)
   guiSetVisible(Rpass, false)
   guiSetVisible(reg_err, false)
   guiSetVisible(back, false)
   guiSetVisible(reg, false)
  elseif (source == reg) then
     local user = guiGetText(REGname)
     local pass = guiGetText(REGpass)
     local Rpass = guiGetText(Rpass)
     TriggerServerEvent("reg", getLocalPlayer(),user,pass,Rpass)
  elseif (source == log) then
     local username = guiGetText(name)
     local password = guiGetText(pass)
     local checksave = guiCheckBoxGetSelected(chekbox)
     TriggerServerEvent("log", getLocalPlayer(),username,password,checksave)
    end
 end
)
 
 
addEvent("set_warning_text", true)
 
addEventHandler("set_warning_text", getRootElement(),
function (type, text)
 if (type == "Login") then
  guiSetText(log_err,text)
  setTimer(guiSetText,2000,1,log_err,"")
 elseif (type == "Register") then
  guiLabelSetColor(reg_err,255,0,0)    
  guiSetText(reg_err,text)
  setTimer(guiSetText,2000,1,reg_err,"")
 end
end
)
 
 
addEvent("ww", true)
 
addEventHandler("ww", getRootElement(),
function (type, text)
 if (type == "Register") then
  guiLabelSetColor(reg_err,0,255,0)    
  guiSetText(reg_err,text)
  setTimer(guiSetText,2000,1,reg_err,"")
 elseif (type == "login") then return
 end
end
)    
 
 
addEvent("ss", true)
 
addEventHandler("ss", getRootElement(),
function ()
guiSetVisible(wnd,false)
showCursor (false)
fadeCamera(true)
end
)  
 
 
addCommandHandler("openLoginwndserver" ,
function ()
guiSetVisible(wnd,true)
showCursor (false)
fadeCamera(true)
showChat(true)
end
)  
 
Link to comment

تفضل

جرب

wnd = guiCreateStaticImage(204, 151, 612, 444, "window.png", false) 
  
  
guiSetVisible(wnd,false)       
label1 = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd) 
        
guiSetFont(label1, "default-bold-small") 
        
label2 = guiCreateLabel(113, 203, 215, 48, "Password:", false, wnd) 
        
guiSetFont(label2, "default-bold-small") 
        
name = guiCreateEdit(202, 140, 203, 28, "", false, wnd) 
        
pass = guiCreateEdit(202, 198, 203, 28, "", false, wnd) 
        
log_err = guiCreateLabel(178, 236, 253, 26, "", false, wnd) 
        
guiSetFont(log_err, "default-bold-small") 
        
guiLabelSetHorizontalAlign(log_err, "center", false) 
  
guiLabelSetColor(log_err,255,0,0)       
login = guiCreateButton(202, 272, 99, 45, "Login", false, wnd) 
goreg = guiCreateButton(311, 272, 99, 45, "Register", false, wnd) 
chekbox = guiCreateCheckBox(415, 180, 95, 18, "(save)", false, false, wnd)     
-------------||Register||---------------------- 
label3 = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd) 
        
guiSetFont(label3, "default-bold-small") 
        
REGname = guiCreateEdit(202, 140, 203, 28, "", false, wnd) 
        
REGpass = guiCreateEdit(202, 188, 203, 28, "", false, wnd) 
        
label4 = guiCreateLabel(112, 193, 104, 48, "Password:", false, wnd) 
        
guiSetFont(label4, "default-bold-small") 
        
Rpass = guiCreateEdit(202, 227, 203, 28, "", false, wnd) 
        
label5 = guiCreateLabel(70, 231, 104, 48, "Repeat Password:", false, wnd) 
        
guiSetFont(label5, "default-bold-small") 
        
back = guiCreateButton(317, 289, 88, 43, "Back", false, wnd) 
        
reg = guiCreateButton(206, 289, 88, 43, "Register", false, wnd) 
        
reg_err = guiCreateLabel(192, 258, 229, 31, "", false, wnd) 
        
guiSetFont(reg_err, "default-bold-small") 
        
guiLabelSetHorizontalAlign(reg_err, "center", false) 
guiSetVisible(label3, false) 
guiSetVisible(label4, false) 
guiSetVisible(label5, false) 
guiSetVisible(REGname, false) 
guiSetVisible(REGpass, false) 
guiSetVisible(Rpass, false) 
guiSetVisible(reg_err, false) 
guiSetVisible(back, false) 
guiSetVisible(reg, false)   
-------------- 
  
addEventHandler("onClientResourceStart",resourceRoot, 
  
  
  
function ()  
local xmlFile = xmlLoadFile ("files/xml/userdata.xml") 
    
if not xmlFile then 
        
xmlFile = xmlCreateFile("files/xml/userdata.xml", "login") 
    
end 
    
local userN = xmlFindChild (xmlFile, "username", 0) 
    
local passN = xmlFindChild (xmlFile, "password", 0) 
    
if usernameNode and passwordNode then 
user = xmlNodeGetValue(userN) 
pas = xmlNodeGetValue(passN) 
  
getSetText(name,user) 
getSetText(pass,pas) 
else 
        
getSetText(name,"") 
getSetText(pass,"")   
end 
  
xmlSaveFile ( xmlFile )   
xmlUnloadFile ( xmlFile ) 
  
end 
  
  
) 
  
  
function saveLoginToXML(username, password)   
local xmlSFile = xmlLoadFile ("files/xml/userdata.xml") 
    
if not xmlSFile then 
        
xmlSFile = xmlCreateFile("files/xml/userdata.xml", "login") 
    
end 
    
if (username ~= "") then 
        
local usernameNode = xmlFindChild (xmlSFile, "username", 0) 
        
if not usernameNode then 
            
usernameNode = xmlCreateChild(xmlSFile, "username") 
        
end 
        
xmlNodeSetValue (usernameNode, tostring(username)) 
    
end 
    
if (password ~= "") then 
        
local passwordNode = xmlFindChild (xmlSFile, "password", 0) 
        
if not passwordNode then 
            
passwordNode = xmlCreateChild(xmlSFile, "password") 
        
end     
        
xmlNodeSetValue (passwordNode, tostring(password)) 
    
end 
    
xmlSaveFile(xmlSFile) 
    
xmlUnloadFile (xmlSFile) 
end 
  
addEvent("saveLoginToXML", true) 
  
addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML) 
  
  
  
addEventHandler("onClientGUIclick", root, 
function () 
  if (source == goreg) then 
   guiSetVisible(label1, false) 
   guiSetVisible(label2, false) 
   guiSetVisible(name, false) 
   guiSetVisible(pass, false) 
   guiSetVisible(log_err, false) 
   guiSetVisible(goreg, false) 
   guiSetVisible(login, false) 
   guiSetVisible(label3, true) 
   guiSetVisible(label4, true) 
   guiSetVisible(label5, true) 
   guiSetVisible(REGname, true) 
   guiSetVisible(REGpass, true) 
   guiSetVisible(Rpass, true) 
   guiSetVisible(reg_err, true) 
   guiSetVisible(back, true) 
   guiSetVisible(reg, true) 
  elseif (source == back) then 
   guiSetVisible(label1, true) 
   guiSetVisible(label2, true) 
   guiSetVisible(name, true) 
   guiSetVisible(pass, true) 
   guiSetVisible(log_err, true) 
   guiSetVisible(goreg, true) 
   guiSetVisible(login, true) 
   guiSetVisible(label3, false) 
   guiSetVisible(label4, false) 
   guiSetVisible(label5, false) 
   guiSetVisible(REGname, false) 
   guiSetVisible(REGpass, false) 
   guiSetVisible(Rpass, false) 
   guiSetVisible(reg_err, false) 
   guiSetVisible(back, false) 
   guiSetVisible(reg, false) 
  elseif (source == reg) then 
     local user = guiGetText(REGname) 
     local pass = guiGetText(REGpass) 
     local Rpass = guiGetText(Rpass) 
     TriggerServerEvent("reg", getLocalPlayer(),user,pass,Rpass) 
  elseif (source == log) then 
     local username = guiGetText(name) 
     local password = guiGetText(pass) 
     local checksave = guiCheckBoxGetSelected(chekbox) 
     TriggerServerEvent("log", getLocalPlayer(),username,password,checksave) 
    end 
 end 
) 
  
  
addEvent("set_warning_text", true) 
  
addEventHandler("set_warning_text", getRootElement(), 
function (type, text) 
 if (type == "Login") then 
  guiSetText(log_err,text) 
  setTimer(guiSetText,2000,1,log_err,"") 
 elseif (type == "Register") then 
  guiLabelSetColor(reg_err,255,0,0)     
  guiSetText(reg_err,text) 
  setTimer(guiSetText,2000,1,reg_err,"") 
 end 
end 
) 
  
  
addEvent("ww", true) 
  
addEventHandler("ww", getRootElement(), 
function (type, text) 
 if (type == "Register") then 
  guiLabelSetColor(reg_err,0,255,0)     
  guiSetText(reg_err,text) 
  setTimer(guiSetText,2000,1,reg_err,"") 
 elseif (type == "login") then return 
 end 
end 
)     
  
  
addEvent("ss", true) 
addEventHandler("ss", getRootElement(), 
function () 
guiSetVisible(wnd,false) 
showCursor (false) 
fadeCamera(true) 
end 
)   
  
  
addCommandHandler("openLoginwndserver" , 
function () 
guiSetVisible(wnd,true) 
showCursor (true) 
fadeCamera(true) 
showChat(true) 
end 
)   
  

Link to comment

اكتشفت ان اللوحة ظهرت لما ادخلت الكومند في اف8

انا ابيك تعدل الارتباط+النافذة تعمل لكن الازرار لا تعمل

مثلا ابي اسجل دخول احط الاسم والباس ولما اضغط الزر ما يصير شيء تكفى صلحو الخطأ

Link to comment

انت مسوي هريس كثير

login عندك زر اسمه

reg و زر اسمه

goreg و زر اسمه

ليه عندك زرين تسجيل؟!

elseif (source == reg) then 

من وين جبته؟ log طيب ذا

elseif (source == log) then 

getSetText و ذي من وين جايبها

سلامات

getSet?!

:o

Link to comment

اولا:مشكوور ياتابل على تصحيح الاخطاء

ثانيا:انا عندي زر واحد للتسجيل الي اسمه reg

والي اسمه login

لتسجيل الدخول وكل واحد له ترايقر غير عن الثاني

ثالثا:نفس المشكلة السابقة :(:(:( الازرار لما اضغط عليها ما تسوي شيء :cry::cry::cry::cry:

واتمنى انه تجيبو حل

Link to comment

ياخي مسوي هريسة كبيرة .. واكودك عفسة رتبها

وعندك اخطاء كثيرة ..

اللي قدرت اصلحه لكـ .. صلحته

وتراه ما بيشتغل .. لانه مسوي هريسة وما اعتقد احد بصلحه لك كامل

لو ما تعرف للسكربت ذا مو مجبور تسوي .. ي كثرها منشورة حاول تتعلم وبعدين سوي ذذ

wnd = guiCreateStaticImage(204, 151, 612, 444, "window.png", false)       
GUIEditor.label[1] = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd)   
GUIEditor.label[2] = guiCreateLabel(113, 203, 215, 48, "Password:", false, wnd) 
name = guiCreateEdit(202, 140, 203, 28, "", false, wnd)      
pass = guiCreateEdit(202, 198, 203, 28, "", false, wnd)     
log_err = guiCreateLabel(178, 236, 253, 26, "", false, wnd)          
login = guiCreateButton(202, 272, 99, 45, "Login", false, wnd) 
goreg = guiCreateButton(311, 272, 99, 45, "Register", false, wnd) 
chekbox = guiCreateCheckBox(415, 180, 95, 18, "(save)", false, false, wnd)     
-------------||Register||---------------------- 
GUIEditor.label[3] = guiCreateLabel(108, 145, 104, 48, "Username:", false, wnd)        
REGname = guiCreateEdit(202, 140, 203, 28, "", false, wnd)    
REGpass = guiCreateEdit(202, 188, 203, 28, "", false, wnd)      
GUIEditor.label[4] = guiCreateLabel(112, 193, 104, 48, "Password:", false, wnd)    
Rpass = guiCreateEdit(202, 227, 203, 28, "", false, wnd)   
GUIEditor.label[5] = guiCreateLabel(70, 231, 104, 48, "Repeat Password:", false, wnd)       
back = guiCreateButton(317, 289, 88, 43, "Back", false, wnd)   
reg = guiCreateButton(206, 289, 88, 43, "Register", false, wnd)    
reg_err = guiCreateLabel(192, 258, 229, 31, "", false, wnd)     
guiSetFont(reg_err, "default-bold-small") 
guiSetFont(GUIEditor.label[5], "default-bold-small")            
guiSetFont(GUIEditor.label[4], "default-bold-small")        
guiSetFont(GUIEditor.label[3], "default-bold-small") 
guiLabelSetHorizontalAlign(log_err, "center", false) 
guiSetFont(log_err, "default-bold-small")      
guiSetFont(GUIEditor.label[2], "default-bold-small") 
guiSetVisible(wnd,false) 
guiSetFont(GUIEditor.label[1], "default-bold-small")       
guiLabelSetColor(log_err,255,0,0)            
guiLabelSetHorizontalAlign(reg_err, "center", false) 
guiSetVisible(GUIEditor.label[3], false) 
guiSetVisible(GUIEditor.label[4], false) 
guiSetVisible(GUIEditor.label[5], false) 
guiSetVisible(REGname, false) 
guiSetVisible(REGpass, false) 
guiSetVisible(Rpass, false) 
guiSetVisible(reg_err, false) 
guiSetVisible(back, false) 
guiSetVisible(reg, false)   
-------------- 
  
addEventHandler("onClientResourceStart",resourceRoot, 
  
  
  
function ()  
local xmlFile = xmlLoadFile ("files/xml/userdata.xml") 
    
if not xmlFile then 
        
xmlFile = xmlCreateFile("files/xml/userdata.xml", "login") 
    
end 
    
local userN = xmlFindChild (xmlFile, "username", 0) 
    
local passN = xmlFindChild (xmlFile, "password", 0) 
    
if usernameNode and passwordNode then 
user = xmlNodeGetValue(userN) 
pas = xmlNodeGetValue(passN) 
  
getSetText(name,user) 
getSetText(pass,pas) 
else 
        
getSetText(name,"") 
getSetText(pass,"")   
end 
  
xmlSaveFile ( xmlFile )   
xmlUnloadFile ( xmlFile ) 
  
end 
  
  
) 
  
  
function saveLoginToXML(username, password)   
local xmlSFile = xmlLoadFile ("files/xml/userdata.xml") 
    
if not xmlSFile then 
        
xmlSFile = xmlCreateFile("files/xml/userdata.xml", "login") 
    
end 
    
if (username ~= "") then 
        
local usernameNode = xmlFindChild (xmlSFile, "username", 0) 
        
if not usernameNode then 
            
usernameNode = xmlCreateChild(xmlSFile, "username") 
        
end 
        
xmlNodeSetValue (usernameNode, tostring(username)) 
    
end 
    
if (password ~= "") then 
        
local passwordNode = xmlFindChild (xmlSFile, "password", 0) 
        
if not passwordNode then 
            
passwordNode = xmlCreateChild(xmlSFile, "password") 
        
end     
        
xmlNodeSetValue (passwordNode, tostring(password)) 
    
end 
    
xmlSaveFile(xmlSFile) 
    
xmlUnloadFile (xmlSFile) 
end 
  
addEvent("saveLoginToXML", true) 
  
addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML) 
  
  
  
addEventHandler( "onClientGUIClick", resourceRoot, function (   ) 
  if ( source == goreg ) then 
  for _,v in ipairs ( GUIEditor.label ) do 
       guiSetVisible ( v, not guiGetVisible( v ) ) 
   end 
   guiSetVisible(name, false) 
   guiSetVisible(pass, false) 
   guiSetVisible(log_err, false) 
   guiSetVisible(goreg, false) 
   guiSetVisible(login, false) 
   guiSetVisible(REGname, true) 
   guiSetVisible(REGpass, true) 
   guiSetVisible(Rpass, true) 
   guiSetVisible(reg_err, true) 
   guiSetVisible(back, true) 
   guiSetVisible(reg, true) 
  elseif (source == back) then 
   for _,v in ipairs ( GUIEditor.label ) do 
       guiSetVisible ( v, not guiGetVisible( v ) ) 
   end 
   guiSetVisible(name, true) 
   guiSetVisible(pass, true) 
   guiSetVisible(log_err, true) 
   guiSetVisible(goreg, true) 
   guiSetVisible(login, true) 
   guiSetVisible(REGname, false) 
   guiSetVisible(REGpass, false) 
   guiSetVisible(Rpass, false) 
   guiSetVisible(reg_err, false) 
   guiSetVisible(back, false) 
   guiSetVisible(reg, false) 
  elseif ( source == reg ) then 
     triggerServerEvent ( "reg", localPlayer, guiGetText(REGname), guiGetText(REGpass), guiGetText(Rpass) ) 
  elseif ( source == login ) then 
     local username = guiGetText(name) 
     local password = guiGetText(pass) 
     local checksave = guiCheckBoxGetSelected(chekbox) 
     triggerServerEvent( "log", localPlayer, guiGetText(name), guiGetText(pass), guiCheckBoxGetSelected(chekbox)) 
    end 
end ) 
  
  
addEvent( "set_warning_text", true ) 
addEventHandler( "set_warning_text", root, function ( type, text ) 
 if ( type == "Login" ) then 
     guiSetText(log_err,text) 
     setTimer( guiSetText, 2000, 1, log_err, "" ) 
 elseif (type == "Register") then 
     guiLabelSetColor(reg_err,255,0,0)     
     guiSetText(reg_err,text) 
     setTimer( guiSetText, 2000, 1, reg_err, "" ) 
   end 
end ) 
  
  
addEvent("ww", true) 
  
addEventHandler("ww", getRootElement(), 
function (type, text) 
 if (type == "Register") then 
  guiLabelSetColor(reg_err,0,255,0)     
  guiSetText(reg_err,text) 
  setTimer(guiSetText,2000,1,reg_err,"") 
 elseif (type == "login") then return 
 end 
end 
)     
  
  
addEvent( "ss", true ) 
addEventHandler( "ss", root, function (  ) 
   guiSetVisible( wnd, false ) 
   showCursor ( false ) 
   fadeCamera ( true ) 
end )   
  
  
addCommandHandler( "openLoginwndserver", function (   ) 
   guiSetVisible( wnd, true ) 
   showCursor ( false ) 
   fadeCamera( true ) 
   showChat( true ) 
end ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...