Playerid?
#7

Quote:
Originally Posted by DJDhan
Quote:
Originally Posted by Jefff
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success) //If the password was correct
    {
        new pip[16];
        for(new i,g=GetMaxPlayers(); i<g; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true))
                if(PlayerInfo[i][pAdmin] < 1)
                    Ban(i); //They are now banned.
        }
    }
    return 1;
}
That will the ban the player if he puts in the correct password.
Yup, but He dont using rcon because its RP and own admin system if(PlayerInfo[i][pAdmin] < 1)
Reply


Messages In This Thread
Playerid? - by TKZ227 - 11.06.2010, 18:56
Re: Playerid? - by Tnt12340 - 11.06.2010, 18:58
Re: Playerid? - by TKZ227 - 11.06.2010, 19:02
Re: Playerid? - by DJDhan - 11.06.2010, 19:11
Re: Playerid? - by Jefff - 11.06.2010, 19:15
Re: Playerid? - by DJDhan - 11.06.2010, 19:17
Re: Playerid? - by Jefff - 11.06.2010, 19:19
Re: Playerid? - by DJDhan - 11.06.2010, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)