CLEO Help Change activation method

CLEO related
Status
Not open for further replies.

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
22
I need this cleo to be activated by pressing the "0"

someone help me

Code:
{$CLEO}
0000:

repeat
wait 0
until samp.Available()
0B34: samp register_client_command "menu" to_label @CCT



repeat
wait 0
    if 0B3C:  samp is_dialog_responded id 0 button 1@ list_item 2@ input_text 0
then
        if
            1@ == 1
        then
            if 2@ == 0
            then
            0AF8: samp add_message_to_chat "1" color -1
            end
            if 2@ == 1
            then 0AF8: samp add_message_to_chat "2" color -1
            end
            if 2@ == 2
            then 0AF8: samp add_message_to_chat "3" color -1
            end  
             if 2@ == 3
            then 0AF8: samp add_message_to_chat "4" color -1
            end 
             if 2@ == 4
            then 0AF8: samp add_message_to_chat "5" color -1
            end 
             if 2@ == 5
            then 0AF8: samp add_message_to_chat "6" color -1
           
            end
            04D7: set_actor $PLAYER_ACTOR locked 0
        end
    end
until false

:CCT
0AC6: 0@ = label @Main offset
0B3B: samp show_dialog id 0 caption "DIALOG NAME" text 0@ button_1 "Select" button_2 "Close" style 2
samp.CmdRet()

:Main
hex
    "1" A
    "2" A
    "3" A
    "4" A
    "5" A
    "6" A
    " " 0     
end
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
22
Google.fix said:
I'll get it done in a second, gotta' get CLEO again.


Sanny Builder *


@ollydbg  What's the current activation key?




Is activated with the following command "/ menu"

0B34: samp register_client_command "menu" to_label @CCT
 

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
Here you go.

Code:
{$CLEO}
0000:

repeat
wait 0
until samp.Available()


while true
wait 0
if
    0AB0:   key_pressed 48
then
    0AC6: 0@ = label @Main offset
    0B3B: samp show_dialog id 0 caption "DIALOG NAME" text 0@ button_1 "Select" button_2 "Close" style 2    
end
    if 
        0B3C:  samp is_dialog_responded id 0 button 1@ list_item 2@ input_text 0
    then
        if
            1@ == 1
        then
            if 
                2@ == 0
            then
                0AF8: samp add_message_to_chat "1" color -1
            end
            if 
                2@ == 1
            then 
                0AF8: samp add_message_to_chat "2" color -1
            end
            if 
                2@ == 2
            then 
                0AF8: samp add_message_to_chat "3" color -1
            end  
            if 
                2@ == 3
            then 
                0AF8: samp add_message_to_chat "4" color -1
            end 
            if 
                2@ == 4
            then 
                0AF8: samp add_message_to_chat "5" color -1
            end 
            if 
                2@ == 5
            then 
                0AF8: samp add_message_to_chat "6" color -1
            end
            04D7: set_actor $PLAYER_ACTOR locked 0
        end
    end
end

:Main
hex
   "1" A
   "2" A
   "3" A
   "4" A
   "5" A
   "6" A
   " " 0     
end
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
22
KillerZ said:
Here you go.

Code:
{$CLEO}
0000:

repeat
wait 0
until samp.Available()


while true
wait 0
if
    0AB0:   key_pressed 48
then
    0AC6: 0@ = label @Main offset
    0B3B: samp show_dialog id 0 caption "DIALOG NAME" text 0@ button_1 "Select" button_2 "Close" style 2    
end
    if 
        0B3C:  samp is_dialog_responded id 0 button 1@ list_item 2@ input_text 0
    then
        if
            1@ == 1
        then
            if 
                2@ == 0
            then
                0AF8: samp add_message_to_chat "1" color -1
            end
            if 
                2@ == 1
            then 
                0AF8: samp add_message_to_chat "2" color -1
            end
            if 
                2@ == 2
            then 
                0AF8: samp add_message_to_chat "3" color -1
            end  
            if 
                2@ == 3
            then 
                0AF8: samp add_message_to_chat "4" color -1
            end 
            if 
                2@ == 4
            then 
                0AF8: samp add_message_to_chat "5" color -1
            end 
            if 
                2@ == 5
            then 
                0AF8: samp add_message_to_chat "6" color -1
            end
            04D7: set_actor $PLAYER_ACTOR locked 0
        end
    end
end

:Main
hex
   "1" A
   "2" A
   "3" A
   "4" A
   "5" A
   "6" A
   " " 0     
end
Thank you
 
Status
Not open for further replies.
Top