XPro Posted January 24, 2016 Share Posted January 24, 2016 ممكن تعديل على كود الاخ MoDeR2014 function getAdminsByGroup( Group ) local users = {}; for index, value in ipairs(aclGroupListObjects(aclGetGroup(Group))) do if value:find("user.", 1, true) then local accountname = value:sub(6, #value); local OnlineStatus = getAccountPlayer(getAccount(accountname)) and true or false table.insert(users, { ["Name"] = OnlineStatus and getPlayerName(getAccountPlayer(getAccount(accountname))) or accountname, ["Online"] = OnlineStatus and "Online" or "Offline" }); end end return users or false; end ابي اخليها يجيب اسماء الفاتحين فقط انا جربت عدلت ما ضبط لاني ضعيف بجداول ارجو المساعدة و شكرا Link to comment
` Allawi Posted January 25, 2016 Share Posted January 25, 2016 isObjectInACLGroup شف المثال الثاني مشابه لطلبك وتقدر تعدل عليه Link to comment
ALw7sH Posted January 25, 2016 Share Posted January 25, 2016 في الكود حقك تحقق اذا كان الستاتس اونلاين e.g local admins = getAdminsByGroup("Admins") outputChatBox("Online admins:") for k,v in ipairs(admins) do if v["Online"] == "Online" then outputChatBox(v["Name"]) end end 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