ivor Posted July 26, 2016 Share Posted July 26, 2016 السلام عليكم ورحمة الله وبركاته شباب بدي احول هاد الكود بدل من اسل لأسم حساب او اكثر من اسم حساب 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
Mhmd.z Posted July 26, 2016 Share Posted July 26, 2016 getPlayerAccount getAccountName Link to comment
Adham Posted July 26, 2016 Share Posted July 26, 2016 unction isAdminAccount(account) function * Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now