You can set a capacity on the event or on particular ticket types and when the capacity is gone then no more would be available to purchase.
Allowing the purchased to select a specific seat is a lot more complex though.
How many seats in your seating area?
Does the layout change from event to event?