[Ajuda] Anti Login Rcon
#6

Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new pIP[20],
        uName[MAX_PLAYER_NAME];

    if(success)
    {
        for(new i; i < GetMaxPlayers(); i++)
        {
            GetPlayerIp(i, pIP, sizeof(pIP));
            if(strcmp(pIP, ip, true) != 0) continue;

            GetPlayerName(i, uName, sizeof(uName));
            if(!strcmp(uName, "Nick1", true) || !strcmp(uName, "Nick2", true) || !strcmp(uName, "Nick3", true) || !strcmp(uName, "Nick4", true)) // Nicks Rcon
            {
                SendClientMessage(i, COR_GREEN, "[RCON - INFO] Vocк estб autorizado a logar na RCON.");
            }
            else
            {
                SendClientMessage(i, COR_ERRO, "[RCON - INFO] {CD0000}Vocк nгo estб autorizado a logar na RCON.");
                Kick(i);
            }
            break;
        }
    }
Reply


Messages In This Thread
Anti Login Rcon - by galazoiadria - 03.10.2016, 14:23
Re: Anti Login Rcon - by F1N4L - 03.10.2016, 14:30
Re: Anti Login Rcon - by nasser - 03.10.2016, 14:30
Re: Anti Login Rcon - by BobbMarley - 03.10.2016, 14:32
Re: Anti Login Rcon - by RodrigoMSR - 03.10.2016, 14:50
Re: Anti Login Rcon - by FalcaoNC - 03.10.2016, 19:10
Respuesta: Re: Anti Login Rcon - by SammyJ - 03.10.2016, 21:02
Re: Anti Login Rcon - by PedroEduardo - 03.10.2016, 21:23
Re: Anti Login Rcon - by HeisenGiromB - 04.10.2016, 17:41
Re: Anti Login Rcon - by F1N4L - 04.10.2016, 17:48

Forum Jump:


Users browsing this thread: 1 Guest(s)