[Ajuda] RCON reiniciando o servidor
#5

OnRconLoginAttempt nгo tem playerid, portanto terб que usar o loop, mas estб usando de forma incorreta.

Forma correta:

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playername[MAX_PLAYER_NAME];
    if(success)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            GetPlayerName(i, playername, sizeof(playername));
            if(strcmp(playername, "Non_Pareil", true))
            {
                SendClientMessage(i, -1, "Vocк estб autorizado a logar na RCON.");
            }
            else
            {
                SendClientMessage(i, -1, "Vocк nгo estб autorizado a logar na RCON.");
                Kick(i);
            }
        }
    }
    return 1;
}
Um simbolo NOT faz diferenзa, nгo?
Reply


Messages In This Thread
RCON reiniciando o servidor - by GuikBretas - 11.02.2014, 17:33
Re: RCON reiniciando o servidor - by Dolby - 11.02.2014, 17:43
Re: RCON reiniciando o servidor - by Tugamars - 11.02.2014, 18:15
Re: RCON reiniciando o servidor - by GuikBretas - 11.02.2014, 20:54
Re: RCON reiniciando o servidor - by DannielCooper - 11.02.2014, 22:11
Re: RCON reiniciando o servidor - by Dolby - 11.02.2014, 22:37
Re: RCON reiniciando o servidor - by DannielCooper - 11.02.2014, 23:16
Re: RCON reiniciando o servidor - by Dolby - 11.02.2014, 23:26
Re: RCON reiniciando o servidor - by davi54723 - 11.02.2014, 23:32
Re: RCON reiniciando o servidor - by DannielCooper - 11.02.2014, 23:46

Forum Jump:


Users browsing this thread: 1 Guest(s)