Quantcast

Jump to content

» «
Photo

Need help

4 replies to this topic
windowsaqw1
  • windowsaqw1

    Player Hater

  • Members
  • Joined: 23 Sep 2012

#1

Posted 31 July 2014 - 11:29 AM

I downloaded a cleo mod which removes the desert eagle slow shooting.
but there is a feature which makes me crash.
The feature gives me a desert eagle with 5000 ammo, so how do I remove that?

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0662: printstring "MADE BY FYP, RELASED ON: WWW.OPCODE.DE.VU, (GOT PERMISSION FROM FYP)" 
thread "f*ckIN_PLUS_C" 

:f*ckIN_PLUS_C_89
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
0ADC:   test_cheat "PLUSC" 
else_jump @f*ckIN_PLUS_C_89 
0ACD: show_text_highpriority "AUTO +C BUG ACTIVATED" time 700 
jump @f*ckIN_PLUS_C_153 

:f*ckIN_PLUS_C_153
wait 0 
if and
   Player.Defined($PLAYER_CHAR)
0ADC:   test_cheat "PLUSC" 
else_jump @f*ckIN_PLUS_C_189 
jump @f*ckIN_PLUS_C_218 

:f*ckIN_PLUS_C_189
wait 0 
if 
   Actor.HasWeapon($PLAYER_ACTOR, 24)
else_jump @f*ckIN_PLUS_C_382 
jump @f*ckIN_PLUS_C_259 

:f*ckIN_PLUS_C_218
wait 0 
0ACD: show_text_highpriority "AUTO +C BUG DEACTIVATED" time 700 
jump @f*ckIN_PLUS_C_89 

:f*ckIN_PLUS_C_259
wait 30 
if 
00E1:   player 0 pressed_key 17 
else_jump @f*ckIN_PLUS_C_153 
if 
02D8:   actor $PLAYER_ACTOR current_weapon == 24 
else_jump @f*ckIN_PLUS_C_371 
wait 110 
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 0)
0A8C: write_memory 12006520 size 2 value 255 virtual_protect 0 
wait 60 
0812: AS_actor $PLAYER_ACTOR perform_animation "HIT_WALK" IFP "PED" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time 1 // versionB 
jump @f*ckIN_PLUS_C_371 

:f*ckIN_PLUS_C_371
wait 0 
jump @f*ckIN_PLUS_C_259 

:f*ckIN_PLUS_C_382
wait 0 
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000)
jump @f*ckIN_PLUS_C_259 


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 31 July 2014 - 03:42 PM Edited by ZAZ, 31 July 2014 - 03:43 PM.

remove this line: Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000)
in the last code block
 

:fakIN_PLUS_C_382
wait 0 
//Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000) <--- remove it
jump @fakIN_PLUS_C_259
  • In45do and Ezekiel ♂ like this

windowsaqw1
  • windowsaqw1

    Player Hater

  • Members
  • Joined: 23 Sep 2012

#3

Posted 31 July 2014 - 07:18 PM

 

remove this line: Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000)
in the last code block
 

:fakIN_PLUS_C_382
wait 0 
//Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000) <--- remove it
jump @fakIN_PLUS_C_259

It crashes if I remove it


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#4

Posted 01 August 2014 - 01:11 PM

the script don't crash for me, but works incorrect
the other give weapon with ammo 0 seems not executed and there follows a memory manipulation code
i don't know what memadress but remove that code or both

Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 0)// seems not executed or manipulated by following line
0A8C: write_memory 12006520 size 2 value 255 virtual_protect 0// <-- remove it

and make the privious change back

:fakIN_PLUS_C_382
wait 0 
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000)
jump @fakIN_PLUS_C_259

Question: which sannybuilder version are you working with and which sascm.ini are you using?


windowsaqw1
  • windowsaqw1

    Player Hater

  • Members
  • Joined: 23 Sep 2012

#5

Posted 01 August 2014 - 07:44 PM

the script don't crash for me, but works incorrect
the other give weapon with ammo 0 seems not executed and there follows a memory manipulation code
i don't know what memadress but remove that code or both

Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 0)// seems not executed or manipulated by following line
0A8C: write_memory 12006520 size 2 value 255 virtual_protect 0// <-- remove it

and make the privious change back

:fakIN_PLUS_C_382
wait 0 
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, DesertEagle, 5000)
jump @fakIN_PLUS_C_259

Question: which sannybuilder version are you working with and which sascm.ini are you using?

 

I have no idea, I'm a total noob at this.
Anyways, would you mind uploading your cleo? because I'm so frustrated right now :/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users