CLEO Help another gun

CLEO related

hossaincarlos

Active member
Joined
Jan 20, 2022
Messages
26
Reaction score
6
Location
Bosnia
hi, can somebody make this autoshoot to work only on deagle thanks.
 

Attachments

  • AutoShoot.cs
    1.7 KB · Views: 11

0x73616D

Active member
Joined
Apr 18, 2021
Messages
135
Solutions
1
Reaction score
68
Location
0x73616D
Try this
PHP:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}

0000: NOP
0001: wait 1750 ms
0AF8: samp add_message_to_chat "BlastHack.Net {ffffff}- ëó÷øèå ÷èòû îò BH Team!" color 6316287
0B34: samp register_client_command "as" to_label @Noname_289

:Noname_75
0001: wait 0 ms
00D6: if and
00E1:   player 0 pressed_key 6
0039:   31@ == 1
004D: jump_if_false @Noname_282
00D6: if
02D8:   actor $PLAYER_ACTOR current_weapon == 24
004D: jump_if_false @Noname_282
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
0AB1: call_scm_func @Noname_441 2 9@ $PLAYER_ACTOR 9@
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 3@v 6@v 2@ 1@ 0@ 1.0
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 6@v 10@v 2@ 1@ 0@ 9@
00D6: if
86BD:   not no_obstacles_between 3@ 4@ 5@ and 6@ 7@ 8@ solid 0 car 0 actor 1 object 0 particle 0
004D: jump_if_false @Noname_282
0B56: set_game_key 17 state 255

:Noname_282
0002: jump @Noname_75

:Noname_289
0B12: 31@ = 31@ XOR 1
00D6: if
0039:   31@ == 1
004D: jump_if_false @Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {44ff44}âêëþ÷åí" color 6316287
0002: jump @Noname_439

:Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {ff4444}âûêëþ÷åí" color 6316287

:Noname_439
0B43: samp cmd_ret

:Noname_441
0A96: 2@ = actor 1@ struct
000A: 2@ += 1836
0A8D: 2@ = read_memory 2@ size 1 virtual_protect 0
0085: 1@ = 0@ // (int)
00D6: if
0039:   2@ == 2
004D: jump_if_false @Noname_502
000A: 1@ += 25

:Noname_502
00D6: if
0039:   2@ == 3
004D: jump_if_false @Noname_527
000A: 1@ += 36

:Noname_527
0012: 1@ *= 112
000A: 1@ += 13150904
000A: 1@ += 8
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
0AB2: 1 1@ ret
 

Attachments

  • AutoShoot.cs
    19.5 KB · Views: 5

hossaincarlos

Active member
Joined
Jan 20, 2022
Messages
26
Reaction score
6
Location
Bosnia
Try this
PHP:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}

0000: NOP
0001: wait 1750 ms
0AF8: samp add_message_to_chat "BlastHack.Net {ffffff}- ëó÷øèå ÷èòû îò BH Team!" color 6316287
0B34: samp register_client_command "as" to_label @Noname_289

:Noname_75
0001: wait 0 ms
00D6: if and
00E1:   player 0 pressed_key 6
0039:   31@ == 1
004D: jump_if_false @Noname_282
00D6: if
02D8:   actor $PLAYER_ACTOR current_weapon == 24
004D: jump_if_false @Noname_282
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
0AB1: call_scm_func @Noname_441 2 9@ $PLAYER_ACTOR 9@
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 3@v 6@v 2@ 1@ 0@ 1.0
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 6@v 10@v 2@ 1@ 0@ 9@
00D6: if
86BD:   not no_obstacles_between 3@ 4@ 5@ and 6@ 7@ 8@ solid 0 car 0 actor 1 object 0 particle 0
004D: jump_if_false @Noname_282
0B56: set_game_key 17 state 255

:Noname_282
0002: jump @Noname_75

:Noname_289
0B12: 31@ = 31@ XOR 1
00D6: if
0039:   31@ == 1
004D: jump_if_false @Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {44ff44}âêëþ÷åí" color 6316287
0002: jump @Noname_439

:Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {ff4444}âûêëþ÷åí" color 6316287

:Noname_439
0B43: samp cmd_ret

:Noname_441
0A96: 2@ = actor 1@ struct
000A: 2@ += 1836
0A8D: 2@ = read_memory 2@ size 1 virtual_protect 0
0085: 1@ = 0@ // (int)
00D6: if
0039:   2@ == 2
004D: jump_if_false @Noname_502
000A: 1@ += 25

:Noname_502
00D6: if
0039:   2@ == 3
004D: jump_if_false @Noname_527
000A: 1@ += 36

:Noname_527
0012: 1@ *= 112
000A: 1@ += 13150904
000A: 1@ += 8
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
0AB2: 1 1@ ret
My game crashed when I shoot with deagle.
 

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
I have sampfuncs rn, and the script only works with deagle, but when I shoot with deagle it fire one bullet and then crash my game
PHP:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}
{$USE SAMPFUNCS}

