I Need help for my Rcon
#3

or alternatively you could use something like that (just a rough draft, I fastly created for you)
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerid = -1, cip[20];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GetPlayerIp(i, cip, sizeof(cip));
            if(!strcmp(ip, cip, true))
            {
                playerid = i;
                break;
            }
        }
    }
    if(playerid != -1)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        if(strcmp(name, "EnterYourNameHere", true) != 0)
        {
            Ban(playerid);
        }
    }
    return 1;
}
that will ban anyone except "EnterYourNameHere", so you could still login
Reply


Messages In This Thread
I Need help for my Rcon - by boysockpr0123 - 18.03.2014, 14:21
Re: I Need help for my Rcon - by Parallex - 18.03.2014, 14:24
Re: I Need help for my Rcon - by Sascha - 18.03.2014, 14:30
Re: I Need help for my Rcon - by boysockpr0123 - 18.03.2014, 14:49
Re: I Need help for my Rcon - by Sascha - 18.03.2014, 15:04
Re: I Need help for my Rcon - by boysockpr0123 - 18.03.2014, 15:14
Re: I Need help for my Rcon - by Sascha - 18.03.2014, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)