diff --git a/extension.cpp b/extension.cpp index bb5b30f..aef1f6a 100644 --- a/extension.cpp +++ b/extension.cpp @@ -150,7 +150,7 @@ DETOUR_DECL_STATIC6(Detour_SendTo, int, int, s, char *, buf, int, len, int, flag { IGamePlayer *pPlayer = playerhelpers->GetGamePlayer(index); - if (pPlayer != NULL && pPlayer->IsInGame() && !pPlayer->IsSourceTV()) + if (pPlayer != NULL && pPlayer->IsConnected() && pPlayer->IsInGame() && !pPlayer->IsSourceTV()) { g_PlayerReplyPacket.WriteByte(iPlayers); g_PlayerReplyPacket.WriteString(pPlayer->GetName());