02.10.2007, 16:05
simple anti-max ping!
sorry for my bad english!
i am russian
Quote:
public OnPlayerConnect(playerid) { SetTimerEx("MaxPing",15000,0,"d",playerid); return 1; } public MaxPing(playerid) { new PlayerPing = GetPlayerPing(playerid); if (PlayerPing > 550) { SendClientMessage(playerid,COLOR_RED,"Sorry,but your ping is very hight!"); new PlayerName[30], str[256]; GetPlayerName(playerid, PlayerName, 30); format(str, 256, "%s has been kicked for max ping!", PlayerName); SendClientMessageToAll(COLOR_GREEN,str); Kick(playerid); }else{ SendClientMessage(playerid,COLOR_GREEN,"Your ping is normal!;"); } return 1; } |
i am russian