SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 12/03/2010, 10:33 AM   #1
V1ceC1ty
High-roller
 
V1ceC1ty's Avatar
 
Join Date: Oct 2008
Location: West Australia
Posts: 1,875
Reputation: 221
Default [INC] Anti-Weapon Hack

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.
V1ceC1ty is offline   Reply With Quote
Old 12/03/2010, 11:31 AM   #2
Hip-hop
Huge Clucker
 
Join Date: Jun 2009
Posts: 217
Reputation: 1
Default Re: [INC] Anti-Weapon Hack

Good Job !
__________________

Hip-hop is offline   Reply With Quote
Old 12/03/2010, 11:42 AM   #3
[MWR]Blood
High-roller
 
Join Date: Apr 2009
Posts: 2,404
Reputation: 105
Default Re: [INC] Anti-Weapon Hack

nice and useful!
[MWR]Blood is online now   Reply With Quote
Old 24/03/2010, 12:11 AM   #4
kingforyou
Big Clucker
 
Join Date: Mar 2008
Posts: 124
Reputation: 0
Default Re: [INC] Anti-Weapon Hack

Nice i tried this but its work and dont work sometimes its works and sometimes doesnt work
kingforyou is offline   Reply With Quote
Old 24/03/2010, 07:16 AM   #5
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 4,107
Reputation: 886
Default Re: [INC] Anti-Weapon Hack

pawn Code:
CheckForRPG();      
CheckForMinigun();  
CheckForStatchel();
CheckForVision();

Finally, I got something to disable those weapons....
I'm Defiantly using this!


Btw good job
__________________

198.24.168.202:7777 - An awesome CnR server consisting of doozy features! Come, we have players!


Lorenc_ is offline   Reply With Quote
Old 24/03/2010, 11:18 AM   #6
DeaD_MaN
Big Clucker
 
DeaD_MaN's Avatar
 
Join Date: Mar 2010
Posts: 71
Reputation: 0
Default Re: [INC] Anti-Weapon Hack

How to make that proscribed weapons would be confiscated? Give code
DeaD_MaN is offline   Reply With Quote
Old 24/03/2010, 11:36 AM   #7
Adil
Gangsta
 
Adil's Avatar
 
Join Date: Aug 2008
Posts: 891
Reputation: 20
Default Re: [INC] Anti-Weapon Hack

Good one.
__________________
Signature

My Works
[NPC]LS Bus System
[MAP]Mansion

Adil is offline   Reply With Quote
Old 24/03/2010, 11:06 PM   #8
alf
Little Clucker
 
Join Date: Dec 2008
Posts: 9
Reputation: 0
Default Re: [INC] Anti-Weapon Hack

I have a problem,
I put the script anti weapons,
I connect to the server straight castor.
Help me.
alf is offline   Reply With Quote
Old 25/03/2010, 10:01 PM   #9
alf
Little Clucker
 
Join Date: Dec 2008
Posts: 9
Reputation: 0
Default Re: [INC] Anti-Weapon Hack

helpme plz
alf is offline   Reply With Quote
Old 25/03/2010, 10:03 PM   #10
XRVX
High-roller
 
Join Date: Aug 2009
Posts: 1,538
Reputation: 9
Default Re: [INC] Anti-Weapon Hack

put is also in your server.cfg files behind filterscripts
XRVX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] [TUT] Anti-weapon hack - Longer/more useful coole210 Tutorials 6 19/05/2010 11:11 PM
Anti weapon hack system 100% working 0.3 kingforyou Help Archive 8 24/03/2010 02:52 PM
Anti weapon hack Perker12345 Help Archive 0 14/02/2010 04:36 PM
Anti weapon hack help Perker12345 Help Archive 2 02/02/2010 09:30 AM
Anti Weapon Hack. BP13 Help Archive 12 25/08/2009 04:12 PM


All times are GMT. The time now is 09:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.