CLEO HELP Need help with script

Joined
Jul 31, 2020
Messages
4
Likes
0
Points
1
Location
Wuhan
1
#1
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
[email protected] = 0

:SPRINGFIELD_39
wait 0
if and
0AB0:   key_pressed 188
0AB0:   key_pressed 51
jf @SPRINGFIELD_195
0B12: [email protected] = [email protected] XOR 1
if
  [email protected] == 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
  [email protected] == 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
  [email protected] == 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: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 4 value 24216591 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 4 value 22053903 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 16500 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 24948 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 4 value 24218127 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret

:SPRINGFIELD_639
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0085: [email protected] = [email protected] // (int)
[email protected] += 2203876
0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 1
0085: [email protected] = [email protected] // (int)
[email protected] += 409616
0AA6: call_method [email protected] struct [email protected] num_params 5 pop 0 0 -4129023 0 "LESSYANGEL {00DDE8}<3" 8
0AB2: 0 ret
 
Joined
Jun 3, 2017
Messages
19
Likes
1
Points
33
#2
PHP:
{$CLEO .cs}
0000:

repeat
wait 0
until samp.Available()
[email protected] = 0
0B34: samp register_client_command "wallz" to_label @cmd

    WHILE TRUE
        WAIT 0
        IF
        [email protected] == 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 [email protected] == 0
            0AB1: call_scm_func @SPRINGFIELD_420 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~R~<3" time 1337
            wait 200
        END
    END   
    
    :cmd
    0B12: [email protected] = [email protected] XOR 1
    0B43: samp cmd_ret
    
:SPRINGFIELD_260
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 4 value 24216591 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 4 value 22053903 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 16500 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 24948 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 4 value 24218127 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret
 
Joined
Jun 6, 2020
Messages
8
Likes
0
Points
1
Location
Macedonia
1
#3
PHP:
{$CLEO .cs}
0000:

repeat
wait 0
until samp.Available()
[email protected] = 0
0B34: samp register_client_command "wallz" to_label @cmd

    WHILE TRUE
        WAIT 0
        IF
        [email protected] == 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 [email protected] == 0
            0AB1: call_scm_func @SPRINGFIELD_420 0
            0AD1: show_formatted_text_highpriority "LESSYANGEL ~R~<3" time 1337
            wait 200
        END
    END  
   
    :cmd
    0B12: [email protected] = [email protected] XOR 1
    0B43: samp cmd_ret
   
:SPRINGFIELD_260
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 37008 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 6 value -1869574000 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret

:SPRINGFIELD_420
0AA2: [email protected] = load_library "SAMP.DLL" // IF and SET
0A8E: [email protected] = [email protected] + 457971 // int
0A8C: write_memory [email protected] size 4 value 24216591 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458004 // int
0A8C: write_memory [email protected] size 4 value 22053903 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0A8E: [email protected] = [email protected] + 458280 // int
0A8C: write_memory [email protected] size 2 value 16500 virtual_protect 1
0A8E: [email protected] = [email protected] + 462648 // int
0A8C: write_memory [email protected] size 2 value 24948 virtual_protect 1
0A8E: [email protected] = [email protected] + 462372 // int
0A8C: write_memory [email protected] size 4 value 24218127 virtual_protect 1
0A8E: [email protected] = [email protected] + 4 // int
0A8C: write_memory [email protected] size 2 value 0 virtual_protect 1
0AA3: free_library [email protected]
0AB2: 0 ret
i can save this {Unknown directive samp.Available().} help?
 
OP
OP
L
Joined
Jul 31, 2020
Messages
4
Likes
0
Points
1
Location
Wuhan
1
#4
"Unknown directive samp.Available()."

@ollydbg can you compile it for me, thanks? I seem to go into this error i can't compile it in Sanny Builder 3.
 
OP
OP
L
Joined
Jul 31, 2020
Messages
4
Likes
0
Points
1
Location
Wuhan
1
#9
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
380
Likes
24
Points
68
#10
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.
 
Top