How to make weapon hack

TUTORIAL

Okay so this is what you do.
Open one of these in SannyBuilder.
You should get something like this.

Code:
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
thread 'GIVE_WEAPON' 
jump @GIVE_WEAPON_26 

:GIVE_WEAPON_26
wait 0 
if 
0AB0:   key_pressed 49 
else_jump @GIVE_WEAPON_26 
jump @GIVE_WEAPON_52 

:GIVE_WEAPON_52
wait 0 
Model.Load(#MINIGUN)
if 
   Model.Available(#MINIGUN)
else_jump @GIVE_WEAPON_52 
01B2: give_actor $PLAYER_ACTOR weapon 38 ammo 250 // Load the weapon model before using this 
wait 100 
jump @GIVE_WEAPON_26

If you want to change what weapon it gives you first you have to change the weapon object ID (The ID's are all listed below)
Find this line:
Code:
Model.Available(#MINIGUN)
and
Code:
Model.Load(#MINIGUN)
Where is says "MINIGUN" Put in the weapon object ID that you wish.

Now, you have to edit the weapon ID which is in this line:

Code:
01B2: give_actor $PLAYER_ACTOR weapon 31 ammo 250 // Load the weapon model before using this

Where is says "Weapon 31" 31 is your weapon ID. (They are also listed below, the weapon object ID and weapon ID's aren't the same, so just read them all below)
What you have to do it find the weapon ID of the Model ID that you put in)
EG: You wanted brass knuckles, the object ID is: 231.
So the Weapon ID is: 1.

Make sure you don't put the object ID and weapon ID from 2 different weapons or this won't work.
You can change the activation key with this line:
Code:
0AB0:   key_pressed 50
There are virtual keys for every number. 50=2. I have them all listed in another topic. (Or just google them)

Now, when you are done editing this, Click the running man up the top. Or click F6. This will compile the script.
You can now close SannyBuilder. Your new weapon hack should be in the folder that you had the script you edited in.
Copy and paste into your CLEO folder.
Open your game, press the activation key and, well. Magic happens.

This has to be one of the easiest cleo scripts to make, so don't get this wrong :D :D:D

_______________________________________________________________________________________________




Not that exciting, I think anyone should be able to do it.


OBJECT MODEL ID'S -
Brass Knuckles: 231 
Gold Club: 333
Nightstick: 334
Knife: 335
Baseball Bat: 336
Shovel: 337
Pool Cue: 338
Katana: 339
Chainsaw: 341
Double-ended Dildo (You love it): 321
Dildo: 322
Vibrator: 323
Silver Vibrator: 324
Flowers: 325
Cane: 326
Grenade: 342
Tear Gas: 343
Molotov Cocktail: 344
9mm: 346
Silenced 9mm: 347
Desert Eagle: 348
Shotgun: 349
Sawnoff Shotgun: 350
Combat Shotgun: 351
Micro SMG/Uzi: 352
MP5: 353
AK-47: 355
M4: 356
Tec-9: 372
Country Rifle: 357
Sniper: 358
RPG: 359
HS Rocket: 360
Flame thrower: 361
Minigun: 362
Satchel Charge: 363
Detonator (For satchel charge): 364
Spray Can: 365
Fire extinguisher: 366
Camera: 367
Night Vision Goggles: 368
Thermal Goggles: 369
Parachute: 371

_______________________________________________________________________________________________

WEAPON ID'S:
Brass Knuckles: 1
Gold Club: 2
Nightstick: 3
Knife: 4
Baseball Bat: 5
Shovel: 6
Pool Cue: 7
Katana: 8
Chainsaw: 9
Double-ended Dildo (You love it): 10
Dildo: 11
Vibrator: 12
Silver Vibrator: 13
Flowers: 14
Cane: 15
Grenade: 16
Tear Gas: 17
Molotov Cocktail: 18
9mm: 22
Silenced 9mm: 23
Desert Eagle: 24
Shotgun: 25
Sawnoff Shotgun: 26
Combat Shotgun: 27
Micro SMG/Uzi: 28
MP5: 29
AK-47: 30
M4: 31
Tec-9: 32
Country Rifle: 33
Sniper: 34
RPG: 35
HS Rocket: 36
Flame thower: 37
Minigun: 38
Satchel Charge: 39
Detonator (For satchel charge): 40
Spray Can: 41
Fire extinguisher: 42
Camera: 43
Night Vision Goggles: 44
Thermal Goggles: 45
Parachute: 46





 

Attachments

  • MINIGUN_KEY_1.zip
    6.2 KB · Views: 166
  • M4_KEY_2.zip
    6.2 KB · Views: 183
  • GRENADE_KEY_3.zip
    6.2 KB · Views: 108
  • COMBAT_SHOTGUN_KEY_4.zip
    6.3 KB · Views: 203

toplel

Member
Joined
Feb 24, 2013
Messages
13
Reaction score
0
Re: Weapon Hacks + tutorial

How can I spawn multiple weapons with this utility? Of course, said weapons are to be spawned under the request of a single keystroke; That is, spawn them all simultaneously.
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Re: Weapon Hacks + tutorial

How can I spawn multiple weapons with this utility? Of course, said weapons are to be spawned under the request of a single keystroke; That is, spawn them all simultaneously.
To spawn more than 2 weapons, you should put "Model.Load(#weapon)" and the "Model.Available(#weapon)" serially, and then, putting the
Code:
01B2: give_actor $PLAYER_ACTOR weapon <weapon id> ammo <ammo>
each line.

With this way you can spawn every weapon, like i made on 12/11/2012 here.

In that mod you don't press only 1 key, you type it's name from the keyboard. like : typing "DEAGLE" to spawn a deagle with some ammos.

To make it, you will need read_memory and write_memory (to clear buffer). Being used like this :

Code:
:xzytro_01
0A8D: 1@ = read_memory 0x00969110 size 2 virtual_protect 0
if
04A4:   1@ == 0x4D4D // ACTIVATES WHEN YOU TYPE 'MM'
004D: jump_if_false @xzytro_01
03E5: text_box 'CHEAT1'
0109: player $PLAYER_CHAR money += 1000000
0A8C: write_memory 0x00969110 size 2 value 0 virtual_protect 0 //clear the buffer
0A93: end_custom_thread
If you will type XZYTRO (which is longer), then you will need two lines of read_memory, like below :

Code:
:xzytro_01
0A8D: 1@ = read_memory 0x00969110 size 4 virtual_protect 0 //
0A8D: 2@ = read_memory 0x00969114 size 2 virtual_protect 0 //
if  and
04A4:   1@ == 0x5954524F //checks if 1@ = YTRO
04A4:   2@ == 0x585A //checks if 2@ = XZ
004D: jump_if_false @xzytro_01
0109: player $PLAYER_CHAR money += 1000000
0A8C: write_memory 0x00969110 size 4 value 0 virtual_protect 0 //clear the buffer
0A8C: write_memory 0x00969114 size 2 value 0 virtual_protect 0 //clear the buffer
0A93: end_custom_thread

To get the keys, use the list below
Code:
40 = @
41 = A
42 = B
43 = C
44 = D
45 = E
46 = F
47 = G
48 = H
49 = I
4A = J
4B = K
4C = L
4D = M
4E = N
4F = O
50 = P
51 = Q
52 = R
53 = S
54 = T
55 = U
56 = V
57 = W
58 = X
59 = Y
5A = Z
5B = [
5C = 
5D =]
5E =^

You can also combine this tutorial with capslock's tutorial, so you can make your own mod ;) ;);)
 

toplel

Member
Joined
Feb 24, 2013
Messages
13
Reaction score
0
Re: Weapon Hacks + tutorial

That I will!
This knowledge is of good use to me because the server I frequently visit on a endearing basis has a weapon anti-cheat set to detect overly amounts of ammo. Thus, I wanted to script a weapon spawner set to distribute a designated amount of ammunition for each weapon, and one comprised of a set without blacklisted weapons.
On a side note, the brass knuckle's ID is wrong. It's 331. I assume it was a mistake since one digit is in contrast, but it's good to have that fixed in case someone else requires assistance of that very list.
 

Dem0n

Active member
Joined
Apr 1, 2013
Messages
82
Reaction score
0
Location
Winland ^^
Re: Weapon Hacks + tutorial

This helped me, thanks.

E:More tut like this one?
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
Re: Weapon Hacks + tutorial

Hey How To Add More Damage On Weapon?
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
Re: Weapon Hacks + tutorial

i see on youtube one hit kill iam gonna use it for zombie severs
 

Coke.

Member
Joined
Feb 20, 2013
Messages
8
Reaction score
0
Re: Weapon Hacks + tutorial

maybe with rapidfire, but thats not synced and you die one hit too..
 

dildotroll

Active member
Joined
Mar 23, 2013
Messages
142
Reaction score
0
Re: Weapon Hacks + tutorial

well i cant get this to work
any help in what i did wrong
i tried to follow it as much as possible but its not entirely the same as you said
sorry im a noob with this shit

// This file was decompiled using sascm.ini published by GTAG ( http://gtag.gtagaming.com/opcode-database ) on 14.6.2013

{$VERSION 3.1.1000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'GIVE_WEAPON'
jump @GIVE_WEAPON_26

:GIVE_WEAPON_26
wait 0
if and
0AB0: key_pressed 74
0AB0: key_pressed 106
jf @blubb
else_jump @GIVE_WEAPON_26
jump @GIVE_WEAPON_52

:GIVE_WEAPON_52
wait 0
Model.Load(#351)
if
Model.Available(#351)
else_jump @GIVE_WEAPON_52
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, 27, 300)
wait 100
jump @GIVE_WEAPON_26
 

dildotroll

Active member
Joined
Mar 23, 2013
Messages
142
Reaction score
0
Re: Weapon Hacks + tutorial

combat shotgun with 300 ammo and activation of j and * but i couldnt get it to work
 

cApSL0ckb0mb3r

Active member
Joined
Feb 18, 2013
Messages
196
Reaction score
3
Re: Weapon Hacks + tutorial

// This file was decompiled using sascm.ini published by GTAG ( http://gtag.gtagaming.com/opcode-database ) on 14.6.2013

{$VERSION 3.1.1000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'GIVE_WEAPON'
jump @GIVE_WEAPON_27

:GIVE_WEAPON_27
wait 0
if and
0AB0: key_pressed 74
0AB0: key_pressed 106
jf @blubb
else_jump @GIVE_WEAPON_27
jump @GIVE_WEAPON_27

:GIVE_WEAPON_27
wait 0
Model.Load(#351)
if
Model.Available(#351)
else_jump @GIVE_WEAPON_27
Actor.GiveWeaponAndAmmo($PLAYER_ACTOR, 27, 300)
wait 100
jump @GIVE_WEAPON_27
 

dildotroll

Active member
Joined
Mar 23, 2013
Messages
142
Reaction score
0
Re: Weapon Hacks + tutorial

i keep getting this
on both what i did and what u gave me
23vb9k0.jpg
 
Top