//Topo do script
#define MaxPing 600
new Nome[MAX_PLAYER_NAME];
public OnPlayerUpdate(playerid)
{
if(GetPlayerPing(playerid) > MaxPing)
{
new string[128];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, sizeof(string), "[ANTI-PING] %s Foi kickado por ultrapassar o limite. (Máximo: %d ms)", Nome, MaxPing);
SendClientMessageToAll(Cor, string);
Kick(playerid);
}
return 1;
}
►Explicando:
Quando o ping do jogador chegar a 600 ele será automaticamente kickado, se quiser outro valor basta mudar no #define MaxPing.
►Créditos:
Criado por: [ENB]Joel
#define MaxPing 600
new Nome[MAX_PLAYER_NAME];
public OnPlayerUpdate(playerid)
{
if(GetPlayerPing(playerid) > MaxPing)
{
new string[128];
GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
format(string, sizeof(string), "[ANTI-PING] %s Foi kickado por ultrapassar o limite. (Máximo: %d ms)", Nome, MaxPing);
SendClientMessageToAll(Cor, string);
Kick(playerid);
}
return 1;
}
►Explicando:
Quando o ping do jogador chegar a 600 ele será automaticamente kickado, se quiser outro valor basta mudar no #define MaxPing.
►Créditos:
Criado por: [ENB]Joel

EmoticonEmoticon