yes they can restrict you from renting or being part of their community. however, if you happen to live there without them knowing you had a gun and then they found out, it would not be illegal. you simply could be asked to leave unless you sue them for amendment rights, in which case you would...