SA-MP Forums Archive
[FilterScript] Ping Kicker - 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] Ping Kicker (/showthread.php?tid=509505)



Ping Kicker - forgottenkings - 27.04.2014

Ping Kicker



This Script helps you to kick players with high pings.


PHP код:
#include a_samp
#define pinglimit 800
public OnFilterScriptInit()
{
         
SetTimer("PingChecker",5000,1);
         return 
1;
}
forward PingChecker();
public 
PingChecker()
{
    for(new 
0MAX_PLAYERS;i++)
    {
        if(
IsPlayerConnected(i))
        {
            new 
lping GetPlayerPing(i);
            if(
lping pinglimit)
            {
                new 
usern[MAX_PLAYER_NAME];
                
GetPlayerName(i,usern,sizeof(usern));
                new 
str[128];
                
format(str,sizeof(str),"[Info]: %s Has Been Kicked For High Pings.",usern);
                
SendClientMessageToAll(0xFFFFFFFF,str);
                
Kick(i);
            }
        }
    }
    return 
1;




Re: Ping Kicker - Reebok1 - 27.04.2014

It is very simple tu make but is very important for server ! + REP !


Re: Ping Kicker - forgottenkings - 27.04.2014

Thank You


Re: Ping Kicker - Kyance - 27.04.2014

There are many High-Ping kick filterscripts, for an example;

https://sampforum.blast.hk/showthread.php?tid=480369
https://sampforum.blast.hk/showthread.php?tid=259454
https://sampforum.blast.hk/showthread.php?tid=470477
https://sampforum.blast.hk/showthread.php?tid=450778

Nothing really new.


Re: Ping Kicker - forgottenkings - 27.04.2014

funny guy!! wasted your time to come with all that.


Re: Ping Kicker - Kyance - 27.04.2014

Didn't really waste much, took about 1 minute to post it
Listen, if you don't want to be criticized, then don't post.

Btw, this does kick for the SAMP "65535" or w.e ping kick, right?


Re: Ping Kicker - forgottenkings - 28.04.2014

:P :P :P