diff --git a/ConnectAnnounce/scripting/ConnectAnnounce.sp b/ConnectAnnounce/scripting/ConnectAnnounce.sp index 1e870004..1dee3873 100644 --- a/ConnectAnnounce/scripting/ConnectAnnounce.sp +++ b/ConnectAnnounce/scripting/ConnectAnnounce.sp @@ -375,7 +375,7 @@ public void TQueryCB(Handle owner, Handle rs, const char[] error, any data) CPrintToChatAll(sRawMsg); for(int i = 1; i <= MaxClients; i++) { - if(!g_bHideCsays[i] && IsClientConnected[i]) + if(!g_bHideCsays[i] && IsClientInGame(i)) { PrintCenterText(i, "%s %s %s", "[VIP]", sName, "connected"); } @@ -387,7 +387,7 @@ public void TQueryCB(Handle owner, Handle rs, const char[] error, any data) CPrintToChatAll(sFinalMessage); for(int i = 1; i <= MaxClients; i++) { - if(!g_bHideCsays[i] && IsClientConnected[i]) + if(!g_bHideCsays[i] && IsClientInGame(i)) { CRemoveTags(sCustomMessage, 256); PrintCenterText(i, "%s %s %s %s", "[VIP]", sName, "connected", sCustomMessage);