CLEO Help [HELP] Hydra.cs

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Hi.
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
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
http://gtaforums.com/topic/194199-documenting-gta-sa-memory-addresses/?p=1059674630

+ 0x20 16 Accelerate 255 0
+ 0x1C 14 Brake/reverse 255 0

+ 0x4 2 Special CTRL right 128 0
+ 0x5 ^ Special CTRL left 128 0
+ 0x6 3 Special CTRL down 128 0
+ 0x7 ^ Special CTRL up 128 0
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
monday said:
http://gtaforums.com/topic/194199-documenting-gta-sa-memory-addresses/?p=1059674630

+ 0x20 16 Accelerate 255 0
+ 0x1C 14 Brake/reverse 255 0

+ 0x4 2 Special CTRL right 128 0
+ 0x5 ^ Special CTRL left 128 0
+ 0x6 3 Special CTRL down 128 0
+ 0x7 ^ Special CTRL up 128 0

Like that?:

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 0@
            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
0@ = 0xB73458 
0@ += 0x20 
0A8C: write_memory 0@ size 1 value 255 virtual_protect 0
0AB2: 0
 
Status
Not open for further replies.
Top