bool PlayerIsConnected(int player)
Returns true if the specified player is connected to the server.
It works by calling PlayerInGame and PlayerIsSpectator. If both return false, the player is not connected.