Ignore replay and sourcetv in @spec targeting. (#595)
This commit is contained in:
parent
1135f9024a
commit
89c4be525b
@ -448,7 +448,7 @@ bool SDKTools::ProcessCommandTarget(cmd_target_info_t *info)
|
|||||||
for (int i = 1; i <= playerhelpers->GetMaxClients(); i++)
|
for (int i = 1; i <= playerhelpers->GetMaxClients(); i++)
|
||||||
{
|
{
|
||||||
IGamePlayer *player = playerhelpers->GetGamePlayer(i);
|
IGamePlayer *player = playerhelpers->GetGamePlayer(i);
|
||||||
if (player == NULL || !player->IsInGame())
|
if (player == NULL || !player->IsInGame() || player->IsSourceTV() || player->IsReplay())
|
||||||
continue;
|
continue;
|
||||||
IPlayerInfo *plinfo = player->GetPlayerInfo();
|
IPlayerInfo *plinfo = player->GetPlayerInfo();
|
||||||
if (plinfo == NULL)
|
if (plinfo == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user