Check who controls the server
You can change server settings in your own local practice session. On someone else’s server, the administrator controls those rules. If the console rejects the change because of permissions, ask the administrator to adjust the session.
Change mp_autokick
In the local session, enter mp_autokick without an argument and note its value. Then enter mp_autokick 0. Leave the player idle for your test period and check that the connection remains active.
Account for other checks
The mp_autokick description covers idle players, team damage and team kills. A server with plugins may have its own AFK check. To restore the usual behavior, enter mp_autokick 1 or restore the value you saved.