ザマだ

not a standard Japanese expression; possibly a mistaken spelling of ようだ ("seems; appears to be") or さまだ ("Lord/Lady, " as in ユパさま), depending on context

→ 様
phrase Uncommon #9,404
not a standard Japanese expression; possibly a mistaken spelling of ようだ ("seems; appears to be") or さまだ ("Lord/Lady," as in ユパさま), depending on context ザマだ itself is not the standard spelling for either use. The examples expressing appearance or inference use 様だ/ようだ, while さまだ is an honorific form meaning “Lord” or “Lady.” The exact term ザマだ may be a typo, transcription error, or nonstandard rendering.
JA: 「ザマだ」は標準的な日本語表記ではない。
EN: “ザマだ” is not a standard Japanese spelling.

とんだザマだ

What a sorry state you're in.

— グッドフェローズ (1990)

わしこのザマだ

Look at me now.

— 風の谷のナウシカ (1984)

いいザマだ

Serves you right.

— ファイト・クラブ (1999)

何てザマだ

What a sorry sight!

— ワンス・アポン・ア・タイム・イン・ハリウッド (2019)

泣く黙る斧頭会何てザマだ

The Axe Gang, feared enough to silence even crying children—look at the sorry state you're in!

— カンフーハッスル (2004)