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

This commit is contained in:
Ruben Gonzalez
2017-03-11 16:12:43 +00:00
committed by Asher Baker
parent 1135f9024a
commit 89c4be525b
+1 -1
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)