Price per person in room, but room can only be booked by one person

There are rooms with room for between 2 and 5 persons. Is it possible to setup a booking in a way so the price is per person per night? But if one person books a room then no one else can book it.
For instance in a 5 person room. One person makes a booking for 3 persons for one night. Then the price should be 3 x price per person per night. There are still two beds available, but since this room has been booked by one group then no one else can book it.

This discussion has been closed.