Hi.
I trying send fake press to increase hydra speed, but don't work .. maybe know why?
I trying send fake press to increase hydra speed, but don't work .. maybe know why?
Code:
{$CLEO .cs}
0B34: "hydra" @Hydra
thread "FakePressHydra"
0000: NOP
9@ = 0
:Hydra_45
wait 0
if 9@ == 1
then
if and
0AB0: key_pressed 87
8B21: not samp is_chat_opened
then
wait 1
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x2E {Delete}
wait 200
end
end
jump @Hydra_45
:Hydra
if 9@ == 0
then
wait 1000
printf "~b~Hydra: ~r~ON~b~" time 1500
wait 1750
9@ = 1
else
wait 1000
printf "~b~Hydra: ~r~OFF~b~!" time 1500
wait 1750
9@ = 0
end
SAMP.CmdRet
//// Snippet
:FAKE_KEYPRESS
1@ = 0xB73458
005A: 1@ += 0@ // (int)
0A8C: write_memory 1@ size 1 value 255 virtual_protect 0
0AB2: ret 0