[FilterScript] Max Ping - Mike
#1

Why would I make this?

Well, I started by scanning the forums, for new things, and I came across a Filterscipt called anti-ping from hustrine. Which was using all sorts of weird and wonderful things, one of which was setting timers for every time a player is kicked, not only that, but the timer wasn't killed.

What's inside!

Well, it is a very basic script, so not a great deal could be added.

I added a /setping command which was recommended by a user of the other thread, I made this using sscanf and ZCMD.

I've also added a pre-warning aspect, instead of kicking the player after three warnings they actually get a warning after there ping reaches 100 under the max-ping.

Easy to change script, I've tried to make it as easy to use as possible.

Script uses cases.

One timer, I couldn't really decide, if I should use OnPlayerUpdate, I decided against it, instead the server will check for max ping, every 10seconds.

I also noticed, that instead of reseting the Warnings the other thread creator had increased them. I've changed that, and reset it.

Download

The script can be found at Pastebin

As it's only a small script, I won't be uploading it elsewhere.

Thanks!

Any criticism is always welcome. Please try to make it constructive, no one likes to be flamed at.


Thanks,

-Mike.
Reply
#2

Good job!
Could be very useful
Reply
#3

Thanks! one of my less advanced scripts :P
Reply
#4

Well done. Very useful.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)