Restrict RCON by IP
#3

I don't really understand, is that you want to mean?
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerIP[16];
    if(IsPlayerConnected(i))
    {
        GetPlayerIp(i, rIP,sizeof(rIP)); // get is ip
        if(!strcmp(rIP, 127.0.0.1, true)) // if is ip is 127.0.0.1
        {
            if(success) // if the pass is correct
            {
                // blablablabla
                return 1;
            }
            else // if the pass is not correct
            {
                // blablabla
                return 1;
            }
            return 1;
        }
        else // is ip is not 127.0.0.1
        {
            // blablablabla
            return 1;
        }
        return 1;
    }
    return 1;
}//matnix
Correct me if I'm wrong
Reply


Messages In This Thread
Restrict RCON by IP - by lesim2005 - 29.10.2013, 22:33
Re: Restrict RCON by IP - by iJumbo - 29.10.2013, 22:49
Re : Restrict RCON by IP - by Matnix - 29.10.2013, 22:56
Re: Restrict RCON by IP - by Vince - 29.10.2013, 23:15
Re: Re : Restrict RCON by IP - by Pottus - 29.10.2013, 23:18
Re : Restrict RCON by IP - by Matnix - 29.10.2013, 23:19
Re: Restrict RCON by IP - by lesim2005 - 31.10.2013, 19:34
Re: Restrict RCON by IP - by lesim2005 - 03.11.2013, 09:22
Re: Restrict RCON by IP - by Hamam - 03.11.2013, 09:29

Forum Jump:


Users browsing this thread: 1 Guest(s)