Anti Cheat (Weapon Hack) V1.0 -
CROSS_Hunter - 02.09.2012
Anti Cheat
Release Information
There will be lots and lots of versions of that Anti-Cheat and i will be releasing them soon.. like this weapon anti hack and anti car spawns and Anti-Money Hack and lots more but this will be the first release in the ANTI-CHEAT Category
Forbidden Weapons (These can be Editable.. Just Change the Id of the Weapons)
1.Grenade
2.Tear Gas
3.Rocket Launcher
4.Heat Seeking Rocket Launcher
5.Flame Thrower
6.MiniGun
7.Satchel Charger [Remote Grenades]
8.Detonator
9.Molotov
More coming Next Release.. or you can just tell me what weapons i add
How To Use
pawn Код:
//under your includes
#include <AWH>
Editable Things in the Include
pawn Код:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
How To edit?
There is 2 kinds of edit to this..
1. Removing a weapon from the ilegal weapons list
2. Adding a Weapon to the ilegal weapons list
Lets talk about the first one
Removing is simple done by :
pawn Код:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35
I want to remove id 35[RPG] what shall i do?
pawn Код:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17
Never for get to remove the " || "
because it means this or that so if u leave it the include will assume as this or or [cuz || || ] so it may bug at this spot
2nd thing:
Adding a weapon to the list
pawn Код:
if(GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 35 ||
GetPlayerWeapon(playerid) == 36 || GetPlayerWeapon(playerid) == 37 || GetPlayerWeapon(playerid) == 38 ||
GetPlayerWeapon(playerid) == 39 || GetPlayerWeapon(playerid) == 40 || GetPlayerWeapon(playerid) == 18)
for example i want to add weapon id 26 [swan off shot gun]
What shall i do?
First i add || after the last weapon id in the list
then i add this code
pawn Код:
GetPlayerWeapon(playerid) == 26
so it looks like
pawn Код:
|| GetPlayerWeapon(playerid) == 26 //|| other weapon here same system
Bugs
Non at the moment if you find any feel free to post
Change Log:
Код:
Anti Cheat. Weapon Anti-Hack V1.0 Released
Download
MediaFire.com
Pastebin.com
Re: Anti Cheat (Weapon Hack) V1.0 -
CROSS_Hunter - 03.09.2012
any comments?
Re: Anti Cheat (Weapon Hack) V1.0 -
ikkentim - 03.09.2012
Comments:
-Don't bump
-When using this incude, the OnPlayerUpdate callback is occupied, you need to hook it.
-It's small, I'd rather put it in my GM instead of an include.
-I'd make an array with forbidden weapons, making AddForbiddenWeapon(...) functions possible.
-I'd make it call an callback instead of Banning directly.
Re: Anti Cheat (Weapon Hack) V1.0 -
CROSS_Hunter - 03.09.2012
I am working currently on a full Anti Cheat pack with anti money hack, jet pack and i included the weapons anti Hack as well and so as Anti Text Spam and Anti Commands Spam
And why would you want to make a Callback instead of banning directly?