CLEO Help problem with script

CLEO related

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
Code:
{$CLEO}
0000:

const
    SYNCSTATE = 31@
end

repeat
    wait 0
until 0AFA: is_samp_available

SYNCSTATE = true

0B34: samp register_client_command "tsync" to_label @togglesync

0BE1: raknet setup_outcoming_rpc_hook @syncmanager
0BE2: raknet setup_outcoming_packet_hook @syncmanager

0BDE: pause_thread 0

:togglesync
    0B19: SYNCSTATE ^= true
    if SYNCSTATE == true
    then 0AF8: samp add_message_to_chat "UpSync: Enabled!" color 0xFF00FF00
    else 0AF8: samp add_message_to_chat "UpSync: Disabled!" color 0xFFFF0000
    end
0B43: samp cmd_ret

:syncmanager
0BE0: raknet hook_ret SYNCSTATE

why my game crashes?
 

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
it's by @ajom he put it on a thread but i don't know why it's not working for me
one guy said that it's working perfectly fine
this one should be right?
Code:
{$CLEO .cs}

0000:


repeat
    wait 0
until 0AFA: is_samp_available

31@ = true

0B34: samp register_client_command "tsync" to_label @togglesync

0BE1: raknet setup_outcoming_rpc_hook @syncmanager
0BE2: raknet setup_outcoming_packet_hook @syncmanager

0BDE: pause_thread 0

:togglesync
    if 31@ == true
    then 0AF8: samp add_message_to_chat "UpSync: Enabled!" color 0xFF00FF00
    else 0AF8: samp add_message_to_chat "UpSync: Disabled!" color 0xFFFF0000
    end
0B43: samp cmd_ret

:syncmanager
0BE0: raknet hook_ret 31@
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
268
Location
Pluto
If this still crashes, maybe you have a problem on your compiler settings:
PHP:
{$CLEO}
0000:

repeat
    wait 0
until 0AFA: is_samp_available

31@ = 1 // default enable sync

0B34: samp register_client_command "tsync" to_label @togglesync

0BE1: raknet setup_outcoming_rpc_hook @syncmanager
0BE2: raknet setup_outcoming_packet_hook @syncmanager

0BDE: pause_thread 0

:togglesync
    0B12: 31@ = 31@ XOR 1 // change/toggle the state
    if 31@ == true
    then 0AF8: samp add_message_to_chat "UpSync: Enabled!" color 0xFF00FF00
    else 0AF8: samp add_message_to_chat "UpSync: Disabled!" color 0xFFFF0000
    end
0B43: samp cmd_ret

:syncmanager
0BE0: raknet hook_ret 31@ // arbitrary
 
Last edited:

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
If this still crashes, maybe you have a problem on your compiler settings:
PHP:
{$CLEO}
0000:

repeat
    wait 0
until 0AFA: is_samp_available

31@ = 0 // initial off

0B34: samp register_client_command "tsync" to_label @togglesync

0BE1: raknet setup_outcoming_rpc_hook @syncmanager
0BE2: raknet setup_outcoming_packet_hook @syncmanager

0BDE: pause_thread 0

:togglesync
    0B12: 31@ = 31@ XOR 1 // change/toggle the state
    if 31@ == true
    then 0AF8: samp add_message_to_chat "UpSync: Enabled!" color 0xFF00FF00
    else 0AF8: samp add_message_to_chat "UpSync: Disabled!" color 0xFFFF0000
    end
0B43: samp cmd_ret

:syncmanager
0BE0: raknet hook_ret 31@ // arbitrary
it is lagging or i don't know.. it doesn't connect me to the server like i have some delay or high ping
 

davidel

Well-known member
Joined
Jan 17, 2020
Messages
207
Reaction score
7
Location
Germania
My bad, The default should be to enable sync. Try again.
works fine, thanks!
i am trying to bypass somehow an anticheat on a rpg server and i dont know so much scripting
i tried a lot of .lua scripts and cleo but still get detected
i tried using your script and teleporting but still get detected
do you have any ideas?
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
268
Location
Pluto
i am trying to bypass somehow an anticheat on a rpg server and i dont know so much scripting
i tried a lot of .lua scripts and cleo but still get detected
i tried using your script and teleporting but still get detected
do you have any ideas?

Every server has its own way of detecting TP. An example of an Anti-TP system:
  1. Server has a speed limit per vehicle. Take it as Variable Sc
  2. They record the amount of time you got desynced. Take it ad Variable td
  3. They measure the maximum amount of distance you can travel during your desync. Take it as Variable Do
    • Formula: Do = td * Sc
  4. They measure the distance between the position where you got desynced and your position when you finally synced. Take it as Variable Di
  5. They record your current Vehicle Speed. Take it as Variable Si

And it detects TP if any of these two conditions are met:
  1. Di > Do
  2. Si > Sc


Maybe you can bypass it by:
  1. Know your Vehicle Speed Limit(Try reaching its maximum speed then remember it). Variable S
  2. Measure the distance between the your current position and the position where you will TP. Variable D
  3. Desync
  4. TP on the location
  5. Wait for t = D/S amount of seconds.
  6. Sync



Although I'll assume that their system is already robust, so No more idea.
 
Top