diff --git a/PlayerManager/scripting/PlayerManager_Connect.sp b/PlayerManager/scripting/PlayerManager_Connect.sp index 07aaadc6..98493136 100644 --- a/PlayerManager/scripting/PlayerManager_Connect.sp +++ b/PlayerManager/scripting/PlayerManager_Connect.sp @@ -260,7 +260,11 @@ public EConnect OnClientPreConnectEx(const char[] sName, char sPassword[255], co //---------------------------------------------------------------------------------------------------- public void OnClientPutInServer(int client) { - CreateTimer(g_hCvar_AuthenticationTime.FloatValue, CheckAuth, GetClientSerial(client), TIMER_FLAG_NO_MAPCHANGE); + float fAuthenticationTime = g_hCvar_AuthenticationTime.FloatValue; + if (fAuthenticationTime == -1.0) + return; + + CreateTimer(fAuthenticationTime, CheckAuth, GetClientSerial(client), TIMER_FLAG_NO_MAPCHANGE); } //----------------------------------------------------------------------------------------------------