PDA

View Full Version : [FilterScript] [FS] Anti-Illegal Weapons


Kinetic
08/04/2008, 01:47 PM
I just came up with this way to prevent people from getting illegal weapons in your game (illegal meaning rocket launchers, miniguns, etc...). Since I think this is a good script, I want to release it to everyone :D. Enjoy!

Weapons Detected:Katana
Chainsaw
Grenade
Molotov
Jetpack(does not work... sorry)
Sawn-Off Shotgun
Combat Shotgun
Rocket Launcher
Heat Seaking Rocket Launcher
Flame Thrower
Minigun
Satchel Charge
Detonator
Night Vision Goggles
Infared Goggles


Download(UPDATED):
Pwn:http://novastream.pastebin.com/f4505f1ff
Amx:http://novastreamfiles.freehoxt.com/files/healtharmorcheck.rar
Pwn+Amx:http://novastreamfiles.freehoxt.com/files/health-armorcheck.rar
Any mirrors are welcome(I probably wont update on the main post)
Leave the credits(lines 14-18) in the script(Doesnt even show up in game, so its no big deal unless your trying to steal my script)

FAQ
Q: Is this compatable with the godfather script?
A: Yes it is! It has worked for my own custom RP script along with a modded version of the godfather that I have created.

Hope this helps all you guys that run RP servers :D ~KineticNRG~

P1nd3r
08/04/2008, 01:52 PM
Nice it resets their weapons, I think it should automatically ban them. ;)

Kinetic
08/04/2008, 01:53 PM
I put this in so that it is impossible to hack the weapon... you can always add in "Ban(playerid);" in place of "ResetPlayerWeapons(playerid);" if you want it to ban.

Toribio
08/04/2008, 02:49 PM
Replace
weaponchecktimer = SetTimer("Weaponchecktimer", 5000, 1);

To:
weaponchecktimer = SetTimerEx("Weaponchecktimer", 5000, 1, "i", playerid);
Nice ;)

Kinetic
08/04/2008, 03:08 PM
It works perfect the way it is...
Why fix whats not broken?

dacads
08/04/2008, 03:54 PM
I put this in so that it is impossible to hack the weapon... you can always add in "Ban(playerid);" in place of "ResetPlayerWeapons(playerid);" if you want it to ban.


Good idea :P
This could turn into an anti-cheat system :o :lol:

Kinetic
08/04/2008, 04:08 PM
Yeah, the whole point of it was to be a part of an anti-cheat :mrgreen:

I use it so nobody spawns miniguns and goes on rampages while im not online.

I gotta fix a problem with the script first before it works for all players... currently it only works for player 0 :(
UPDATED: I believe it will work now for all players.

[SMB]Bip
08/04/2008, 05:11 PM
Great :D

PinkFloydLover
09/04/2008, 02:51 AM
yeah this is good 8)

Double-O-Seven
08/01/2010, 08:15 PM
Sorry, but this is really terrible... I looked at the source code...

Sayaron
08/01/2010, 08:40 PM
1. I do not like the choice of illegal weapons, as many of them is used on most of the servers around here
2. Banning the cheaters is more effective
3. Your not detecting the jetpack the right way as its a anim
This is taken dirrectly out of my GM, and is just and example:

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK) { // This detects if the player uses jetpack
//Dont use this things below, they will probaly give errors and warnings as you use a different system
format(string, sizeof(string), "%s got banned for using jetpack", GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_ADMINCMD, string);
SendClientMessage(playerid,COLOR_NEWRED,"!!!BUSTED!!!");
Ban(playerid);
BanLog(string);
return 0;

Danielo
08/01/2010, 09:33 PM
Thanks ;)

Badger(new)
08/01/2010, 09:35 PM
You could detect Jetpacks under "OnPlayerUpdate" with:

if(GetPlayerSpecialAction(playerid)==2)

Sayaron
09/01/2010, 02:54 PM
You could detect Jetpacks under "OnPlayerUpdate" with:

if(GetPlayerSpecialAction(playerid)==2)

I already told him, lol..

if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
and
if(GetPlayerSpecialAction(playerid)==2)
is the same and does the same

Arsham7
12/03/2010, 02:57 AM
This is one of the greatest Anti Weapons ever! + REPP

Hijolion
12/03/2010, 04:08 AM
Nice, but banning the player is much better.

Arsham7
12/03/2010, 05:07 AM
Hijol [mlservers.co.cc] ]
Nice, but banning the player is much better.


No not always... Because sometimes the player might get banned Accidently! And no one wants that :D