How to limit spray upload size in CS 1.6
Type sv_uploadmax 0.1 in the server console to refuse player uploads such as sprays over 0.1 MB. The default is 0.5.
sv_uploadmax
Largest file, in megabytes, a player may upload to the server, such as a spray.
sv_uploadmax <megabytes> Examples
sv_uploadmax 0.5 Default value.
sv_uploadmax 0.1 Tighter limit for spray uploads.
Arguments
megabytesRequired- Maximum upload size in megabytes.
What it does
Uploads larger than this are refused. Sprays are small, so the default of 0.5 MB is plenty. Lower it to keep the custom.hpk file small, or block uploads entirely with sv_allowupload 0.
Good to know
- Changes are announced to players in chat because the cvar has the server-notify flag.
Run it on your server
On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to cstrike/server.cfg. New to this? Start a CS 1.6 server first.
Your own
CS 1.6 server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.