CLEO Help Help me to compile 2 cleos in 1

CLEO related

Costin.

Member
Joined
Jul 7, 2021
Messages
9
Reaction score
3
Location
Romania
Hello, I need help with my 2 cleo, i made one for textdraw click and the Auto Fish one, everytime i try to compile in 1 cleo, the wait delay from the Auto Fish cleo goes aswell to the textdraw clicker.
I want to make them 2 in 1 cleo, if someone could help me please.
 

Attachments

  • Auto Fish.cs
    18.2 KB · Views: 6
  • Textdraw clicker.cs
    18.2 KB · Views: 7
Solution
Try this.
C#:
{$CLEO .cs}

0000:

while 8AFA:
    wait 0
end

0C6A: $NOT_USED = create_custom_thread_at_label @ClickTextdraw

while true
    wait 0
    if or
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2242.2664 548.9020 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2249.9438 548.5229 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2254.1970 548.6130 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2261.8049 548.7750 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2266.4802 548.7641 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2273.2029 548.9067 radius 5.0 5.0 on_foot
    00ED:   actor...

0x73616D

Active member
Joined
Apr 18, 2021
Messages
135
Solutions
1
Reaction score
68
Location
0x73616D
JavaScript:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT  0

IF 0B61:  samp is_local_player_spawned
THEN
IF OR
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2242.2664 548.9020 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2249.9438 548.5229 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2254.1970 548.6130 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2261.8049 548.7750 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2266.4802 548.7641 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2273.2029 548.9067 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2283.7449 549.1299 radius 5.0 5.0 on_foot
     THEN
        wait 1500
        say "/fish"
    END
END
       
IF 0B61:  samp is_local_player_spawned
THEN
    FOR 0@ = 0 TO 2304
        IF 0C5D: samp textdraw 0@ is_exists
        THEN
            0C59: samp textdraw 0@ get_model 1@ rotation 2@ 3@ 4@ zoom 5@ veh_color 6@ 7@
            IF OR
            1@ == 1604
            1@ == 19566
            THEN
                Wait 0
                0BCA: samp send_click_textdraw 0@
            END
        END
    END
END
 

Costin.

Member
Joined
Jul 7, 2021
Messages
9
Reaction score
3
Location
Romania
Same thing, the wait from below goes aswell to the textdraw clicker, I forgot to mention that the textdraw clicker is used at the same coords if that's a problem (The /fish system on the server requires to click those textdraws). If i remove it it works, but it will spam /fish.
JavaScript:
IF 0B61:  samp is_local_player_spawned
THEN
IF OR
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2242.2664 548.9020 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2249.9438 548.5229 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2254.1970 548.6130 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2261.8049 548.7750 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2266.4802 548.7641 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2273.2029 548.9067 radius 5.0 5.0 on_foot
     00ED: actor $PLAYER_ACTOR sphere 0 near_point 2283.7449 549.1299 radius 5.0 5.0 on_foot
     THEN
        wait 1500
        say "/fish"
    END
END
 

Juli4n

Active member
Joined
Mar 31, 2021
Messages
43
Solutions
1
Reaction score
19
Location
Argentina
Try this.
C#:
{$CLEO .cs}

0000:

while 8AFA:
    wait 0
end

0C6A: $NOT_USED = create_custom_thread_at_label @ClickTextdraw

while true
    wait 0
    if or
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2242.2664 548.9020 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2249.9438 548.5229 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2254.1970 548.6130 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2261.8049 548.7750 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2266.4802 548.7641 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2273.2029 548.9067 radius 5.0 5.0 on_foot
    00ED:   actor $PLAYER_ACTOR sphere 0 near_point 2283.7449 549.1299 radius 5.0 5.0 on_foot
    then
        say "/fish"
        while true
            wait 0
            if and
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2242.2664 548.9020 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2249.9438 548.5229 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2254.1970 548.6130 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2261.8049 548.7750 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2266.4802 548.7641 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2273.2029 548.9067 radius 5.0 5.0 on_foot
            80ED:   actor $PLAYER_ACTOR sphere 0 near_point 2283.7449 549.1299 radius 5.0 5.0 on_foot
            then   
                break
            end
        end
    end
end

:ClickTextdraw
0000:
while true
    wait 0
    if 0B61:  samp is_local_player_spawned
    then
        for 0@ = 0 to 2304
            if 0C5D: samp textdraw 0@ is_exists
            then
                0C59: samp textdraw 0@ get_model 1@ rotation $NOT_USED $NOT_USED $NOT_USED zoom $NOT_USED veh_color $NOT_USED $NOT_USED
                if or
                1@ == 1604
                1@ == 19566
                then
                    0BCA: samp send_click_textdraw 0@
                end
            end
        end
    end
end
 
Solution
Top