CLEO Help 2 loops possible at once?

CLEO related
Status
Not open for further replies.

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
Hi, I cant get NONAME_260 to be called, while NONAME_259 is working(It never stops, and is not meant to be stopped ever)

Idk why they both cant run at same time, The code is not the problem, the code works if I remove or comment any of these one functions

Any way to run 2 functions which keeps coming again and again at once?
My code:
Code:
:NONAME_259
wait 30
if 
18@ == 1
then
    if 
    0AB0: key_down 1 
    then
        if
        02D8:   actor $PLAYER_ACTOR current_weapon == 24
        then
            wait 670
            // My Code Here
        end  
    end
end
jump @NONAME_259

:NONAME_260
if 
18@ == 1
then
    if 
    0AB0: key_down 1 
    then
        if
        if 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
        then
            //My Code Here
        end  
    end
end
jump @NONAME_260
 

Opcode.eXe

Expert
Joined
Feb 18, 2013
Messages
1,486
Reaction score
227
Location
( ͡° ͜ʖ ͡°)
Try this? :NONAME_259
wait 30
if
18@ == 1
then
if
0AB0: key_down 1
then
if
02D8: actor $PLAYER_ACTOR current_weapon == 24
then
wait 670
// My Code Here
end
end
end

:NONAME_260
if
18@ == 1
then
if
0AB0: key_down 1
then
if
if 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
then
//My Code Here
end
end
end
jump @NONAME_259
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
tried urs with but with different code, this is the code:
:NONAME_259
wait 30
if
18@ == 1
then
if
0AB0: key_down 1
then
if
02D8: actor $PLAYER_ACTOR current_weapon == 24
then
wait 670
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 0)
0812: AS_actor $PLAYER_ACTOR perform_animation "HIT_WALK" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time 1 // versionB
end
end
end

:NONAME_260
if
18@ == 1
then
if
0AB0: key_down 1
then
if 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
then
Actor.StorePos(0@, 1@, 2@, 3@)
0AB1: @NONAME_261 4 XYZ: 1@ 2@ 3@ ADD_CAMERA_OFFSET 0.04253
end
end
end
jump @NONAME_259

:NONAME_261 // OpNipps Aimbot Snippet
0087: 8@ = 3@
068D: get_camera_position_to 3@ 4@ 5@
0063: 0@ -= 3@
0063: 1@ -= 4@
0604: get_Z_angle_for_point 0@ 1@ store_to 6@
6@ -= 90.0
0017: 6@ /= 57.2957795
005B: 6@ += 8@
0A8D: 7@ = read_memory 0xB6F248 size 4 virtual_protect 0
0A25: set_camera_on_players_X_angle 7@ Z_angle 6@
0AB2: 0

still dosent work, btw in urs one too and mine one too there was 1 unused "if", I removed it but it still dont work lol..

idk whats the problem

these are on top of my script

{$CLEO .cs}
0000: NOP
wait 2000
thread "0x32789"
03F0: enable_text_draw 1
18@ = 0
0B34: samp register_client_command "rr" to_label @NONAME_41

command and cbugworks fine when I test with that script, same the loop/function which comes first works fine, tried while true also, only while true works, and if i try to combine them both into 1, it will crash me
but the aimbot dont, If I put aimbot code first, it works but CBUG dont
 
Status
Not open for further replies.
Top