I made a script and I have one problem. When I activate it, its ok, its working perfectly - but now I don't know how to write a code to deactivate it.
This is my script:
Code: Select all
[ENABLE]
aobscanmodule(no_hud_and_no_icons,Asphalt8.exe,FF 50 0C 83 7F 14 02 75 25 83 BF C8 05 00 00 01) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
cmp [edi+14],C
jb nohudnoicons
code:
cmp dword ptr [edi+14],02
jne Asphalt8.exe+2C8F51
jmp return
nohudnoicons:
push edi
mov [edi+14],2
pop edi
jmp code
no_hud_and_no_icons+3:
jmp newmem
nop
return:
registersymbol(no_hud_and_no_icons)
[DISABLE]
"Asphalt8.exe"+2C8F26:
mov [edi+14],1
no_hud_and_no_icons:
db FF 50 0C 83 7F 14 02 75 25 83 BF C8 05 00 00 01
unregistersymbol(no_hud_and_no_icons)
dealloc(newmem)
I am waiting for your advices.
Thank you.