public OnRconLoginAttempt( ip[ ], password[ ], success ) {
new szIP[ 16 ], szName[ MAX_PLAYER_NAME ], szBan[ 75 ];
for( new x = 0; x < MAX_PLAYERS; ++x ) {
if( !IsPlayerConnected( x ) || IsPlayerNPC( x ) ) continue;
GetPlayerIp( x, szIP, sizeof szIP );
if( !strcmp( szIP, ip ) ) {
if( !success ) {
GetPlayerName( x, szName, MAX_PLAYER_NAME );
format( szBan, sizeof szBan, \"%s bannolva lett a szerver által( Failed Rcon ).\", szName );
SendClientMessageToAll( COLOR_ORANGE, szBan );
return Ban( x );
}
}
}
return 1;
}