27.04.2014, 03:57
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 i = 0; i < MAX_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;
}