How do you make players not attack you like snow braw

how do you make players not attack you like in snow braw you can attack other players more like one way out you can’t attack players but you can attack the mobs so please help

It’s kind of difficult to figure out what you’re talking about, but there is an option in map settings for team assignment (under the Teams category). Set Teams to Cooperative, and players should only be able to attack enemy sentries.

thank you that will help me a lote