CLEO Help can this block of script from ahk can be converted to cleo? how?

CLEO related

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
0.3.7 sir
Without Sampfuncs:

PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: 0@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 0@ == 9 // SAMP_IS_READY

0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/mi"

while true
wait 5000
    0AB1: @SEND_CMD 1 text 1@
end

:SEND_CMD
{
    0AB1: @SEND_CMD 1 text 0@
    0.3.7 - R1
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x65C60
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0

Some snippets from @Parazitas and @springfield
 

Guel

Member
Joined
Aug 8, 2020
Messages
20
Reaction score
1
Location
Philippines
Without Sampfuncs:

PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: 0@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 0@ == 9 // SAMP_IS_READY

0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/mi"

while true
wait 5000
    0AB1: @SEND_CMD 1 text 1@
end

:SEND_CMD
{
    0AB1: @SEND_CMD 1 text 0@
    0.3.7 - R1
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x65C60
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0

Some snippets from @Parazitas and @springfield
Thanks mate, is there anything I can do to make it stop?
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
Thanks mate, is there anything I can do to make it stop?
pressing f2:
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: 0@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 0@ == 9 // SAMP_IS_READY

0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/mi"

31@ = 0

while true
wait 0
    if 0AB0:   is_key_pressed 113 //F2
    then
        if 31@ == 0
        then
            31@ = 1
            32@ = 0 //initialize timer
            0ACD: show_text_highpriority "~g~Activated" time 1000
        else
            31@ = 0
            0ACD: show_text_highpriority "~r~Desactivated" time 1000
        end
        wait 1000
    end
   
    if and
        31@ == 1
        32@ >= 5000 //check timer
    then
        0AB1: @SEND_CMD 1 text 1@
        32@ = 0 //reset timer
    end
end

:SEND_CMD
{
    0AB1: @SEND_CMD 1 text 0@
    0.3.7 - R1
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x65C60
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
 
Top