CLEO Help wep hack freezes

CLEO related
Status
Not open for further replies.

y0mike

Active member
Joined
May 10, 2014
Messages
97
Reaction score
41
Location
mizus girl's house
ive been trying to make a wep hack for a while now but i gave up for a while. i was editing a small simple one which just gives you a deagle but for some reason after like 5 seconds it just freezes me??

{$CLEO .cs}
0000: NOP
03A4: name_thread '1'
0662: NOP "2"

:NONAME_10
0B2E: 1@ = read_samp_memory offset 0x41E0 size 1
0B2D: write_samp_memory offset 0x41E0 value 0xC3 size 1
0B2E: 2@ = read_samp_memory offset 0x13B50 size 2
0B2D: write_samp_memory offset 0x13B50 value 0xC390 size 2
jump @NONAME_40

:NONAME_40
Model.Load(#DESERT_EAGLE)
wait 10
if and
  $ONMISSION == 0
  not Actor.Driving($PLAYER_ACTOR)
0AB0:  key_pressed 51
0AB0:  key_pressed 16
jf @NONAME_40
0ACD: show_text_highpriority "~G~ DEAGLE ON" time 2000
wait 100 ms
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 24
01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 9999
Model.Destroy(#DESERT_EAGLE)
wait 2900
jump @NONAME_405

:NONAME_405
if
0ADC:  test_cheat "deagle"
jf @NONAME_405
jump @NONAME_410

:NONAME_410
048F: actor $PLAYER_ACTOR remove_weapons
0B2D: write_samp_memory offset 0x41E0 value 1@ size 1
0ACD: show_text_highpriority "~R~ DEAGLE OFF" time 2000
jump @NONAME_40
 

Whitetigerswt

Member
Joined
Nov 27, 2014
Messages
6
Reaction score
0
You have to install the no-AC patch in SA-MP as well.

see here: https://github.com/BlastHackNet/mod_s0beit_sa/blob/master/src/samp.cpp#L407-415
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Since you use SAMPFUNCS you don't need to patch the ac.
All you need to do is add a 'wait 0' after :NONAME_405.


Code:
:NONAME_405
wait 0
if
0ADC:   test_cheat "deagle"
jf @NONAME_405
jump @NONAME_410
 
Status
Not open for further replies.
Top