View Single Post
fragnichtnach
AlliedModders Donor
Join Date: Oct 2008
Old 05-20-2017 , 13:25   Re: What is this???
Reply With Quote #10

Sourcemod is saying that the "stuck-client" is not connected! I tested it on a server where 24/24 slots were filled up. 23 are answering, that they are connected and one is not answering.

I try to kick this clientid, but even KickClient is not working for that clientid.

Code:
public OnPluginStart()
{
	new save_i;
	for(new i=1;i<25;i++)
	{
		if (IsClientConnected(i))
		{
			if(IsFakeClient(i))
			{
				LogError("[StuckClientDebug] FakeClient %d is connected %f", i, GetClientTime(i));
			}
			else if (IsClientObserver(i))
			{
				LogError("[StuckClientDebug] Observer %d is connected %f", i, GetClientTime(i));
			}
			else if (IsClientTimingOut(i))
			{
				LogError("[StuckClientDebug] TimingOut %d is connected %f", i, GetClientTime(i));
			}
			else if (IsClientReplay(i))
			{
				LogError("[StuckClientDebug] TimingOut %d is connected %f", i, GetClientTime(i));
			}
			else if (IsClientInKickQueue(i))
			{
				LogError("[StuckClientDebug] TimingOut %d is connected %f", i, GetClientTime(i));
			}
			else if (IsClientSourceTV(i))
			{
				LogError("[StuckClientDebug] TimingOut %d is connected %f", i, GetClientTime(i));
			}
			else
			{
				LogError("[StuckClientDebug] Nothing %d is connected %f", i, GetClientTime(i));
			}				
		}
		else
		{
			save_i = i;
		}
	}
	KickClient(save_i, "Console: Bug");
}
I think a process is frozen while client is connecting and it isn't yet full connected.
fragnichtnach is offline