{$CLEO .cs}
0000: NOP
Thread "TESTAFK"
while not SAMP.Available()
wait 300
end
0B34: samp register_client_command "afk" to_label @cmd
while true
wait 0
if 0@ == 1
then
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0B56: set_game_key 1 state -128
0209: 2@ = random_int_in_ranges 60000 200000
wait 2@
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
end
end
:cmd
wait 0
0B12: 0@ = 0@ XOR 1
if 0@ == 1
then
0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
0AC6: 20@ = label @hex2 offset
0C11: memset destination 7623723 value 144 size 8
0AC6: 21@ = label @hex1 offset
0C11: memset destination 5499528 value 144 size 6
0acd: "AFK ~g~ON" 1000
else
0A8C: write_memory 7634870 size 1 value 0 virtual_protect 1
0A8C: write_memory 7635034 size 1 value 0 virtual_protect 1
0C10: memcpy destination 7623723 source 20@ size 8
0C10: memcpy destination 5499528 source 21@ size 6
0acd: "AFK ~r~OFF" 1000
end
SAMP.CmdRet()
:hex1
hex
0F 84 7B 01 00 00
end
:hex2
hex
50 51 FF 15 00 83 85 00
end