local se = require("samp.events")
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand("nodig", function()
on = not on
end)
wait(-1)
end
function se.onShowDialod(id, style, title, b1, b2, text)
if on then
return false
end
end