Jump to content

[CLEO] Hotkey to a mod


halfastrc
 Share

Recommended Posts

Hello there, I've a mod to automatically use a command to Heal. But I would to know, if is possible do a hotkey to Active and Desactive the mod. F2 to active and desactive the mod.

I appreciate any help, thanks

 

The Mod:

{$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 "/heal"
            while 1@ < 50
                wait 0
                0B25: samp 1@ = get_player_health 0@
            end
        end
    end
end

 

Link to comment
Share on other sites

{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

4@ = 0

while true
wait 0

if
    0ab0: 113
then
    if 4@ == 0
    then
        printf "~G~Heal ON" 3000
        4@ = 1
        wait 500
    else
        print "~R~Heal OFF" 3000
        4@ = 0
        wait 500
    end
end

    if 4@ == 1
    then
    
        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 "/heal"
                wait 500
            end
        end
        
    end
end

 

Link to comment
Share on other sites

43 minutes ago, Nic said:

{$CLEO .cs}

0000: NOP

repeat
wait 0
until 0afa:

4@ = 0

while true
wait 0

if
    0ab0: 113
then
    if 4@ == 0
    then
        printf "~G~Heal ON" 3000
        4@ = 1
        wait 500
    else
        print "~R~Heal OFF" 3000
        4@ = 0
        wait 500
    end
end

    if 4@ == 1
    then
    
        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 "/heal"
                wait 500
            end
        end
        
    end
end

 

Thx bro ?

Link to comment
Share on other sites

  • Nic locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.