CLEO Help if hp lower than 50, it auto type a command

CLEO related

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
if hp lower than 50, it auto type the command "/usarkit"

can someone do?
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
0.3.7 r1
yes

PHP:
{$CLEO .cs}

0000: NOP
repeat
wait 0
until 0afa:

while true
wait 0
    if
        0B61:  samp is_local_player_spawned
    then            
        0B25: samp 0@ = get_player_health $PLAYER_ACTOR
        if 0@ < 50
        then
            say "/usarkit"
            wait 1000
        end
    end
end
 

Attachments

  • hp50.cs
    17.6 KB · Views: 7

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
PHP:
{$CLEO .cs}

0000: NOP
repeat
wait 0
until 0afa:

while true
wait 0
    if
        0B61:  samp is_local_player_spawned
    then           
        0B25: samp 0@ = get_player_health $PLAYER_ACTOR
        if 0@ < 50
        then
            say "/usarkit"
            wait 1000
        end
    end
end
can you make it so it only type the command one time?
 

Juli4n

Active member
Joined
Mar 31, 2021
Messages
43
Solutions
1
Reaction score
19
Location
Argentina
can you make it so it only type the command one time?
C#:
{$CLEO .cs}

0000: NOP
repeat
wait 0
until 0afa:

while true
wait 0
    if
        0B61:  samp is_local_player_spawned
    then           
        0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
        0B25: samp 1@ = get_player_health 0@
        if 1@ < 50
        then
            say "/usarkit"
            while 1@ < 50
                wait 0
                0B25: samp 1@ = get_player_health 0@
            end
        end
    end
end
 

Attachments

  • hp50.cs
    17.7 KB · Views: 11
Last edited:

jora03

New member
Joined
Jun 8, 2021
Messages
4
Reaction score
0
Location
nonr
C#:
{$CLEO .cs}

0000: NOP
repeat
wait 0
until 0afa:

while true
wait 0
    if
        0B61:  samp is_local_player_spawned
    then           
        0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
        0B25: samp 1@ = get_player_health 0@
        if 1@ < 50
        then
            say "/usarkit"
            while 1@ < 50
                wait 0
                0B25: samp 1@ = get_player_health 0@
            end
        end
    end
end
can you pass me this in file
 

Jik ke

Active member
Joined
Jun 2, 2021
Messages
43
Reaction score
2
Location
America
I edited it to my liking but why can't I back it up?
 

Attachments

  • Ảnh chụp màn hình (82).png
    Ảnh chụp màn hình (82).png
    88 KB · Views: 20

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
Can you guys help me with the 0.3dl version?
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"

WHILE TRUE
WAIT 0
    if 0AB1: @SAMPIsLocalPlayerSpawned 0
    then
        0226: 0@ = actor $PLAYER_ACTOR health
        if 0@ < 50
        then
            0AB1: @SEND_CMD 1 30@
            REPEAT
            WAIT 1000
                0226: 0@ = actor $PLAYER_ACTOR health
            UNTIL 0@ >= 50
        end
    end
END

