Ignore replay and sourcetv in @spec targeting. (#595)

This commit is contained in:
Ruben Gonzalez 2017-03-11 11:12:43 -05:00 committed by Asher Baker
parent 1135f9024a
commit 89c4be525b

View File

@ -448,7 +448,7 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
for (int i = 1; i <= playerhelpers->GetMaxClients(); i++)
{
IGamePlayer *player = playerhelpers->GetGamePlayer(i);
if (player == NULL || !player->IsInGame())
if (player == NULL || !player->IsInGame() || player->IsSourceTV() || player->IsReplay())
continue;
IPlayerInfo *plinfo = player->GetPlayerInfo();
if (plinfo == NULL)