When i reconnect i want the cleo script to stop, even if i am at half of executions
For example i have
If i reconnect when execute 0af9: samp say_msg "3" i want to stop the cleo, not keep running..in the moment i log in i want to run the cleo from the beginning
this is the cleo
For example i have
Code:
0af9: samp say_msg "1"
wait 10011
0af9: samp say_msg "2"
wait 10011
0af9: samp say_msg "3"
wait 10011
0af9: samp say_msg "4"
wait 10011
0af9: samp say_msg "5"
wait 10011
0af9: samp say_msg "6"
wait 10011
If i reconnect when execute 0af9: samp say_msg "3" i want to stop the cleo, not keep running..in the moment i log in i want to run the cleo from the beginning
this is the cleo
{$CLEO .cs}
THREAD 'ExamenTP'
0662: printstring "By Zin"
0662: printstring "UGBASE.EU"
REPEAT
WAIT 0
UNTIL 0AFA:
0B34: "hacka" @EXAMEN
0B34: "killcs" @killcs
31@ = FALSE
0A92: create_custom_thread "sss.cs"
WHILE TRUE
WAIT 0
IF AND
0B61: samp is_local_player_spawned
31@ == TRUE
THEN
wait 1000
0af9: samp say_msg "/exit"
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x22 {PAGE DOWN }
wait 17000
0af9: samp say_msg "/enter"
wait 2000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x7B {f12}
wait 10000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x72 {f3 tpr}
wait 5000
0C8F: samp process_chat_input "/aaa"
wait 1000
if
0B4C: samp is_dialog_active -1
then
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x24 {apasa HOME}
wait 1000
0af9: samp say_msg "/sl"
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x79 {apasa F10}
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x23 {apasa END}
wait 1000
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra" //aici o saseparat
wait 10000
0C8F: samp process_chat_input "/+"
wait 75000
0af9: samp say_msg "/der"
wait 100
0C8F: samp process_chat_input "/hacka"
END
31@ = FALSE
END
END
:EXAMEN
0B12: 31@ = 31@ XOR 1
If
31@ == TRUE
Then
chatmsg "ON" -1
else
chatmsg "OFF" -1
end
SAMP.CmdRet()
/// Snippet
:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0
:killcs // cancel mod from game
SAMP.IsCommandTyped(20@)
004E: end_thread
SAMP.CmdRet()
THREAD 'ExamenTP'
0662: printstring "By Zin"
0662: printstring "UGBASE.EU"
REPEAT
WAIT 0
UNTIL 0AFA:
0B34: "hacka" @EXAMEN
0B34: "killcs" @killcs
31@ = FALSE
0A92: create_custom_thread "sss.cs"
WHILE TRUE
WAIT 0
IF AND
0B61: samp is_local_player_spawned
31@ == TRUE
THEN
wait 1000
0af9: samp say_msg "/exit"
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x22 {PAGE DOWN }
wait 17000
0af9: samp say_msg "/enter"
wait 2000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x7B {f12}
wait 10000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x72 {f3 tpr}
wait 5000
0C8F: samp process_chat_input "/aaa"
wait 1000
if
0B4C: samp is_dialog_active -1
then
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x24 {apasa HOME}
wait 1000
0af9: samp say_msg "/sl"
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x79 {apasa F10}
wait 1000
0AB1: @FAKE_KEYPRESS 1 _OFFSET_KEY_ 0x23 {apasa END}
wait 1000
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra"
wait 100
0C8F: samp process_chat_input "/abra" //aici o saseparat
wait 10000
0C8F: samp process_chat_input "/+"
wait 75000
0af9: samp say_msg "/der"
wait 100
0C8F: samp process_chat_input "/hacka"
END
31@ = FALSE
END
END
:EXAMEN
0B12: 31@ = 31@ XOR 1
If
31@ == TRUE
Then
chatmsg "ON" -1
else
chatmsg "OFF" -1
end
SAMP.CmdRet()
/// Snippet
:FAKE_KEYPRESS
if 0AA2: 2@ = load_library "User32.dll"
then
if 0AA4: 2@ = get_proc_address "keybd_event" library 2@
then
0AA5: call 2@ num_params 4 pop 0 0 0 0 0@
wait 1@
0AA5: call 2@ num_params 4 pop 0 0 0x02 0 0@
end
end
0AB2: ret 0
:killcs // cancel mod from game
SAMP.IsCommandTyped(20@)
004E: end_thread
SAMP.CmdRet()