Jump to content

طلب كود


Recommended Posts

السلام عليكم

شباب سويت لوغن بانل , بس حبيت اعرف كيف اخلي السكربت يتحقق إن كان هذا الحساب موجود

فإذا كان موجود يتحقق من الباسورد , إذا كان الباسورد صحيح راح يسجل دخوله والعكس لا

كود السيرفر

  
function playerlogin(username , password)  
                    if  (username == "" or password == "" or username and password == "") then 
                triggerClientEvent("Error3" , source) 
                end 
                
                 
                 
            local account = getAccount ( username, password) 
              if username ~= "" or password ~= "" or username and password ~= "" then  
                        if  account == true then  
                        return 
                        else 
                triggerClientEvent("Error1" , source) 
                end 
                 
  
             
            if ( account ~= false ) then 
             
                logIn(source, account, password) 
                if getPlayerAccount(source) and not isGuestAccount(getPlayerAccount(source)) then 
                triggerClientEvent("closing" , source) 
                end  
             
  
                end 
  
        end 
  
end 
  
addEvent("onClick" , true) 
addEventHandler("onClick" , root , playerlogin) 
  

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...