PDA

View Full Version : [Include] [INC] Serverside Weapon Hacking


Eazy_Efolife
27/01/2010, 09:32 PM
Information
This is a simple Serverside Weapon hack. Nuff said, This is easy to install also:

1: Put this under "OnPlayerDeath" and "OnPlayerConnect":

ResetPlayerWeaponStats(playerid);

2: Put this under OnGameModeInit()

StartServerSideWeapon();



Download
http://pastebin.com/m5443a919

Chaprnks
27/01/2010, 09:36 PM
I currently use server-side weapons for my server. Its a pretty basic concept, although the only tricky part to get working efficient was removing the variable for that weapon when the ammo went away. I tried detecting ammo, and changes > would be hacking. The problem with this was the 65535 bug.

Redirect Left
27/01/2010, 09:39 PM
looks good, handy ;)

John Rockie
27/01/2010, 09:41 PM
Sec..

?

Eazy_Efolife
27/01/2010, 09:41 PM
Sec..

?


I have to retype it.. I messed up something in the code..

John Rockie
27/01/2010, 09:41 PM
K

Eazy_Efolife
27/01/2010, 09:42 PM
K



http://pastebin.com/m5443a919

John Rockie
27/01/2010, 09:43 PM
Cool

CameronF91
27/01/2010, 09:46 PM
Awesome!

RoamPT
28/01/2010, 12:28 AM
Using it now, gonna test it later :P

SureShot
29/01/2010, 11:45 AM
Whats with Ammu-Nation???

DiddyBop
29/01/2010, 11:58 AM
Good job.

Vetle
29/01/2010, 12:09 PM
Whats with Ammu-Nation???


using amuunation will ban you

SureShot
29/01/2010, 12:11 PM
I know :P

matrixismyname
29/01/2010, 05:28 PM
you should add @ResetPlayerWeaponsStats , ResetPlayerWeapons(playerid); so the user will need to replace all ResetPlayerWeapons with ResetPlayerWeaponsStats. I think its better (don't know for sure)

Vetle
29/01/2010, 07:17 PM
you should take note of:

caddy gives u a golf club
some police vehicles gives u shotgun
ammunation gives you guns < posted before


thats all i can think of atm

Eazy_Efolife
29/01/2010, 07:18 PM
you should take note of:

caddy gives u a golf club
some police vehicles gives u shotgun
ammunation gives you guns < posted before


thats all i can think of atm


Someone mentioned this to me the other day, I will take a look into it and see if I can do something..

Mr.Z
21/05/2010, 11:52 AM
This is nice idea to anti weapon hack... but has a problem:
The weapons obtained through weapon pickups seem hacks.
Is there any solution for this?

Calgon
21/05/2010, 12:03 PM
That's an utter mess. There's 12 weapon slots you could be using, instead you've created a variable for each weapon, which even consists of 500 cells - 40x500x4=80000 (each cell alone is 4 bytes).

Anyhow, PVars are the future!

shady91
21/05/2010, 12:04 PM
That code looks nasty, Why not use PVar system I think it looks better and much better to use.

Vetle
21/05/2010, 02:13 PM
That code looks nasty, Why not use PVar system I think it looks better and much better to use.

this script was made before pvars was made

shady91
21/05/2010, 09:39 PM
That code looks nasty, Why not use PVar system I think it looks better and much better to use.

this script was made before pvars was made
Oh, Well sorry then ;)