diff --git a/addons/source-python/packages/source-python/weapons/restrictions.py b/addons/source-python/packages/source-python/weapons/restrictions.py index 44132fd3a..f9d484be6 100644 --- a/addons/source-python/packages/source-python/weapons/restrictions.py +++ b/addons/source-python/packages/source-python/weapons/restrictions.py @@ -190,6 +190,10 @@ def __getitem__(self, item): raise KeyError( '"{0}" is neither a team number nor an alias.'.format(item)) + def clear(self): + for x in self.values(): + x.clear() + class WeaponRestrictionHandler(AutoUnload): """Class used to handle player and team restrictions.""" @@ -203,8 +207,8 @@ def __init__(self): def clear(self): """Remove all team and player restrictions.""" - self.team_restrictions.clear() self.player_restrictions.clear() + self.team_restrictions.clear() def add_player_restrictions(self, player, *weapons): """Add the weapons to the player's restriction set.