ollydbg
Active member
- Joined
- Jun 3, 2017
- Messages
- 39
- Reaction score
- 23
I need this cleo to be activated by pressing the "0"
someone help me
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