[ajuda] The server is full
#5

Existe um code do drakins que й um cmd, eu jб jб passo.

Comando
pawn Код:
if(!strcmp(cmdtext, "/kick-bots", true))
{
    if(!IsPlayerAdmin(playerid)) return false;

    for(new i = 0; i != MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i) || GetPlayerPing(i)) continue;
        Kick(i);
    }
    return SendClientMessageToAll(0xFFFFFFFF, "Todos jogadores com ping 0 kickados"), true;
}

// By Bruno da Silva
// http://www.ips-team.blogspot.com
Como vocк pode nгo estar no servidor eu usei o mesmo code do Drakins e fiz uma coisa difrente.

pawn Код:
//No OnGameModeInit Adicione isto
SetTimer("KickarBots",60000,false); //Esta funзгo serб chamada 1 minuto depois apos o GM iniciar.

forward KickarBots();
public KickarBots()
{
    for(new i = 0; i != MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i) || GetPlayerPing(i)) continue;
        Kick(i);
    }
    return SetTimer("KickarBots",30000,true);//Coloque o tempo de quanto em quanto quer que os bots sejam kickados.
}
Pronto, sу testar
Reply


Messages In This Thread
[ajuda] The server is full - by Cristhian - 06.11.2011, 01:15
Re: [ajudaІ] The server is full - by RebeloX - 06.11.2011, 01:16
Re: [ajudaІ] The server is full - by Cristhian - 06.11.2011, 01:37
Re: [ajudaІ] The server is full - by junioor - 06.11.2011, 01:52
Re: [ajudaІ] The server is full - by RebeloX - 06.11.2011, 01:54
Re: [ajudaІ] The server is full - by Raphael_Lima - 06.11.2011, 01:55
Re: [ajudaІ] The server is full - by Cristhian - 06.11.2011, 02:07
Re: [ajudaІ] The server is full - by Raphael_Lima - 06.11.2011, 02:10
Re: [ajudaІ] The server is full - by Cristhian - 06.11.2011, 02:12
Re: [ajudaІ] The server is full - by Raphael_Lima - 06.11.2011, 02:48

Forum Jump:


Users browsing this thread: 1 Guest(s)