AFKManager: give connecting players a 30 seconds time window before performing any AFK related actions
This commit is contained in:
parent
6f13eb0383
commit
351ed3b7ee
@ -168,7 +168,7 @@ void InitializePlayer(int client)
|
|||||||
if(!(g_iImmunity == 1 && CheckAdminImmunity(client)))
|
if(!(g_iImmunity == 1 && CheckAdminImmunity(client)))
|
||||||
{
|
{
|
||||||
ResetPlayer(client);
|
ResetPlayer(client);
|
||||||
g_Players_iLastAction[client] = GetTime();
|
g_Players_iLastAction[client] = GetTime() + 30;
|
||||||
g_Players_bEnabled[client] = true;
|
g_Players_bEnabled[client] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user