Winton man posted a video online threatening to shoot up a school, sheriff says.

Carlos Aguilar, 29
Carlos Aguilar, 29

A 29-year-old Winton man with a lengthy arrest history landed behind bars in recent weeks after deputies said he threatened to open fire at a school.

Carlos Garcia Aguilar, who was arrested Feb. 21, later apologized to investigators and said he was "very intoxicated" on alcohol and marijuana when he made the online video in which he "said stupid s--- I didn't mean," according to a statement from the Sheriff's Office.

Aguilar did not threaten any specific school by name, Deputy Daryl Allen said.

“Threats of any kind against a school will not be tolerated," Sheriff Vern Warnke said in a statement. "The purpose of this post is to inform the public that law enforcement and social media sites are working together and communicating with each other to keep the children and community safe."

He also told deputies he was communicating with people online who were "antagonizing and making fun of him," officials said, which made him upset.

Aguilar posted videos he made saying, “if I do stupid s--- they would need to kill me on the spot and the cops would Swiss cheese me instantly,” according to deputies. He continued: “now I know why that white boy Eric Harris from Columbine made the basement tapes because no one would cut him off and no one would take his camera.”

When deputies went to his home he began fighting them, police said, and was booked into the Merced County Jail.

Sgt. Kevin Blake was notified by social media administrators on Feb. 21 that Carlos Aguilar was making threats on social media to shoot up a school, deputies said in a news release.

The threat was "shut down" by social media sites before any school was mentioned, police confirmed.

Aguilar said he would not act on anything he said or shoot up a school, deputies said, and he admitted he “said some things and thinking things he should not have been thinking about."

He did not have any guns in his possession when he was arrested, Allen confirmed.

Aguilar remained in custody Thursday on $50,000 bail.

Jail records show Aguilar has been arrested nearly a dozen times since May of last year, mostly involving misdemeanor public drunkenness, as well as allegations of obstructing public officials, trespassing and possession of a dagger.

Anyone with information about possible threats can contact the Merced County Sheriff’s Office at 209-385-7445.

Monica Velez: 209-385-2486, @monicavelez21