Couch/EventNotifier changes

This commit is contained in:
2026-10-08 16:28:13 +01:00
parent 54a921c1a5
commit 82d16c163a
3 changed files with 53 additions and 12 deletions
+5 -1
View File
@@ -639,12 +639,16 @@ bool IsClientRefused(int couch, int client, bool notify = true)
return false;
}
// Without the playtime plugin nobody is refused.
// Without the playtime plugin nobody is refused. Admins (ADMFLAG_GENERIC by default) skip the
// tier check; change who with an admin override on "sm_couch_tier_bypass".
bool MeetsTier(int client, int required)
{
if (required <= 0)
return true;
if (CheckCommandAccess(client, "sm_couch_tier_bypass", ADMFLAG_GENERIC))
return true;
if (GetFeatureStatus(FeatureType_Native, "GetPlayerTier_native") != FeatureStatus_Available)
return true;