added second autism bot protection

This commit is contained in:
christian 2021-04-06 01:51:41 +02:00
parent d80a354e18
commit d37cd0390a

View File

@ -53,7 +53,7 @@ public void OnPluginStart()
HookEvent("player_hurt", OnPlayerHurt, EventHookMode_Pre);
ConVar cvar;
HookConVarChange((cvar = CreateConVar("sm_player_afk_time", "120", "AFK Time in seconds after which a player won't turn into a motherzombie")), Cvar_AFKTime);
HookConVarChange((cvar = CreateConVar("sm_player_afk_time", "120", "AFK Time in seconds after which a player wont turn into a motherzombie")), Cvar_AFKTime);
g_iAFKTime = cvar.IntValue;
HookConVarChange((cvar = CreateConVar("sm_zombieshield", "1", "1 = Zombie Shield activated, 0 = Zombie Shield deactivated", FCVAR_NONE, true, 0.0, true, 1.0)), Cvar_ZombieShield);
g_bShield = cvar.BoolValue;
@ -251,7 +251,7 @@ public Action ZR_OnClientMotherZombieEligible(int client)
char sAuthID[32];
GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID)); //autism bot
if(GetClientIdleTime(client) > g_iAFKTime || IsFakeClient(client) || bHasItem || StrEqual(sAuthID, "STEAM_0:1:60189040"))
if(GetClientIdleTime(client) > g_iAFKTime || IsFakeClient(client) || bHasItem || StrEqual(sAuthID, "STEAM_0:1:60189040") || StrEqual(sAuthID, "STEAM_0:0:518094602"))
return Plugin_Handled;
return Plugin_Continue;
@ -558,4 +558,4 @@ public Action Timer_UpdateHintMessage(Handle timer)
}
return Plugin_Continue;
}
}