replaced kickclient with just having the client auto retry when steamID is pending
This commit is contained in:
parent
1cbbeecdb8
commit
6244beff71
@ -328,17 +328,21 @@ public void OnClientPostAdminCheck(int client)
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
public Action CheckAuth(Handle timer, int data)
|
public Action CheckAuth(Handle timer, int data)
|
||||||
{
|
{
|
||||||
int client;
|
int client;
|
||||||
if ((client = GetClientFromSerial(data)) == 0)
|
if ((client = GetClientFromSerial(data)) == 0)
|
||||||
return Plugin_Stop;
|
return Plugin_Stop;
|
||||||
|
|
||||||
char sAuthID[32];
|
char sAuthID[32];
|
||||||
if(!GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID), true))
|
if(!GetClientAuthId(client, AuthId_Steam2, sAuthID, sizeof(sAuthID), true))
|
||||||
{
|
{
|
||||||
LogMessage("%L could not be assigned to a SteamID, kicking client.", client);
|
LogMessage("%L could not be assigned to a SteamID, kicking client.", client);
|
||||||
KickClient(client, "Invalid STEAMID");
|
//KickClient(client, "Invalid STEAMID");
|
||||||
}
|
if (IsClientConnected(client) && !IsFakeClient(client) && !IsClientSourceTV(client))
|
||||||
return Plugin_Stop;
|
{
|
||||||
|
ClientCommand(client, "retry");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return Plugin_Stop;
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user