[Include] [INC] Anti-Weapon Hack
#1

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();
Example Script:
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;
}
Download


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

Good Job !
Reply
#3

nice and useful!
Reply
#4

Nice i tried this but its work and dont work sometimes its works and sometimes doesnt work
Reply
#5

pawn Code:
CheckForRPG();      
CheckForMinigun();  
CheckForStatchel();
CheckForVision();
Finally, I got something to disable those weapons....
I'm Defiantly using this!


Btw good job
Reply
#6

How to make that proscribed weapons would be confiscated? Give code
Reply
#7

Good one.
Reply
#8

I have a problem,
I put the script anti weapons,
I connect to the server straight castor.
Help me.
Reply
#9

helpme plz
Reply
#10

put is also in your server.cfg files behind filterscripts
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)