Posts: 603
Threads: 12
Joined: Sep 2007
Reputation:
0
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.
Posts: 1,110
Threads: 33
Joined: Nov 2007
Reputation:
0
Using it now, gonna test it later :P
Posts: 36
Threads: 1
Joined: Jan 2008
Reputation:
0
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)
Posts: 135
Threads: 5
Joined: Oct 2007
Reputation:
0
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
Posts: 10
Threads: 5
Joined: Sep 2009
Reputation:
0
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?
Posts: 6,129
Threads: 36
Joined: Jan 2009
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!
Posts: 1,593
Threads: 65
Joined: Nov 2008
Reputation:
0
That code looks nasty, Why not use PVar system I think it looks better and much better to use.