Fix @spec not targeting clients in unassigned team.

This commit is contained in:
BotoX
2024-06-09 17:33:19 +02:00
committed by zaCade
parent 1d999c3984
commit b31375f087
+1 -1
View File
@@ -512,7 +512,7 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
IPlayerInfo *plinfo = player->GetPlayerInfo();
if (plinfo == NULL)
continue;
if (plinfo->GetTeamIndex() == 1 &&
if ((plinfo->GetTeamIndex() == 0 || plinfo->GetTeamIndex() == 1) &&
playerhelpers->FilterCommandTarget(pAdmin, player, info->flags) ==
COMMAND_TARGET_VALID)
{