30.10.2011, 22:17
pawn Код:
new string[256];
pawn Код:
#define PING (1000)
public OnGameModeInit()
{
SetTimer("Chec", 1000, true);
return 1;
}
Chec();
public Chec();
{
static str[128];
str[0] = EOS;
for(new i, e = GetMaxPlayers(); e != i; ++i)
{
if(IsPlayerConnected(i) && GetPlayerPing(i) >= PING)
{
GetPlayerName(i, str, 24);
format(str, sizeof(str),"%s Foi kickado por ping alto, Ping: %d", str, GetPlayerPing(i));
SendClientMessageToAll(-1, str);
Kick(i);
}
}
}