CLEO Help Changing Desync Key

CLEO related
Status
Not open for further replies.

umad1337

New member
Joined
Dec 4, 2017
Messages
3
Reaction score
0
Hey,

i tried to change the key of desync.cleo, heres the code:

Code:
{$CLEO .cs}
{$INCLUDE SF}
0000:
repeat 
wait 0
until samp.Available()
$desync = false
0BE4: raknet setup_incoming_packet_hook @InPacketHook
0BE3: raknet setup_incoming_rpc_hook @InRpcHook
while true
wait 0
    if key_down 0x74
    then
        if $desync == true
        then   
            $desync = false 
            wait 1500
        else
            $desync = true
            wait 1500
        end
    end
end
:InRpcHook
wait 0
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRSETPLAYERHEALTH
then
    if $desync == true
    then 0BE0: raknet hook_ret false
    end
end
0BE0: raknet hook_ret true
:InPacketHook
wait 0
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if or
    0@ == PACKET_PLAYER_SYNC
    0@ == PACKET_VEHICLE_SYNC
    0@ == PACKET_PASSENGER_SYNC
    0@ == PACKET_BULLET_SYNC 
then
    if $desync == true
    then 0BE0: raknet hook_ret false
    end
end
0BE0: raknet hook_ret true
When I changed the activation to my key (0x74 is my key => F5), and when I try to compile it says that SF couldnt be found..

I read something about remove the line with include sf, but when I do this, it gives me another compile error "incorrect directive: samp.available"...

Can someone help me?
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
You need to download the sampfuncs opcodes in order to compile
here
[attachment=5202]
 

Attachments

  • Desync.cs
    18.4 KB · Views: 53
Status
Not open for further replies.
Top