A Chicago man is being warned by city officials to stop offering "slumber parties" at his home to homeless people or else his house will be condemned.

Greg Schiller told NBC 5 he began opening his basement up to the homeless last month during brutally cold weather. He offered them offered them food, warm drinks and a place to sleep while watching movies.

“I would stay up all night with them and give them coffee and stuff and feed them,” he said, while also adding that no drugs or alcohol were allowed inside his residence during the sleepovers.

However, city officials said Schiller's basement doesn't meet their "sleeping regulations."

RELATED: On the streets with London's homeless



12 PHOTOS On the streets with London's homeless See Gallery On the streets with London's homeless Homeless man Kel sleeps in the spot where he lives in the subway next to Hyde Park Station in London, Britain, December 19, 2017. REUTERS/Mary Turner SEARCH "TURNER HOMELESS" FOR THIS STORY. SEARCH "WIDER IMAGE" FOR ALL STORIES. TPX IMAGES OF THE DAY Tents and possessions belonging to Kevin, aged 50 and Bryan, aged 51, are lined up where they live on the street outside Piccadilly Theatre in London, Britain, December 4, 2017. REUTERS/Mary Turner A homeless man sleeps in the cardboard box where he lives, outside Barclays Bank on Fleet Street in London, Britain, December 19, 2017. REUTERS/Mary Turner SEARCH "TURNER HOMELESS" FOR THIS STORY. SEARCH "WIDER IMAGE" FOR ALL STORIES. Bedding belonging to a homeless person lies in a nook in Moorgate in the City of London, in London, Britain, October 17, 2017. REUTERS/Mary Turner Bedding and possessions belonging to Andrei who is homeless, lie at the spot where he lives near to Kings Cross Station in London, Britain, December 17, 2017. REUTERS/Mary Turner A loaf of bread is placed alongside bedding belonging to Jason, aged 41, who is homeless, at the entrance to Piccadilly Station in London, Britain, December 4, 2017. REUTERS/Mary Turner Bedding and possessions belonging to Jimmy, aged 51, lie in the subway near Waterloo in London, Britain, December 17, 2017. REUTERS/Mary Turner The spot belonging to a homeless person is marked up outside Westminster Station in London, Britain, December 17, 2017. REUTERS/Mary Turner A homeless man lies in his sleeping bag in the rain in Westminster in London, Britain, December 17, 2017. REUTERS/Mary Turner Cardboard marks the spot belonging to a homeless person, near Hyde Park in London, Britain, December 5, 2017. REUTERS/Mary Turner Bedding and possessions belonging to Andrew, aged 31, lie at the spot where he lives under Waterloo Bridge in London, Britain, October 26, 2017. REUTERS/Mary Turner Bedding and possessions belonging to Jojo and Andrew lie where they live, under Waterloo Bridge in London, Britain, November 9, 2017. REUTERS/Mary Turner Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

"While we appreciate those who volunteer to provide additional resources in the community, Mr. Schiller's house does not comply with codes and regulations that guard against potential dangers such as carbon monoxide poisoning, inadequate light and ventilation, and insufficient exits in the event of a fire," Molly Center, a city spokesperson, said.

On Tuesday, Schiller said he was visited by city officials and police who handed him a warrant detailing his basement's ceiling height, which they said was too low for the city's standard and added that his windows were too high and small.

“They shut me down and said I have 24 hours to return my basement to storage and take down - I have several cots with sleeping bags for everybody – or they’ll condemn the house,” Schiller said.

Schiller told the local station he made his basement available when another shelter wasn't.

"I'm trying to help these people get out of the cold," Schiller said. "There's not a lot of help for them as far as places to lay their heads."

SEE ALSO: There are now robots chasing away homeless people in San Francisco

However, Center contended that there are several shelters in the city that provide safe spaces for homeless people to go.

"In times of extreme temperature, temporary locations open within the community that all conform to regulations and codes," Center said.

Though Schiller said he'll stop offering his home to those without one, he won't stop looking for other options to care for the homeless.

More from :

Homeless hero admits to robbing Manchester bombing victims

Six-alarm fire rips through Bronx building, injuring 16

Have you seen these paintings? $10 million reward offered for artwork stolen in 1990