Skip to content
/SLASHPLAY

How to enable cheats in Half-Life 2: Deathmatch

Type sv_cheats 1 in the Console tab of your server page; sv_cheats 0 turns them off again.

sv_cheats

Allows cheat commands such as noclip, god and give on the server. Off by default.

sv_cheats <0|1>

Examples

sv_cheats 1

Cheats on.

sv_cheats 0

Cheats off.

Values

ValueWhat it does
0Default Off
1 On

Arguments

0|1Required
1 turns it on, 0 turns it off.

What it does

Needed for testing and practice. Every setting marked cheat goes back to its default when you turn it off.

Good to know

  • Typed in the Console tab, it applies at once to everyone on the server.

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 hl2mp/cfg/server.cfg. New to this? Start a HL2DM server first.

Your own
HL2DM server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.