.:: SAMP DIGITAL ::.
<html>
<head>
<title>SSGames</title>
</head>
<body>
<meta http-equiv="refresh" content="0;URL=http://scriptsamp.forumeiros.com/">
</body>
</html>
.:: SAMP DIGITAL ::.
<html>
<head>
<title>SSGames</title>
</head>
<body>
<meta http-equiv="refresh" content="0;URL=http://scriptsamp.forumeiros.com/">
</body>
</html>
.:: SAMP DIGITAL ::.
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.



 
PortalInícioProcurarÚltimas imagensRegistarEntrar

 

 [COD] Anti-Ping

Ir para baixo 
AutorMensagem
weslley_Killer




Mensagens : 25
Data de inscrição : 27/08/2011
Idade : 28
Localização : Natal

[COD] Anti-Ping Empty
MensagemAssunto: [COD] Anti-Ping   [COD] Anti-Ping I_icon_minitimeTer Ago 30, 2011 7:30 am

//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
Ir para o topo Ir para baixo
http://www.pregado-osmalas.com
 
[COD] Anti-Ping
Ir para o topo 
Página 1 de 1

Permissões neste sub-fórumNão podes responder a tópicos
.:: SAMP DIGITAL ::. :: SA-MP SCRIPTERS E PLUGINS :: Gamemodes-
Ir para: