2023-01-02, 01:25 AM
2023-01-02: y_groups Permissions
There are three permission types in y_groups - ALLOW, DENY, and UNDEF
The first one, ALLOW, corresponds to true and means people in the group can use the entity in question:
The last one, UNDEF, corresponds to false and means the group has no setting for the entity. People in this group may or may not be able to use it, determined by other groups. It is also "don't care":
The second one, DENY, corresponds to cellmin and means people in the group absolutely cannot use the entity in question. If a player is in two groups - one ALLOW and one DENY on the same entity, the DENY will take precedence and stop them using the entity:
Ideally DENY would have been false and UNDEF cellmin, but that can't be because of backwards-compatibility.
There are three permission types in y_groups - ALLOW, DENY, and UNDEF
The first one, ALLOW, corresponds to true and means people in the group can use the entity in question:
Quote:
Group_SetClass(group, class, ALLOW);
The last one, UNDEF, corresponds to false and means the group has no setting for the entity. People in this group may or may not be able to use it, determined by other groups. It is also "don't care":
Quote:
Group_SetClass(group, class, UNDEF);
The second one, DENY, corresponds to cellmin and means people in the group absolutely cannot use the entity in question. If a player is in two groups - one ALLOW and one DENY on the same entity, the DENY will take precedence and stop them using the entity:
Quote:
Group_SetClass(group, class, DENY);
Ideally DENY would have been false and UNDEF cellmin, but that can't be because of backwards-compatibility.