How to disable dynamite in GMod
Type toolmode_allow_dynamite 0 in the server console to disable the Dynamite tool for everyone on the server; 1 allows it again.
toolmode_allow_dynamite
Toggles whether players can use the Dynamite tool from the tool gun.
toolmode_allow_dynamite <0|1> Examples
toolmode_allow_dynamite 0 Disable the dynamite tool.
Values
| Value | What it does |
|---|---|
| 0 | Off |
| 1Default | On |
Arguments
0|1Required- 1 allows the tool, 0 disables it.
What it does
Set to 0 to disable the Dynamite tool for everyone on the server. Turn it off to stop players placing explosives, which are a common griefing tool. Every Sandbox tool has a matching toolmode_allow_<tool> setting.
The game's own description: Set to 0 to disallow players being able to use the 'dynamite' tool.
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 garrysmod/cfg/server.cfg. New to this? Start a GMod server first.
Your own
GMod server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.