public client_putinserver(id) // In this phase the user can be affected by the commands { new auth[32]; get_user_authid(id, auth, sizeof (auth)); new Handle:query = SQL_PrepareQuery(g_sql, "SELECT * FROM `users` WHERE (`steam_id` = '%s')", auth); SQL_Execute(query); if (!SQL_NumResults( query)) // If no results found, kick the player { server_cmd("kick #%i ^"%s^"", get_user_userid(id), restrict_msg); } SQL_FreeHandle(query); // Free the query }