:SAMPIsLocalPlayerSpawned
{
    0.3.DL
    0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN 
    1@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x3DE // SAMP_POOLS_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
    0A8D: 2@ readMem 1@ sz 4 vp 0
    IF 2@ > 0
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
END
0AB2: ret 0

:SEND_CMD
{
    0AB1: @SEND_CMD 1 $text
    0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
 

Attachments

  • hp50.cs
    18.8 KB · Views: 5
Last edited:

Jik ke

Active member
Joined
Jun 2, 2021
Messages
43
Reaction score
2
Location
America
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"

WHILE TRUE
WAIT 0
    if 0AB1: @SAMPIsLocalPlayerSpawned 0
    then
        0226: 0@ = actor $PLAYER_ACTOR health
        if 0@ < 50
        then
            0AB1: @SEND_CMD 1 30@
            REPEAT
            WAIT 1000
                0226: 0@ = actor $PLAYER_ACTOR health
            UNTIL 0@ >= 50
        end
    end
END

:SAMPIsLocalPlayerSpawned
{
    0.3.DL
    0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x3DE // SAMP_POOLS_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
    0A8D: 2@ readMem 1@ sz 4 vp 0
    IF 2@ > 0
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
END
0AB2: ret 0

:SEND_CMD
{
    0AB1: @SEND_CMD 1 $text
    0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
Thank you so much, you're so cool
 

peklovely

Member
Joined
Nov 15, 2020
Messages
8
Reaction score
1
Location
UK
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"

WHILE TRUE
WAIT 0
    if 0AB1: @SAMPIsLocalPlayerSpawned 0
    then
        0226: 0@ = actor $PLAYER_ACTOR health
        if 0@ < 50
        then
            0AB1: @SEND_CMD 1 30@
            REPEAT
            WAIT 1000
                0226: 0@ = actor $PLAYER_ACTOR health
            UNTIL 0@ >= 50
        end
    end
END

:SAMPIsLocalPlayerSpawned
{
    0.3.DL
    0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x3DE // SAMP_POOLS_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
    0A8D: 2@ readMem 1@ sz 4 vp 0
    IF 2@ > 0
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
END
0AB2: ret 0

:SEND_CMD
{
    0AB1: @SEND_CMD 1 $text
    0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
how to make it repeat infinite sir
 

peklovely

Member
Joined
Nov 15, 2020
Messages
8
Reaction score
1
Location
UK
please help me, it's similar to this, if armor falls below 50 will automatically use command , and that will repeat if you continue below 50 armor
 
Last edited:

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
please help me, it's similar to this, if armor falls below 50 will automatically use command , and that will repeat if you continue below 50 armor
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"

WHILE TRUE
WAIT 0
    if 0AB1: @SAMPIsLocalPlayerSpawned 0
    then
        04DD: 0@ = actor $PLAYER_ACTOR armour
        if 0@ < 50
        then     
            0AB1: @SEND_CMD 1 30@
            WAIT 500 // to avoid server anti command spam
        end
    end
END

:SAMPIsLocalPlayerSpawned
{
    0.3.DL
    0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x3DE // SAMP_POOLS_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
    0A8D: 2@ readMem 1@ sz 4 vp 0
    IF 2@ > 0
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
END
0AB2: ret 0

:SEND_CMD
{
    0AB1: @SEND_CMD 1 $text
    0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
 

peklovely

Member
Joined
Nov 15, 2020
Messages
8
Reaction score
1
Location
UK
PHP:
{$CLEO .cs}

0000:

REPEAT
WAIT 1000
    0A8D: 31@ = readMem 0xC8D4C0 sz 4 vp 0
UNTIL 31@ == 9 // SAMP_IS_READY

0AC8: 30@ = allocate_memory_size 260
0AD3: 30@ = format "/usepot"

WHILE TRUE
WAIT 0
    if 0AB1: @SAMPIsLocalPlayerSpawned 0
    then
        04DD: 0@ = actor $PLAYER_ACTOR armour
        if 0@ < 50
        then    
            0AB1: @SEND_CMD 1 30@
            WAIT 500 // to avoid server anti command spam
        end
    end
END

:SAMPIsLocalPlayerSpawned
{
    0.3.DL
    0AB1: @SAMPIsLocalPlayerSpawned 0
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x2ACA24 // SAMP_INFO_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x3DE // SAMP_POOLS_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x8 // SAMP_POOL_PLAYER_OFFSET
    0A8D: 1@ = readmem 1@ sz 4 vp 0
    1@ += 0x1E // SAMP_LOCAL_PLAYER_OFFSET
    0A8D: 1@ readMem 1@ sz 4 vp 0
    1@ += 0x143 // SAMP_LOCAL_PLAYER_SPAWNED_OFFSET
    0A8D: 2@ readMem 1@ sz 4 vp 0
    IF 2@ > 0
    THEN 0485:  return_true
    ELSE 059A:  return_false
    END
END
0AB2: ret 0

:SEND_CMD
{
    0AB1: @SEND_CMD 1 $text
    0.3.DL
}
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
Thank you so much
 
Top