Skip to content
/SLASHPLAY

How to limit custom.hpk size in CS 1.6

Type hpk_maxsize 2 in the server console and the spray cache custom.hpk is reset once it passes 2 MB. 0 turns the limit off.

hpk_maxsize

Maximum size in megabytes of the custom.hpk file that stores player sprays. 0 means no limit.

hpk_maxsize <megabytes>

Examples

hpk_maxsize 4

The default limit.

hpk_maxsize 2

Keep the spray cache smaller.

Arguments

megabytesRequired
Size limit in megabytes. 0 disables the limit.

What it does

Player spray logos are cached in custom.hpk. When the file grows past this size, the engine deletes it and starts a new one, so the file cannot fill the disk over time. Raise it if you want sprays kept longer, or set 0 to turn the check off.

Good to know

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.