09.11.2012, 17:11
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;
}