07.11.2010, 17:06
So it will look like this:
pawn Код:
public OnPlayerUpdate(playerid)
{
new playername[MAX_PLAYER_NAME], string[128];
if(GetPlayerPing(playerid) > 400 && GetPlayerPing(playerid) != 65535){
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
SendClientMessage(playerid, COLOR_GREEN, "[KICKED] Max ping exceeded <400>");
Kick(playerid);
format(string, 128, "[KICK] %s has been kicked: Max Ping <400>", playername);
SendClientMessageToAll(COLOR_GREEN, string);
}
}