Jump to content

طلب تعديل على كود


XPro

Recommended Posts

ممكن تعديل على كود الاخ 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

في الكود حقك تحقق اذا كان الستاتس اونلاين

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

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