[Include] [INC] Serverside Weapon Hacking
#1

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
Reply
#2

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.
Reply
#3

looks good, handy
Reply
#4

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

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..
Reply
#6

K
Reply
#7

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

Cool
Reply
#9

Awesome!
Reply
#10

Using it now, gonna test it later :P
Reply
#11

Whats with Ammu-Nation
Reply
#12

Good job.
Reply
#13

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

I know :P
Reply
#15

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)
Reply
#16

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
Reply
#17

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..
Reply
#18

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?
Reply
#19

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!
Reply
#20

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


Forum Jump:


Users browsing this thread: 1 Guest(s)