SA-MP Forums Archive
[Include] [INC] Serverside Weapon Hacking - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Serverside Weapon Hacking (/showthread.php?tid=123887)

Pages: 1 2


[INC] Serverside Weapon Hacking - Eazy_Efolife - 27.01.2010

Information
Code:
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
Code:
http://pastebin.com/m5443a919



Re: [INC] Serverside Weapon Hacking - Chaprnks - 27.01.2010

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.


Re: [INC] Serverside Weapon Hacking - Redirect Left - 27.01.2010

looks good, handy


Re: [INC] Serverside Weapon Hacking - John Rockie - 27.01.2010

Quote:
Originally Posted by Compton's Eazy E
Sec..
?


Re: [INC] Serverside Weapon Hacking - Eazy_Efolife - 27.01.2010

Quote:
Originally Posted by John Rockie
Quote:
Originally Posted by Compton's Eazy E
Sec..
?
I have to retype it.. I messed up something in the code..


Re: [INC] Serverside Weapon Hacking - John Rockie - 27.01.2010

K



Re: [INC] Serverside Weapon Hacking - Eazy_Efolife - 27.01.2010

Quote:
Originally Posted by John Rockie
K
http://pastebin.com/m5443a919


Re: [INC] Serverside Weapon Hacking - John Rockie - 27.01.2010

Cool


Re: [INC] Serverside Weapon Hacking - CameronF91 - 27.01.2010

Awesome!


Re: [INC] Serverside Weapon Hacking - RoamPT - 27.01.2010

Using it now, gonna test it later :P


Re: [INC] Serverside Weapon Hacking - SureShot - 29.01.2010

Whats with Ammu-Nation



Re: [INC] Serverside Weapon Hacking - DiddyBop - 29.01.2010

Good job.


Re: [INC] Serverside Weapon Hacking - Vetle - 29.01.2010

Quote:
Originally Posted by SureShot
Whats with Ammu-Nation
using amuunation will ban you


Re: [INC] Serverside Weapon Hacking - SureShot - 29.01.2010

I know :P


Re: [INC] Serverside Weapon Hacking - matrixismyname - 29.01.2010

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)


Re: [INC] Serverside Weapon Hacking - Vetle - 29.01.2010

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


Re: [INC] Serverside Weapon Hacking - Eazy_Efolife - 29.01.2010

Quote:
Originally Posted by Vetle
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..


Re: [INC] Serverside Weapon Hacking - Mr.Z - 21.05.2010

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?


Re: [INC] Serverside Weapon Hacking - Calgon - 21.05.2010

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!


Re: [INC] Serverside Weapon Hacking - shady91 - 21.05.2010

That code looks nasty, Why not use PVar system I think it looks better and much better to use.