outcommented automatic retrying again. in the future we just restricting pending steam ID in knifeban, entwatch, bhopping etc etc

This commit is contained in:
jenz 2024-08-24 14:40:55 +02:00
parent 789e8d4bf3
commit ccb87ec738

View File

@ -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;
}
}