GetPlayerID help
#4

You can only via IP. If the player with the IP logged in successfully, it passes from a loop to find that ip, if it matches, it sets the restrict to that person with that IP.
pawn Код:
public OnRconLoginAttempt( ip[ ], password[ ], success )
{
    if( success )
    {
        new
            pip[ 16 ]
        ;
        for( new i = 0; i < MAX_PLAYERS; i++ )
        {
            GetPlayerIp( i, pip, sizeof( pip ) );
            if( !strcmp( ip, pip, true ) )
            {
                restrict[ i ] = 0;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
GetPlayerID help - by Sam5513 - 09.11.2012, 16:44
Re: GetPlayerID help - by Kyle - 09.11.2012, 17:00
Re: GetPlayerID help - by tyler12 - 09.11.2012, 17:05
Re: GetPlayerID help - by Konstantinos - 09.11.2012, 17:11
Re: GetPlayerID help - by Sam5513 - 09.11.2012, 17:12

Forum Jump:


Users browsing this thread: 1 Guest(s)