24.02.2013, 08:11
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerPing(playerid) > MAX_PING)
{
new name[MAX_PLAYER_NAME],msg[150];
GetPlayerName(playerid, name, sizeof(name));
format(msg, sizeof(msg), "[Kick] Ћaidėjas %s buvo iљmestas uћ per didelį ping'ą. [Max - 400]", name);
SendClientMessageToAll(Raudona, msg);
SendClientMessage(playerid, Raudona, "Jūs iљmestas uћ per didelį pingą");
SetTimerEx("KickPublic", 10, 0, "i", playerid);
return 0;
}