Angel9
Active member
How to automatically pause the script when the text "{FFFFFF} You have successfully purchased the phone" is printed in the chat and continue working after 10 seconds?
Code:
{$CLEO .cs}
0000: NOP
wait 10000 // 10sec Redy
while true
wait 0
if
0ADC: test_cheat "ON" // ON
then
0@ = true
0AD1: show_formatted_text_highpriority "test...." time 2000
end
if
0@ == true
then // 1
0B4C: samp is_dialog_active -1
0AF9: samp say_msg "/aly" // command
wait 250 // time waiting
0B49: samp set_current_dialog_list_item 15 // item
0B47: samp close_current_dialog_with_button 1 // close
wait 250
1@ += 1 // counter
end
if 1@ >= 50 //
then //
0B4C: samp is_dialog_active -1
0AF9: samp say_msg "/kya" // command
wait 250
0B49: samp set_current_dialog_list_item 4 // item
0B47: samp close_current_dialog_with_button 1
wait 250
0B49: samp set_current_dialog_list_item 2 // item
0B47: samp close_current_dialog_with_button 1
wait 250
0B4B: samp set_current_dialog_editbox_text "155" // type text
0B47: samp close_current_dialog_with_button 1
wait 250
1@ = 0 // restart loop
end
end // end
return //
0AB2: 0