[FilterScript] Anti-AmmoHack v1.0 by iRage
#1

Introduction
It's a simple filterscript that detects if any player is using infinite ammo hacks and warns everybody online about it.

How does it work?
Basically, it uses OnPlayerKeyStateChange to save the amount of bullets a player has in the weapon he's holding before it gets used, then it executes a 600ms timer that checks if the bullets/item amount was decremented or not.

Files Needed
You will need sscanf and zcmd for this to compile successfully.


Download
Pastebin
Reply
#2

Seems Nice.
Good Work
Reply
#3

awesome.
Reply
#4

looks nice!
Reply
#5

Good job man!
Reply
#6

nice anti ammo hack fs
Reply
#7

will use it
Reply
#8

I checked it out, good job
Reply
#9

There are situations in which this script can lead to false detections: for example if you have a weapon like Desert Eagle or M4 and you stand next to a wall, you won't shoot. Or if you stand next to another player, you will punch him instead of shooting him. Or if you have sniper rifle or rocket launcher and you don't press right mouse button, you won't shoot either.

Apart from that, I have noticed that in OnPlayerKeyStateChange you use a string to store the name of the weapon with GetWeaponName, but then you don't use that string anywhere. Why?
Reply
#10

This script might be outdated, it was one of my first codes since the comeback I made to SA-MP scripting.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)