View Full Version : [Include] [INC] Serverside Weapon Hacking
Eazy_Efolife
27/01/2010, 08: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, 08: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, 08:39 PM
looks good, handy ;)
John Rockie
27/01/2010, 08:41 PM
Sec..
?
Eazy_Efolife
27/01/2010, 08:41 PM
Sec..
?
I have to retype it.. I messed up something in the code..
John Rockie
27/01/2010, 08:41 PM
K
Eazy_Efolife
27/01/2010, 08:42 PM
K
http://pastebin.com/m5443a919
John Rockie
27/01/2010, 08:43 PM
Cool
CameronF91
27/01/2010, 08:46 PM
Awesome!
RoamPT
27/01/2010, 11:28 PM
Using it now, gonna test it later :P
SureShot
29/01/2010, 10:45 AM
Whats with Ammu-Nation???
DiddyBop
29/01/2010, 10:58 AM
Good job.
Vetle
29/01/2010, 11:09 AM
Whats with Ammu-Nation???
using amuunation will ban you
SureShot
29/01/2010, 11:11 AM
I know :P
matrixismyname
29/01/2010, 04: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, 06: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, 06: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..
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 ;)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.