thanks for reply me i know sv_cheats 0 help
but i use sv_cheats 1 for impulse 101 in my cafe we play this game just a Lan mod
but some azz guys use shift+f1 for do cheats
please can you find the name of Dialog panel for edit or delete it from Scripts or resource
or how i can extract all Dialog for search for it
thank you
I will show you how to make life harder for those azz guys. I think that there is no build in options to prevent opening debug menu while "sv_cheats" cvar is enabled, to do so, you will need a third party application called
[color="#0000FF"]autohotkey. You can download it
[color="#0000FF"]here.
step 1 : install autohotkey
step 2 : create autohotkey file called "
SayNoToCheats.ahk" anywhere (desktop...)
step 3 : open "
SayNoToCheats.ahk" file with your favorite text editor (notepad...) and copy paste this script into ahk file.
#NoEnv
#SingleInstance, force
SendMode Input
SetTimer, WatchCSS, 250
`:: ; disable console (default bind)
+F1:: ; disable cheats menu
return
WatchCSS:
WinGet, strProcessName, ProcessName, A
if (strProcessName = "hl2.exe")
Suspend, off
else
Suspend, on
return
step 4 : save and close file.
step 5 : mouse right click on afk file to open file context menu and select "Compile Script". This will convert ahk script into executable binary file (exe).
step 6 : copy exe on any (computer, folder) you want.
step 7 : create and place shortcut in "Startup" folder
That's it, now you have application which blocks "`" and "shift + F1" keys while "hl2.exe" process is running.
In case you're too lazy, you can download already compiled
[color="#0000FF"]SayNoToCheats.exe.