[FilterScript] Yet Another Taser System
#1

Actually a stun gun, oops.

This FS allows people who plays with cop skins(check IsACopSkin) to stun others who don't have a cop skin. You can add a wanted level check/change it however you want.

How to Use:

First of all you need a cop/SWAT/FBI/Army skin.
Then you can use /taser to enable/disable your stun gun.
After enabling your stun gun, you can press KEY_FIRE near people to stun them. They'll get stunned according to their health, so if the person who got stunned has low health they'll get stunned for a longer time, minimum being 3 seconds. (You can change it from #define TASER_BASETIME)
Stun gun only works if you have fists as your current weapon and it'll disappear if you switch to anything else but don't worry it comes back when you switch to fists again.

Also this script has a charge mechanic which prevents players from spamming KEY_FIRE key and easily stun everyone near them.


Important Stuff:

Don't forget to change MAX_PLAYERS on line 4.
Thanks to Crayder because of his array of nice colors.
This FS uses progress2.inc by [HLF]Southclaw. You can find it here.

02/06/2016 Update:

* Fixed an epic fail. (allowed players to stun the player with lowest id, no matter how far they are) Thanks to knuckleduster5 for reporting this.
* Loops now use GetPlayerPoolSize instead of GetMaxPlayers.

Downloads:

Reply
#2

Nice script!
Reply
#3

Would work more efficiently if you'd use OnPlayerGiveDamage, instead of checking if there are players near you.
Reply
#4

Nice work
Reply
#5

Good job bro
Reply
#6

Pretty interesting, never really liked the handheld taser however.
Reply
#7

Nice
Reply
#8

nice
Reply
#9

Good job.
Reply
#10

02/06/2016 Update:

* Fixed an epic fail. (allowed players to stun the player with lowest id, no matter how far they are) Thanks to knuckleduster5 for reporting this.
* Loops now use GetPlayerPoolSize instead of GetMaxPlayers.

You can get the fixed version from the first post!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)