Replace:
accountname = getAccountName (getPlayerAccount(tPlayer))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) )
With:
local isAllowed = false
for placeNumber, stringData in ipairs(acceptedGroups) do
accountname = getAccountName (getPlayerAccount(tPlayer))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( stringData ) )
isAllowed = true
end
end
if (isAllowed == true) then
--Code...
Add:
acceptedGroups = {
"Group",
"Another Group",
"More",
"Mooooore",
}
You can add more in the acceptedGroups Table.