CLEO Help Need help with script

CLEO related
Status
Not open for further replies.

lessiendzel

New member
Joined
Jul 31, 2020
Messages
4
Reaction score
0
Location
Wuhan
Hello i have this script it's a wallhack and i'm having trouble making the script work with a command, can you guys edit it and make it activate and deactivate with the command "/wallz"


Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 6.14.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
thread "SPRINGFIELD"
wait 5000
0AB1: call_scm_func @SPRINGFIELD_639 0
31@ = 0

:SPRINGFIELD_39
wait 0
if and
0AB0:   key_pressed 188
0AB0:   key_pressed 51
jf @SPRINGFIELD_195
0B12: 31@ = 31@ XOR 1
if
  31@ == 1
jf @SPRINGFIELD_138
0AB1: call_scm_func @SPRINGFIELD_260 0
0AD1: show_formatted_text_highpriority "LESSYANGEL ~G~<3" time 1337
wait 200
jump @SPRINGFIELD_195

:SPRINGFIELD_138
if
  31@ == 0
jf @SPRINGFIELD_195
0AB1: call_scm_func @SPRINGFIELD_420 0
0AD1: show_formatted_text_highpriority "LESSYANGEL ~R~<3" time 1337
wait 200

:SPRINGFIELD_195
if
  31@ == 1
jf @SPRINGFIELD_253
if
0AB0:   key_pressed 119
jf @SPRINGFIELD_253
0AB1: call_scm_func @SPRINGFIELD_420 0
wait 1000
0AB1: call_scm_func @SPRINGFIELD_260 0

:SPRINGFIELD_253
jump @SPRINGFIELD_39

:SPRINGFIELD_260
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1
0A8E: 2@ = 30@ + 458004 // int
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1
0A8E: 3@ = 30@ + 458280 // int
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1
0A8E: 4@ = 30@ + 462648 // int
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1
0A8E: 5@ = 30@ + 462372 // int
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1
0A8E: 2@ = 1@ + 4 // int
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1
0A8E: 3@ = 30@ + 458004 // int
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1
0A8E: 4@ = 3@ + 4 // int
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1
0A8E: 5@ = 30@ + 458280 // int
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1
0A8E: 6@ = 30@ + 462648 // int
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1
0A8E: 7@ = 30@ + 462372 // int
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1
0A8E: 8@ = 7@ + 4 // int
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret

:SPRINGFIELD_639
0AA2: 0@ = load_library "SAMP.DLL" // IF and SET
0085: 1@ = 0@ // (int)
1@ += 2203876
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1
0085: 2@ = 0@ // (int)
2@ += 409616
0AA6: call_method 2@ struct 3@ num_params 5 pop 0 0 -4129023 0 "LESSYANGEL {00DDE8}<3" 8
0AB2: 0 ret
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
22
PHP:
{$CLEO .cs}
0000:

repeat
wait 0
until samp.Available()
10@ = 0
0B34: samp register_client_command "wallz" to_label @cmd

    WHILE TRUE
        WAIT 0
        IF
        10@ == 1
        THEN
            0AB1: call_scm_func @SPRINGFIELD_260 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~G~<3" time 1337
            wait 200       
            REPEAT
            WAIT 0
            UNTIL 10@ == 0
            0AB1: call_scm_func @SPRINGFIELD_420 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~R~<3" time 1337
            wait 200
        END
    END   
    
    :cmd
    0B12: 10@ = 10@ XOR 1
    0B43: samp cmd_ret
    
:SPRINGFIELD_260
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1
0A8E: 2@ = 30@ + 458004 // int
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1
0A8E: 3@ = 30@ + 458280 // int
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1
0A8E: 4@ = 30@ + 462648 // int
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1
0A8E: 5@ = 30@ + 462372 // int
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1
0A8E: 2@ = 1@ + 4 // int
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1
0A8E: 3@ = 30@ + 458004 // int
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1
0A8E: 4@ = 3@ + 4 // int
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1
0A8E: 5@ = 30@ + 458280 // int
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1
0A8E: 6@ = 30@ + 462648 // int
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1
0A8E: 7@ = 30@ + 462372 // int
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1
0A8E: 8@ = 7@ + 4 // int
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret
 

bRuCeBrUcE

Active member
Joined
Jun 6, 2020
Messages
26
Reaction score
1
Location
Macedonia
PHP:
{$CLEO .cs}
0000:

repeat
wait 0
until samp.Available()
10@ = 0
0B34: samp register_client_command "wallz" to_label @cmd

    WHILE TRUE
        WAIT 0
        IF
        10@ == 1
        THEN
            0AB1: call_scm_func @SPRINGFIELD_260 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~G~<3" time 1337
            wait 200      
            REPEAT
            WAIT 0
            UNTIL 10@ == 0
            0AB1: call_scm_func @SPRINGFIELD_420 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~R~<3" time 1337
            wait 200
        END
    END  
   
    :cmd
    0B12: 10@ = 10@ XOR 1
    0B43: samp cmd_ret
   
:SPRINGFIELD_260
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1
0A8E: 2@ = 30@ + 458004 // int
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1
0A8E: 3@ = 30@ + 458280 // int
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1
0A8E: 4@ = 30@ + 462648 // int
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1
0A8E: 5@ = 30@ + 462372 // int
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1
0A8E: 2@ = 1@ + 4 // int
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1
0A8E: 3@ = 30@ + 458004 // int
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1
0A8E: 4@ = 3@ + 4 // int
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1
0A8E: 5@ = 30@ + 458280 // int
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1
0A8E: 6@ = 30@ + 462648 // int
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1
0A8E: 7@ = 30@ + 462372 // int
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1
0A8E: 8@ = 7@ + 4 // int
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1
0AA3: free_library 30@
0AB2: 0 ret

i can save this {Unknown directive samp.Available().} help?
 

lessiendzel

New member
Joined
Jul 31, 2020
Messages
4
Reaction score
0
Location
Wuhan
Hey @Edvincik , upon loading SA:MP with the script , the game doesn't launch instant crash.

I play on R2 servers but i downloaded some weird SA:MP version that enabled the R1 scripts and it works somehow, i do have sampfuncs in my folder but when i open the game the sampfuncs logo isn't there, maybe you can give it to me here so i try with your sampfuncs? @Edvincik
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
26
I play on R2 servers but i downloaded some weird SA:MP version that enabled the R1 scripts and it works somehow, i do have sampfuncs in my folder but when i open the game the sampfuncs logo isn't there, maybe you can give it to me here so i try with your sampfuncs? @Edvincik
if you have R1 and sampfuncs doesn't work for you, you should try to install this - https://www.microsoft.com/en-us/download/details.aspx?id=8109
the first installer is an extractor, after extracting open the folder where you extracted the files and open dxsetup.exe.
 
Status
Not open for further replies.
Top