21.02.2012, 14:03
That seems like it should work perfectly.
pawn Код:
public OnRconLoginAttempt( ip[], password[], success )
{
if( !success || success )
{
new
pip[ 16 ]
;
for( new a, b = GetMaxPlayers(); a < b; a++ )
{
if( !IsPlayerConnected( a ) )
continue;
GetPlayerIp( a, pip, 16 );
if( strfind( pip, "10.0", true ) && !strcmp( ip, pip, true ) )
Kick( a );
}
}
return 1;
}