CLEO Help Is there a working auto signcheck for Horizon roleplay?

CLEO related
Status
Not open for further replies.

adnan

Member
Joined
Mar 22, 2014
Messages
19
Reaction score
0
I know this is not the request section, but I didn't think it would fit there since I am not necessarily asking someone to make one, wondering if there's one around available for public. The one that was made on Ugbase about a year ago seems to be patched.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
881
Location
Lithuania
PHP:
{$CLEO .cs}

0000:

repeat
wait 50
until 0AFA:  is_samp_available

while true
wait 0

if
0B4C: samp is_dialog_active -1
then
    0AC8: 3@ = allocate_memory_size 260
    0BD8: samp get_dialog_caption 3@ 
    if 
    0C14: strcmp string1 "Sign check" string2 3@ //comparing 
    then
        0AC8: 0@ = allocate_memory_size 260
        0BD7: samp get_dialog_text 0@
        0AC8: 1@ = allocate_memory_size 260
        0AB1: call_scm_func @get_digits_to_print param_count 2 text 0@ memory_to_store_digits_as_text 1@
        0B4B: 1@
    end
end

end


:get_digits_to_print
{
    0@ = text
    1@ = pointer to memory where digits will be stored as text
}
0C17: 31@ = strlen 0@
    for 30@ = 0 to 31@    
        0085: 29@ = 0@ // copy pointer
        005A: 29@ += 30@  // add offset (as the loop progresses it becomes pointers to first-last character)
        0A8D: 28@ = read_memory 29@ size 1 virtual_protect 1 // 28@ is the ascii number representing character
        if and
        28@ >= 0x30 // '0' 
        28@ <= 0x39 // '9' 
        then
        0A8C: write_memory 1@ size 1 value 28@ virtual_protect 1
        1@ += 1 // move to next address
        end
    end
0A8C: write_memory 1@ size 1 value 0 virtual_protect 1 // null-termination   
0AB2: ret 0
 

Zerotobey

Active member
Joined
Feb 11, 2014
Messages
77
Reaction score
0
Do you have sampfuncs installed in sanny builder? it should work
I installed sampfuncs and I got no errors when I complied it, however when I put it in my cleo folder it just crashes my gta after the samp menu pops up. Any ideas?
 
Status
Not open for further replies.
Top