[REQUEST] ANTI-AFK 0.3DL samp

sa_masterPL

Well-Known Member
Joined
Mar 21, 2020
Messages
50
Likes
17
Points
8
Location
Poland
Website
dawcypoziomu.pl
5
#21
anti-afk_v1.cs - sends /g every 30 seconds, bypasses afk
Code:
{$CLEO .cs}
0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AFK"
then
if
[email protected] == false
then
[email protected] = true    
0AD1: show_formatted_text_highpriority "anti-afk v1 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer           
else
[email protected] = false
0AD1: show_formatted_text_highpriority "anti-afk v1 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then          
if
[email protected] > 27000
then
0AC8: [email protected] = allocate_memory_size 260
0AD3: [email protected] = format "/g"   // here command format
0AB1: @SEND_CMD 1 [email protected]  /// here send command
wait 3000
0AB1: @SEND_CMD 1 [email protected]  /// here send command
[email protected] = 0 // reset timer
end
end
end

:SEND_CMD
//0AB1: @SEND_CMD 1 $text
IF 0AA2: [email protected] = "samp.dll"
THEN
    [email protected] += 0x69340 // FUNC_SEND_CMD_03DL
    0AA5: call [email protected] num_param 1 pop 0 [email protected]
END
0AB2: 0
anti-afk_v2.cs - moves the camera, bypasses afk
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AKF"
then
if
[email protected] == false
then
[email protected] = true 
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer        
else
[email protected] = false
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then       
if
[email protected] > 2000
then

099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0

[email protected] = 0 // reset timer
end
end
end
anti-afk_v2.1.cs - moves the camera, bypasses afk, working in pause
Code:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

0AB1: @memset 3 destination 7623723 value 144 size 8

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "ASD"
THEN
    IF
    [email protected] == FALSE
    THEN
        [email protected] = TRUE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~g~Activated" time 1337 
    ELSE
        [email protected] = FALSE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~r~Deactivated" time 1337
    END
END

IF 
[email protected] == TRUE
THEN
    0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
    0AB1: @memset 3 destination 5499528 value 144 size 6 // disable esc when game is minimized
    0AB1: @memset 3 destination 7623723 value 144 size 8 // disable mouse centering
    099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0
ELSE
    0A8C: write_memory 7634870 size 1 value 0 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 0 virtual_protect 1
    0AC6: [email protected] = label @SOMETHING1 offset
    0AB1: @memcpy 3 destination 5499528 source [email protected] size 6
    0AC6: [email protected] = label @SOMETHING2 offset
    0AB1: @memcpy 3 destination 7623723 source [email protected] size 8
END

END

:memcpy

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - source, [email protected] - size
// Example: 0AB1: @memcpy 3 destination [email protected] source [email protected] size [email protected]

dec([email protected])
for [email protected] = 0 to [email protected]
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
    [email protected] += 1
    [email protected] += 1
end

0AB2: ret 0

:memset

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - value, [email protected] - size
// Example: 0AB1: @memset 3 destination [email protected] value 32 size 1
[email protected] -= 1
for [email protected] = 0 to [email protected]
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
[email protected] += 1
end

0AB2: ret 0

:SOMETHING1
hex
 0F 84 7B 01 00 00
end

:SOMETHING2
hex
 50 51 FF 15 00 83 85 00
end
 

Attachments

Last edited:

Ardde

New Member
Joined
Apr 6, 2020
Messages
2
Likes
0
Points
1
Location
Indonesia
1
#22
anti-afk_v1.cs - sends /g every 30 seconds, bypasses afk
Code:
{$CLEO .cs}
0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AFK"
then
if
[email protected] == false
then
[email protected] = true   
0AD1: show_formatted_text_highpriority "anti-afk v1 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer          
else
[email protected] = false
0AD1: show_formatted_text_highpriority "anti-afk v1 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then         
if
[email protected] > 27000
then
0AC8: [email protected] = allocate_memory_size 260
0AD3: [email protected] = format "/g"   // here command format
0AB1: @SEND_CMD 1 [email protected]  /// here send command
wait 3000
0AB1: @SEND_CMD 1 [email protected]  /// here send command
[email protected] = 0 // reset timer
end
end
end

:SEND_CMD
//0AB1: @SEND_CMD 1 $text
IF 0AA2: [email protected] = "samp.dll"
THEN
    [email protected] += 0x69340 // FUNC_SEND_CMD_03DL
    0AA5: call [email protected] num_param 1 pop 0 [email protected]
END
0AB2: 0
anti-afk_v2.cs - moves the camera, bypasses afk
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AKF"
then
if
[email protected] == false
then
[email protected] = true
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer       
else
[email protected] = false
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then      
if
[email protected] > 2000
then

099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0

[email protected] = 0 // reset timer
end
end
end
anti-afk_v2.1.cs - moves the camera, bypasses afk, working in pause
Code:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

0AB1: @memset 3 destination 7623723 value 144 size 8

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "ASD"
THEN
    IF
    [email protected] == FALSE
    THEN
        [email protected] = TRUE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~g~Activated" time 1337
    ELSE
        [email protected] = FALSE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~r~Deactivated" time 1337
    END
END

IF
[email protected] == TRUE
THEN
    0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
    0AB1: @memset 3 destination 5499528 value 144 size 6 // disable esc when game is minimized
    0AB1: @memset 3 destination 7623723 value 144 size 8 // disable mouse centering
    099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0
ELSE
    0A8C: write_memory 7634870 size 1 value 0 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 0 virtual_protect 1
    0AC6: [email protected] = label @SOMETHING1 offset
    0AB1: @memcpy 3 destination 5499528 source [email protected] size 6
    0AC6: [email protected] = label @SOMETHING2 offset
    0AB1: @memcpy 3 destination 7623723 source [email protected] size 8
