CLEO Help Fake AFK Crash - someone please

CLEO related
Status
Not open for further replies.

(_)_)===D

Member
Joined
May 2, 2016
Messages
17
Reaction score
1
Hi Everyone

I have a problem editing this cleo with Sanny Builder. I want to translate it to English for personal use, but when I compile the cleo and test it my game crash after 2 seconds after loading the cleo.

I emphasize that I only modify the messages that the cleo sends to the server like (Cleo Activated / deactivated - /command and things like that) I did not modify anything else.

Original (works correctly):

Edited (crash after 2 seconds):

I would like someone to help me solve this problem, which for some is too simple, please
 

Attachments

  • sa-mp-038.png
    sa-mp-038.png
    2.3 KB · Views: 51
  • sa-mp-039.png
    sa-mp-039.png
    2.5 KB · Views: 47
  • FakeAFK.cs
    392 bytes · Views: 26

Parazitas

God
Joined
Jan 2, 2017
Messages
3,103
Solutions
5
Reaction score
882
Location
Lithuania
PHP:
{$CLEO .cs}

0000: NOP 
0662: printstring "ebalscripti" 

repeat
wait 0
until 0AFA:

0B34: samp register_client_command "afk" to_label @CMD 
0BE2: raknet setup_outcoming_packet_hook @RPC

chatmsg "{00FF00} [FakeAFK] {ffffff} Activation: {00FF00} /afk {ffffff}. Posted by: {32CD32} Logan. " -1

while true
wait 0 
end

:CMD
0B12: 1@ = 1@ XOR 1 
if 
  1@ == 1 
then
    Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is included. " -1
else
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is turned off. " -1
    Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
end
0B43: samp cmd_ret

:RPC
0BE5: raknet 10@ = get_hook_param 0 
0BE5: raknet 11@ = get_hook_param 1 
if and
1@ == 1 
11@ == 207 
then 
    0BE0: raknet hook_ret 0 
end
0BE0: raknet hook_ret 1
 

Ruflll7

Active member
Joined
May 18, 2019
Messages
134
Reaction score
4
PHP:
{$CLEO .cs}

0000: NOP
0662: printstring "ebalscripti"

repeat
wait 0
until 0AFA:

0B34: samp register_client_command "afk" to_label @CMD
0BE2: raknet setup_outcoming_packet_hook @RPC

chatmsg "{00FF00} [FakeAFK] {ffffff} Activation: {00FF00} /afk {ffffff}. Posted by: {32CD32} Logan. " -1

while true
wait 0
end

:CMD
0B12: 1@ = 1@ XOR 1
if
  1@ == 1
then
    Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is included. " -1
else
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is turned off. " -1
    Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
end
0B43: samp cmd_ret

:RPC
0BE5: raknet 10@ = get_hook_param 0
0BE5: raknet 11@ = get_hook_param 1
if and
1@ == 1
11@ == 207
then
    0BE0: raknet hook_ret 0
end
0BE0: raknet hook_ret 1

You help them more i don't
 

(_)_)===D

Member
Joined
May 2, 2016
Messages
17
Reaction score
1
PHP:
{$CLEO .cs}

0000: NOP
0662: printstring "ebalscripti"

repeat
wait 0
until 0AFA:

0B34: samp register_client_command "afk" to_label @CMD
0BE2: raknet setup_outcoming_packet_hook @RPC

chatmsg "{00FF00} [FakeAFK] {ffffff} Activation: {00FF00} /afk {ffffff}. Posted by: {32CD32} Logan. " -1

while true
wait 0
end

:CMD
0B12: 1@ = 1@ XOR 1
if
  1@ == 1
then
    Actor.SetImmunities($PLAYER_ACTOR, 1, 1, 1, 1, 1)
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is included. " -1
else
    chatmsg "{00FF00} [FakeAFK] {ffffff} The script {32CD32} is turned off. " -1
    Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
end
0B43: samp cmd_ret

:RPC
0BE5: raknet 10@ = get_hook_param 0
0BE5: raknet 11@ = get_hook_param 1
if and
1@ == 1
11@ == 207
then
    0BE0: raknet hook_ret 0
end
0BE0: raknet hook_ret 1

It works perfectly, I was testing the cleo several times and after a while I was not allowed to open the samp text box with the T key but I guess it will be some other cleos bug that I am testing

Thanks a lot, you're a genius
 
Status
Not open for further replies.
Top