[FilterScript] [FS] Weapon Banner - 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)
+--- Thread: [FilterScript] [FS] Weapon Banner (
/showthread.php?tid=34728)
[FS] Weapon Banner -
WrathOfGenesis - 16.04.2008
[FS] Weapon Banner
Have cheaters / hackers on your server killing everyone with hacked weapons when no admin are on? No longer a problem! I have created a simple but efficient weapon disabling script.
So why use this? Why not use the "SetDisabledWeapons" function that comes with samp to disable the weapons? By using this function you simply desyncronise it, it doesnt ban the player or punish them in any way. If the player isnt banned, what will they do? They will come back. Now its your chance to stop them.
To stop a weapon being used on your server, open the filterscripts pwn file and in the OnFilterScriptInit function, add the following line:
This will return the banned weapon id (starting at 0 for the first one and going up from that).
__________________________________________________ ______________________
Source:
http://pastebin.com/f74b01180
__________________________________________________ ______________________
Please feel free to post comments, critisism and sugestions for next version.
Kind regards,
WrathOfGenesis
( FUDDS
)
Re: [FS] Weapon Banner -
Pixels^ - 16.04.2008
Why not just use SetDisabledWeapons?
Re: [FS] Weapon Banner -
WrathOfGenesis - 16.04.2008
Quote:
So why use this? Why not use the "SetDisabledWeapons" function that comes with samp to disable the weapons? By using this function you simply desyncronise it, it doesnt ban the player or punish them in any way. If the player isnt banned, what will they do? They will come back. Now its your chance to stop them.
|
Re: [FS] Weapon Banner -
Pixels^ - 16.04.2008
Sorry I misread.
Re: [FS] Weapon Banner -
WrathOfGenesis - 16.04.2008
dw about it
Re: [FS] Weapon Banner -
yom - 16.04.2008
Just something i noticed: there is less than 50 usable weapons id, why wasting 950 unused cells ? also you could just do something like that
pawn Код:
stock BanWeapon ( weaponid )
{
BannedWeapons [ MAX_BANNED_WEAPONS++ ] = weaponid;
}
Re: [FS] Weapon Banner -
WrathOfGenesis - 16.04.2008
Ye, thats a stupid mistake of mine, Link edited.
Thanks for the feedback.
Re: [FS] Weapon Banner -
[MK]Soprano - 25.03.2010
[size=10pt][size=10pt][size=10pt]good[/size][/size][/size]
Re: [FS] Weapon Banner -
DeaD_MaN - 25.03.2010
lol
Re: [FS] Weapon Banner -
Brian_Furios - 25.03.2010
this is a anti-cheat
Re: [FS] Weapon Banner -
[MK]Soprano - 26.03.2010
This is like anti weapon hack
when player spawn weapon than the weapon disapeared
Re: [FS] Weapon Banner -
Zh3r0 - 26.03.2010
Quote:
Originally Posted by [MK
Soprano ]
[size=10pt][size=10pt][size=10pt]good[/size][/size][/size]
|
WOAH :O
Mega ultra super bumper...
Re: [FS] Weapon Banner -
Brian_Furios - 26.03.2010
Quote:
Originally Posted by [MK
Soprano ]
This is like anti weapon hack
when player spawn weapon than the weapon disapeared
|
okay thanks man.
P.S: Awesome man great job
Re: [FS] Weapon Banner -
[MWR]Blood - 26.03.2010
Very nice and also useful!
Re: [FS] Weapon Banner -
Snoooopy - 26.03.2010
Deleted.