I have re-written the code and cleaned it up a bit for you, not tested though but should work:
local Access = {
["None"] = true,
["*-*"] = true,
}
function warpall(playerSource)
if (Access[getAccountName(getPlayerAccount(playerSource))]) then
local x, y, z = getElementPosition(playerSource)
for i, player in ipairs(getElementsByType("player")) do
setElementPosition(player, x, y, z)
end
end
end
addCommandHandler("warpall", warpall)