12.03.2010, 09:33
Anti-Weapon Hack
What does it do?It's a very simple Include, It checks for any weapons you want to disallow in your server and kicks/bans the users of them.
How to use?
This is an include so you need to put the .inc files inside your /pawno/includes/ folder for it to work!
You also need to add #include <WeaponKick> or #include <WeaponBan> to the top of your script.
Functions:
pawn Code:
CheckForAll();
CheckForMeele();
CheckForHeavy();
CheckForAssault();
CheckForLight();
CheckForShotgun();
CheckForRifle();
CheckForRPG();
CheckForMinigun();
CheckForGrenade();
CheckForMolotov();
CheckForStatchel();
CheckForVision();
pawn Code:
#include <a_samp>
#include <WeaponKick> //Make sure to Comment this line if you want the player banned!!!
//#include <WeaponBan> //Un-Comment if you want to ban the player for weapon hacks
public OnGameModeInit()
{
//Un-Comment if you want to choose what people get kicked/banned for.
CheckForAll(); //Checks if any weapon is spawned
//CheckForMeele(); //Checks if Meele weapons are spawned
//CheckForHeavy(); //Checks if Heavy weapons are spawned
//CheckForAssault(); //Checks if Assualt weapons are spawned
//CheckForLight(); //Checks if Light weapons are spawned
//CheckForShotgun(); //Checks if Shotguns are spawned
//CheckForRifle(); //Checks if Rifles are spawned
//CheckForRPG(); //Checks if RPG's and Heatseakers are spawned
//CheckForMinigun(); //Checks if Miniguns are spawned
//CheckForGrenade(); //Checks if Grenades are spawned
//CheckForMolotov(); //Checks if Molotovs are spawned
//CheckForStatchel(); //Checks if Statchel charges are spawned
//CheckForVision(); //Checks if Night vision/Heat vision goggles are spawned
return 1;
}
![](http://solidfiles.com/info_imgs/2YSx.jpg)
Information
It's my first Include and I could have done better, probably took me about 30mins to make and because I felt like making it
![Wink](images/smilies/wink.png)
Yes you could have easily made it yourself, I don't care as I said I felt like making it.
No credits needed as most people steal stuff anyway.