Jump to content

Xiti userpanel


Sex*

Recommended Posts

So I bought Xiti userpanel from some random player but I dont earn money when over 3 players is in. Only getting money with hunter. There was some resetStats command but it didnt reset stats:

addCommandHandler("resetStats",  
function (player, cmd, arg1) 
    if (arg1) then 
        local account = getPlayerAccount(player) 
        if (isObjectInACLGroup("user." ..getAccountName(account), aclGetGroup("Admin"))) then 
            local target = getPlayerWildcard(arg1) 
            if (target) then 
                local account = getPlayerAccount(target) 
                if not (isGuestAccount(account)) then 
                    for i, data in ipairs(dataTable) do 
                        setAccountData(account, data, "0") 
                        outputDebugString("Setting data: "..tostring(data).." for player: "..tostring(getPlayerName(target)).." to 0") 
                    end 
                end 
                if not (isGuestAccount(account)) then 
                    for i, data in pairs(textDataTable) do 
                    end 
                end 
            end 
        end 
    end 
end) 
  
  
  
function checkLoggedPlayer() 
    for id,thePlayer in pairs(getElementsByType("player")) do 
        local account = getPlayerAccount(thePlayer) 
        if not (isGuestAccount(account)) then 
            onPlayerLoginHandler(thePlayer) 
        end 
    end 
end 

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...