END

END

:memcpy

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - source, [email protected] - size
// Example: 0AB1: @memcpy 3 destination [email protected] source [email protected] size [email protected]

dec([email protected])
for [email protected] = 0 to [email protected]
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
    [email protected] += 1
    [email protected] += 1
end

0AB2: ret 0

:memset

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - value, [email protected] - size
// Example: 0AB1: @memset 3 destination [email protected] value 32 size 1
[email protected] -= 1
for [email protected] = 0 to [email protected]
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
[email protected] += 1
end

0AB2: ret 0

:SOMETHING1
hex
0F 84 7B 01 00 00
end

:SOMETHING2
hex
50 51 FF 15 00 83 85 00
end





how to on/off ?
 

Ardde

New Member
Joined
Apr 6, 2020
Messages
2
Likes
0
Points
1
Location
Indonesia
1
#24
anti-afk_v1.cs - sends /g every 30 seconds, bypasses afk
Code:
{$CLEO .cs}
0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AFK"
then
if
3[email protected] == false
then
[email protected] = true   
0AD1: show_formatted_text_highpriority "anti-afk v1 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer          
else
[email protected] = false
0AD1: show_formatted_text_highpriority "anti-afk v1 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then         
if
[email protected] > 27000
then
0AC8: [email protected] = allocate_memory_size 260
0AD3: [email protected] = format "/g"   // here command format
0AB1: @SEND_CMD 1 [email protected]  /// here send command
wait 3000
0AB1: @SEND_CMD 1 [email protected]  /// here send command
[email protected] = 0 // reset timer
end
end
end

:SEND_CMD
//0AB1: @SEND_CMD 1 $text
IF 0AA2: [email protected] = "samp.dll"
THEN
    [email protected] += 0x69340 // FUNC_SEND_CMD_03DL
    0AA5: call [email protected] num_param 1 pop 0 [email protected]
END
0AB2: 0
anti-afk_v2.cs - moves the camera, bypasses afk
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

[email protected] = 0 // keep active timer
[email protected] = 0 // keep active timer

while true
wait 0

if
0ADC:   test_cheat "AKF"
then
if
[email protected] == false
then
[email protected] = true
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~g~Activated" time 1337
[email protected] = 0 // timer
[email protected] = 0 // timer       
else
[email protected] = false
0AD1: show_formatted_text_highpriority "~w~anti-afk v2 ~r~Deactivated" time 1337
end
end

if
[email protected] == true
then      
if
[email protected] > 2000
then

099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0

[email protected] = 0 // reset timer
end
end
end
anti-afk_v2.1.cs - moves the camera, bypasses afk, working in pause
Code:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 1000
0A8D: [email protected] = readMem 0xA444A0 sz 4 vp 0
UNTIL [email protected] == 1

0AB1: @memset 3 destination 7623723 value 144 size 8

WHILE TRUE
WAIT 0

IF
0ADC:   test_cheat "ASD"
THEN
    IF
    [email protected] == FALSE
    THEN
        [email protected] = TRUE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~g~Activated" time 1337
    ELSE
        [email protected] = FALSE
0AD1: show_formatted_text_highpriority "~w~anti-afk v2.1 ~r~Deactivated" time 1337
    END
END

IF
[email protected] == TRUE
THEN
    0A8C: write_memory 7634870 size 1 value 1 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 1 virtual_protect 1
    0AB1: @memset 3 destination 5499528 value 144 size 6 // disable esc when game is minimized
    0AB1: @memset 3 destination 7623723 value 144 size 8 // disable mouse centering
    099C: camera_set_shake_simulation_simple 1 time 4000.0 intensity 1.0
ELSE
    0A8C: write_memory 7634870 size 1 value 0 virtual_protect 1
    0A8C: write_memory 7635034 size 1 value 0 virtual_protect 1
    0AC6: [email protected] = label @SOMETHING1 offset
    0AB1: @memcpy 3 destination 5499528 source [email protected] size 6
    0AC6: [email protected] = label @SOMETHING2 offset
    0AB1: @memcpy 3 destination 7623723 source [email protected] size 8
END

END

:memcpy

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - source, [email protected] - size
// Example: 0AB1: @memcpy 3 destination [email protected] source [email protected] size [email protected]

dec([email protected])
for [email protected] = 0 to [email protected]
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0
    0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
    [email protected] += 1
    [email protected] += 1
end

0AB2: ret 0

:memset

var
[email protected] : integer
[email protected] : integer
[email protected] : integer
[email protected] : integer
end

// [email protected] - destination, [email protected] - value, [email protected] - size
// Example: 0AB1: @memset 3 destination [email protected] value 32 size 1
[email protected] -= 1
for [email protected] = 0 to [email protected]
0A8C: write_memory [email protected] size 1 value [email protected] virtual_protect 0
[email protected] += 1
end

0AB2: ret 0

:SOMETHING1
hex
0F 84 7B 01 00 00
end

:SOMETHING2
hex
50 51 FF 15 00 83 85 00
end

why I was still detected afk?
 
Joined
Apr 23, 2020
Messages
10
Likes
0
Points
1
Location
Târgu Mureș
1
#26
what do you mean? i can't turn it on
anti-afk_v1.cs - sends /g every 30 seconds, bypasses afk
0ADC: test_cheat "AFK"
TURN ON PRESS ON/OFF KEYBOARD : AFK


anti-afk_v2.cs - moves the camera, bypasses afk
0ADC: test_cheat "AKF"
TURN ON/OFF PRESS ON KEYBOARD : AKF


anti-afk_v2.1.cs - moves the camera, bypasses afk, working in pause
0ADC: test_cheat "ASD"
TURN ON PRESS ON/OFF KEYBOARD : ASD
 
Top