[FilterScript] Ping Kicker
#1

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;

Reply
#2

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

Thank You
Reply
#4

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.
Reply
#5

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

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

:P :P :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)