Question for Christians #2

Why is it ok for god to not obey his own commandments but we are expected to? The two I’m referring to are murder and coveting. We are not supposed to kill but he killed just about everyone in the flood, and we’re not supposed to be jealous or covet but he calls himself a jealous god and we are not allowed to have other gods or worship anything or anyone else. Just in case somebody decides to bring it up, I’m not saying we should be allowed to kill, I’m saying this god has some double standards.