0000: NOP
0001: wait 1750 ms
0AF8: samp add_message_to_chat "BlastHack.Net {ffffff}- ëó÷øèå ÷èòû îò BH Team!" color 6316287
0B34: samp register_client_command "as" to_label @Noname_289

:Noname_75
0001: wait 0 ms
00D6: if and
00E1:   player 0 pressed_key 6
0039:   31@ == 1
004D: jump_if_false @Noname_282
00D6: if
02D8:   actor $PLAYER_ACTOR current_weapon == 24
004D: jump_if_false @Noname_282
00A0: store_actor $PLAYER_ACTOR position_to 0@ 1@ 2@
0AB1: call_scm_func @Noname_441 2 9@ $PLAYER_ACTOR 9@
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 3@v 6@v 2@ 1@ 0@ 1.0
0AA6: call_method 5327216 struct 11989032 num_params 6 pop 0 6@v 10@v 2@ 1@ 0@ 9@
00D6: if
86BD:   not no_obstacles_between 3@ 4@ 5@ and 6@ 7@ 8@ solid 0 car 0 actor 1 object 0 particle 0
004D: jump_if_false @Noname_282
0B56: set_game_key 17 state 255

:Noname_282
0002: jump @Noname_75

:Noname_289
0B12: 31@ = 31@ XOR 1
00D6: if
0039:   31@ == 1
004D: jump_if_false @Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {44ff44}âêëþ÷åí" color 6316287
0002: jump @Noname_439

:Noname_381
0AF8: samp add_message_to_chat "[BH Team]: {ffffff}Àâòî-âûñòðåë {ff4444}âûêëþ÷åí" color 6316287

:Noname_439
0B43: samp cmd_ret

:Noname_441
0A96: 2@ = actor 1@ struct
000A: 2@ += 1836
0A8D: 2@ = read_memory 2@ size 1 virtual_protect 0
0085: 1@ = 0@ // (int)
00D6: if
0039:   2@ == 2
004D: jump_if_false @Noname_502
000A: 1@ += 25

:Noname_502
00D6: if
0039:   2@ == 3
004D: jump_if_false @Noname_527
000A: 1@ += 36

:Noname_527
0012: 1@ *= 112
000A: 1@ += 13150904
000A: 1@ += 8
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
0AB2: 1 1@ ret
jump @Noname_75
 

Attachments

  • AutoShoot.cs
    19.6 KB · Views: 3

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
Can you try to configure this one for deagle only maybe this one will work?
Try Please
PHP:
{$CLEO .cs}
0000: NOP
0@ = 0

:Noname_9
wait 0
if
   Pad.TestCheat("AUS")
jf @Noname_143
if
  0@ == 0
jf @Noname_99
0@ = 1
Text.PrintStringNow("AutoShot by Niko~n~~g~Enabled", 1000)
jump @Noname_143

:Noname_99
0@ = 0
Text.PrintStringNow("AutoShot by Niko~n~~r~Disabled", 1000)

:Noname_143
if
  0@ == 1
jf @Noname_230
if
   Pad.IsKeyPressed(2)
jf @Noname_230
02D8:   actor $PLAYER_ACTOR current_weapon == 24
cleo_call @Noname_402 1 9@ 6@
if
  6@ == 1
jf @Noname_230
cleo_call @Noname_237 1 8

:Noname_230
jump @Noname_9

:Noname_237
1@ = 12006488
005A: 1@ += 0@ // (int)
Streaming.LoadAllModels(1@, 1, 255, 0)
cleo_return 0

:Noname_272
Memory.GetPedPointer(2@, 1@)
2@ += 1836
   Hid.IsReleased(2@, 2@, 1, 0)
0085: 1@ = 0@ // (int)
if
  2@ == 2
jf @Noname_333
1@ += 25

:Noname_333
if
  2@ == 3
jf @Noname_358
1@ += 36

:Noname_358
1@ *= 112
1@ += 13150904
1@ += 8
   Hid.IsReleased(1@, 1@, 4, 0)
cleo_return 1 1@

:Noname_402
cleo_call @Noname_272 2 0@ $0[3] 9@
Char.GetCoordinates($0[3], 0@, 1@, 2@)
Memory.CallMethod(5327216, 11989032, 6, 0, 3@v, 6@v, 2@, 1@, 0@, 1.0)
Memory.CallMethod(5327216, 11989032, 6, 0, 6@v, 10@v, 2@, 1@, 0@, 9@)
if
   not World.IsLineOfSightClear(3@, 4@, 5@, 6@, 7@, 8@, False, False, True, False, False)
jf @Noname_562
10@ = 1
jump @Noname_569

:Noname_562
10@ = 0

:Noname_569
cleo_return 1 10@
 

Attachments

  • AutoShot-AUS.cs
    19.1 KB · Views: 1

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
I deleted sanny builder but i think you have to put

JavaScript:
if 02D8:   actor $PLAYER_ACTOR current_weapon == 24

then

          //do...

end
 
Top