CLEO Help Auto Guard Cleo

CLEO related
Status
Not open for further replies.

Galloway123

Active member
Joined
Jul 14, 2014
Messages
25
Reaction score
0
Need help with this cleo called ChaosGuard. I want it to work like this:
When I aim at someone and I press 'b' on my keyboard I type '/vest (playername) 200'.

The cleo is almost working but when I try it in-game it says that the player isn't connected.

Help pl0x

Code:
{$CLEO .cs}

0000: NOP
thread "ChaosGuard"

REPEAT
    WAIT 100
UNTIL  0AFA: is_samp_available

WHILE TRUE
    WAIT 0
    IF
        0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    THEN
        0B2B: samp 1@ = get_player_id_by_actor_handle 0@ 

        IF
            0AB0: key_pressed 66
        THEN
            0AF9: samp say_msg "/vest %i 200" 1@
            wait 500
        END
    END            
END
Cleo: http://www.mediafire.com/file/kxea2cex9vt0eu3/ChaosGuard_1.cs
 

DavidRO99

Active member
Joined
Nov 5, 2017
Messages
60
Reaction score
8
Galloway123 said:
Need help with this cleo called ChaosGuard. I want it to work like this:
When I aim at someone and I press 'b' on my keyboard I type '/vest (playername) 200'.

The cleo is almost working but when I try it in-game it says that the player isn't connected.

Help pl0x

Code:
{$CLEO .cs}

0000: NOP
thread "ChaosGuard"

REPEAT
    WAIT 100
UNTIL  0AFA: is_samp_available

WHILE TRUE
    WAIT 0
    IF
        0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    THEN
        0B2B: samp 1@ = get_player_id_by_actor_handle 0@ 

        IF
            0AB0: key_pressed 66
        THEN
            0AF9: samp say_msg "/vest %i 200" 1@
            wait 500
        END
    END            
END
Cleo: http://www.mediafire.com/file/kxea2cex9vt0eu3/ChaosGuard_1.cs
Code:
{$CLEO .cs}

0000: NOP

:PEPE_1
wait 0
if
key_down 66
jf @PEPE_1
if samp.ChatInputOpened()
then
    jf @PEPE_1
    else
    if
        0AD2: 0@ = player $PLAYER_CHAR targeted_actor 
    then
        0B2B: samp 1@ = get_player_id_by_actor_handle 0@ //gets the id of the player we are aiming.
        0B36: samp 2@ = get_player_nickname 1@ // gets the nickname from 1@ = id of player aimed. 
        say "/vest %d 200" 1@
    end
end
wait 500
jump @PEPE_1

Be careful tho, its based on triangle, so If the green triangle shows up then that player will be the recepient.
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
Your Case Converting is probably on UPPER

Make sure you set it to As Is

ij5xg9
 
Status
Not open for further replies.
Top