Jump to content

[HELP] IKICK


MaRcell

Recommended Posts


it is a function only of those who are in that acl may be kicking the player but it doesn’t happen due to an error

systemAdm/a.Lua:99: cannot use '...' outside a vararg function near '...'

addCommandHandler("ikick",
function(playerSource,commandName,id)
    if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(playerSource)), aclGetGroup ("Admin")) then
    if(id) then
        local playerID = tonumber(id)
        if(playerID) then
                local targetPlayer = getPlayerID(playerID)
                if targetPlayer then
                local reason = table.concat({...}," ")
                kickPlayer ( playerID, PlayerSource, reason )
            end
        end
 
    end
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...