Flag afk when player timed-out

This commit is contained in:
Arda Demir 2020-08-10 21:56:08 +03:00
parent 8239836a02
commit fabc194081

View file

@ -220,6 +220,8 @@ void CPlayer::Tick()
if(Server()->GetNetErrorString(m_ClientID)[0])
{
m_Afk = true;
char aBuf[512];
str_format(aBuf, sizeof(aBuf), "'%s' would have timed out, but can use timeout protection now", Server()->ClientName(m_ClientID));
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);