[FilterScript] Max Ping - Mike - 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] Max Ping - Mike (
/showthread.php?tid=427435)
Max Ping - Mike -
Isolated - 01.04.2013
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.
Re: Max Ping - Mike -
NicholasA - 14.04.2013
Good job!
Could be very useful
Re: Max Ping - Mike -
Isolated - 14.04.2013
Thanks!

one of my less advanced scripts :P
Re: Max Ping - Mike -
Syntax - 22.04.2013
Well done. Very useful.