Jump to content

طلب تحويل


Recommended Posts

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

بدي احول هاد الكود بدل من اسل لأسم حساب او اكثر من اسم حساب

unction isAdminAccount(account) 
  local nick = "" 
  local group = aclGetGroup("Console") 
  if (account and group) then 
    nick = string.lower(getAccountName(account) or "") 
    for _, object in ipairs(aclGroupListObjects(group) or {}) do 
      if (gettok(object, 1, string.byte('.')) == "user") then 
        if (nick == string.lower(gettok(object, 2, string.byte('.')))) then 
          return true 
        end 
      end 
    end 
  end 
  return false 
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...