SA-MP Forums Archive
[Include] [INC] Anti-Weapon Hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Anti-Weapon Hack (/showthread.php?tid=133395)



[INC] Anti-Weapon Hack - V1ceC1ty - 12.03.2010

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.



Re: [INC] Anti-Weapon Hack - Hip-hop - 12.03.2010

Good Job !


Re: [INC] Anti-Weapon Hack - [MWR]Blood - 12.03.2010

nice and useful!


Re: [INC] Anti-Weapon Hack - kingforyou - 24.03.2010

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



Re: [INC] Anti-Weapon Hack - Lorenc_ - 24.03.2010

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


Btw good job


Re: [INC] Anti-Weapon Hack - DeaD_MaN - 24.03.2010

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


Re: [INC] Anti-Weapon Hack - Adil - 24.03.2010

Good one.


Re: [INC] Anti-Weapon Hack - alf - 24.03.2010

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


Re: [INC] Anti-Weapon Hack - alf - 25.03.2010

helpme plz


Re: [INC] Anti-Weapon Hack - XRVX - 25.03.2010

put is also in your server.cfg files behind filterscripts