[FilterScript] [FS] Weapon Banner
#1

[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:

pawn Код:
BanWeapon ( weaponid );
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 )
Reply
#2

Why not just use SetDisabledWeapons?
Reply
#3

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.

Reply
#4

Sorry I misread.
Reply
#5

dw about it
Reply
#6

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;
}
Reply
#7

Ye, thats a stupid mistake of mine, Link edited.

Thanks for the feedback.
Reply
#8

[size=10pt][size=10pt][size=10pt]good[/size][/size][/size]
Reply
#9

lol
Reply
#10

this is a anti-cheat
Reply
#11

This is like anti weapon hack

when player spawn weapon than the weapon disapeared
Reply
#12

Quote:
Originally Posted by [MK
Soprano ]
[size=10pt][size=10pt][size=10pt]good[/size][/size][/size]
WOAH :O
Mega ultra super bumper...
Reply
#13

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
Reply
#14

Very nice and also useful!
Reply
#15

Deleted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)