25.05.2013, 02:01
pawn Код:
public OnPlayerUpdate(playerid)
{
new pname[MAX_PLAYER_NAME];
new string [256];
new ping = GetPlayerPing(playerid);
if(ping > MAX_PING)
{
format(string, sizeof(string), "O jogador %s [ID: %d] foi kickado do servidor por ultrapassar o ping maximo (%d).", pname, playerid, MAX_PING);
Kick(playerid);
SendClientMessageToAll(Verde_Floresta, string);
}
return 1;
}