I have a problem with remove_team_restrictions, it doesn't work. I tried to remove the restriction after having restricted team but the weapon still restricted.
Code :
This is not my real code but i used that to restrict and unrestrict.
If you need the whole plugin tell me.
Syntax: Select all
_scout = ['ssg08']
_all_weapons = set(weapon.name for weapon in WeaponClassIter())
restrict_handler = WeaponRestrictionHandler()
restrict_handler.add_team_restrictions(3, *_scout)
restrict_handler.remove_team_restrictions(3, *_all_weapons)
Maybe somethings is wrong ?
Sincercly Existenz.