We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff92726 commit 4b91bb1Copy full SHA for 4b91bb1
addons/source-python/packages/source-python/filters/players.py
@@ -98,9 +98,9 @@ def __init__(self, team):
98
"""Store the team number for future use."""
99
self.team = team
100
101
- def _player_is_on_team(self, playerinfo):
+ def _player_is_on_team(self, edict):
102
"""Return whether the player is on the team."""
103
- return playerinfo.get_team_index() == self.team
+ return playerinfo_from_edict(edict).get_team_index() == self.team
104
105
106
# =============================================================================
0 commit comments