[AJUDA] Ping alto.
#4

Quote:
Originally Posted by Los
Посмотреть сообщение
Correto:

pawn Код:
#define     PingMaximo      1000 //Definir aqui o ping mбximo

public OnPlayerConnect(playerid)
{
    SetTimerEx("ChecarPing", 1000, true, "i", playerid);
    return 1;
}

forward ChecarPing(playerid);
public ChecarPing(playerid)
{
    if(GetPlayerPing(playerid) >= PingMaximo) return Kick(playerid);
    return 1;
}
Completo* e nгo correto.
O cуdigo do Gustavo й funcional apenas nгo estб implementado.
Los, acho que й melhor um SetTimer no OnGameModeInit do que um SetTimerEx no OnPlayerConnect sendo que serб verificado a mesma coisa no mesmo intervalo de tempo...
Reply


Messages In This Thread
[AJUDA] Ping alto. - by Baigou - 29.09.2011, 01:04
Re: [AJUDA] Ping alto. - by Dolby - 29.09.2011, 01:06
Re: [AJUDA] Ping alto. - by Lуs - 29.09.2011, 01:11
Re: [AJUDA] Ping alto. - by Josma_cmd - 29.09.2011, 01:21
Re: [AJUDA] Ping alto. - by Baigou - 29.09.2011, 01:25
Re: [AJUDA] Ping alto. - by Baigou - 29.09.2011, 01:30

Forum Jump:


Users browsing this thread: 3 Guest(s)