[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


Messages In This Thread
Ping Kicker - by forgottenkings - 27.04.2014, 03:57
Re: Ping Kicker - by Reebok1 - 27.04.2014, 05:09
Re: Ping Kicker - by forgottenkings - 27.04.2014, 05:47
Re: Ping Kicker - by Kyance - 27.04.2014, 09:31
Re: Ping Kicker - by forgottenkings - 27.04.2014, 13:43
Re: Ping Kicker - by Kyance - 27.04.2014, 15:15
Re: Ping Kicker - by forgottenkings - 28.04.2014, 04:55

Forum Jump:


Users browsing this thread: 1 Guest(s)