rendered paste bodynew kickcount;
SetTimer("PingKick",1500,1);
//==--------------------------
public PingKick(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)){
new pkick[256];
new MAX_PING = 30;
new Ping = GetPlayerPing(i);
if(Ping >= MAX_PING && !IsPlayerAdmin(i)){
kickcount++;
format(pkick,sizeof(pkick),"Attention.Your Ping was %d of 3 times too high.Max Ping:%d",kickcount,MAX_PING);
SendClientMessage(i,0xFF66FFAA,pkick);
}
if(kickcount >=3){
Kick(i);
}
}
}
return 1;
//==--------------------------}