From ccb87ec73898099d39c436f7e67d93fc06e6cddc Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 24 Aug 2024 14:40:55 +0200 Subject: [PATCH] outcommented automatic retrying again. in the future we just restricting pending steam ID in knifeban, entwatch, bhopping etc etc --- PlayerManager/scripting/PlayerManager_Connect.sp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index 863167ce..30627d5a 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -52,7 +52,7 @@ public void OnPluginStart() g_hCvar_BlockSpoof = CreateConVar("sm_manager_block_spoof", "1", "Kick unauthenticated people that join with known steamids.", FCVAR_NONE, true, 0.0, true, 1.0); g_hCvar_BlockAdmin = CreateConVar("sm_manager_block_admin", "1", "Should unauthenticated people be blocked from admin?", FCVAR_NONE, true, 0.0, true, 1.0); g_hCvar_BlockVoice = CreateConVar("sm_manager_block_voice", "1", "Should unauthenticated people be blocked from voice?", FCVAR_NONE, true, 0.0, true, 1.0); - g_hCvar_AuthenticationTime = CreateConVar("sm_manager_authentication_time", "15", "Time in seconds after which a client needs to be assigned to a SteamID", FCVAR_NONE, true, -1.0); + g_hCvar_AuthenticationTime = CreateConVar("sm_manager_authentication_time", "15", "Time in seconds after which a client needs to be assigned to a SteamID", FCVAR_NONE, true, 1.0); AddMultiTargetFilter("@steam", Filter_Steam, "Steam Players", false); AddMultiTargetFilter("@nosteam", Filter_NoSteam, "No-Steam Players", false); @@ -260,11 +260,7 @@ public EConnect OnClientPreConnectEx(const char[] sName, char sPassword[255], co //---------------------------------------------------------------------------------------------------- public void OnClientPutInServer(int client) { - float fAuthenticationTime = g_hCvar_AuthenticationTime.FloatValue; - if (fAuthenticationTime == -1.0) - return; - - CreateTimer(fAuthenticationTime, CheckAuth, GetClientSerial(client), TIMER_FLAG_NO_MAPCHANGE); + //CreateTimer(g_hCvar_AuthenticationTime.FloatValue, CheckAuth, GetClientSerial(client), TIMER_FLAG_NO_MAPCHANGE); } //---------------------------------------------------------------------------------------------------- @@ -321,12 +317,14 @@ public void OnClientPostAdminCheck(int client) char sAuthID[32]; GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID), false); + /* if(!SteamClientAuthenticatedEx(sAuthID)) { LogMessage("%L was not authenticated with steam, muting client.", client); BaseComm_SetClientMute(client, true); return; } + */ } //---------------------------------------------------------------------------------------------------- @@ -464,7 +462,7 @@ public void SQL_OnQueryCompleted(Database db, DBResultSet results, const char[] else { LogAction(client, -1, "\"%L\" tried to join with a legitimate steamid while not authenticated with steam. Refusing connection, IPs dont match. (Known: %s | Current: %s)", client, sResultAddress, sAddress); - KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam."); + //KickClient(client, "Trying to join with a legitimate steamid while not authenticated with steam."); return; } }