Quote:
Originally Posted by CalgonX
Ping Kicker.
pawn Код:
public PingCheck() { new MAX_PING = 600; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(!IsPlayerAdmin(i)) { new ping, string[128]; ping = GetPlayerPing(i); if(ping >= MAX_PING) { format(string, sizeof(string), "Excessive Ping (%d) - Above %d.", ping, MAX_PING); Kick(i); } } } } }
|
That might do problems because when the player connects, the player has something like 65000 ping. So it'll kick him.