SA-MP Weapon Spawner in Visual Basic + Source Code

Posts 1–13 of 13 · Page 1 of 1
SA-MP Weapon Spawner in Visual Basic + Source Code
Hi!
Today i have made a little tool in Visual Basic that basically is spawning the weapons in SA-MP game (works with all versions i think..)
Only bug i spotted is that when you spawn a gun & run out of ammo & spawn it again, you wont really shoot anymore (just anim) and i have no idea why that happens.

I also provide the source code in the rar archive with detailed comments, so "newbies" or just people that didnt know it can learn how, also i made a function that automatically calculates the offset (the weapons are divided to slots, first slot is CPed + 5A0 and every next is +1C, so i put the +1C code into a loop and it loops as many times as our slot number)
You got everything explained in the source code (i used Visual Basic 2008 Express)

How to use it:
Select the weapon from combo box
Customize the ammo value
Press SPAWN

Scans:
https://www.virustotal.com/pl/file/1...is/1373142928/
SAMP_Weapon_Spawn_VB.rar - Skaner malware'u Jotti
The Ikarus is detecting something, and i have no idea why. Anyways if you dont trust then look up the source code or even compile it on your own, i never ever created a virus.
Screen:


Download in attachment
SAMP_Weapon_Spawn_VB_mpgh.net.rar147 KB · 1,704 downloads 2/61 malicious
thxxxxxxxxxxxxxxxxxxxxxx
Quote Originally Posted by silentus View Post
Download in attachment
could you provide some screenshots?
It would be cool to see if this works where I want it to =D
@sandyclawz what do you mean ? It works.
If someone wants to "cut" out the SpawnWeapon() function to use it without any Combo Boxes and other things, then you would need to create some kind of list of weapon IDs and their slots, you could also use a IF operator on the "id" variable and get the proper slot (from a list i think)
Anyways i can help, all you need to have is the MemoryModule.vb (its a universal module for editing the memory) if someone has a problem then just PM me and we can talk on Skype
One question. When you find the adress of weapon how you spawn? with what program? help me
You don't find the weapon address but the address to slot, then you just write the weapon ID to this address and also the ammo value otherwise you won't see it ( ammo addy is slot addy + 12 and its not a pointer, you just add 12 to that address.
There's a website with gta sa addresses, I'm on my phone so I can't give you now. There's a list of weapon slots & IDs that go to them ( you can't spawn minigun in other slot than heavy weapons )
Is this currently detected on anti-cheat servers? Has someone tested on popular servers with good anti-cheat?
Quote Originally Posted by xAcidicOverlord View Post
Is this currently detected on anti-cheat servers? Has someone tested on popular servers with good anti-cheat?
I got banned from a popular server for using this "Hacked Weapon (MP5)" even though the MP5 was actually a gun you could buy on that server. I wouldn't reccomend it if its a server you like, but just for a piss-fart around, go ahead.
Oh, so i'm guessing this dosn't work on the Roleplay servers?
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us