MaRcell Posted February 28, 2020 Share Posted February 28, 2020 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
The_GTA Posted February 28, 2020 Share Posted February 28, 2020 Line 10: * replace playerID with targetPlayer * replace PlayerSource with playerSource 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