[Tutorial] RCON Login protection
#16

PHP код:
if(!success// this checks if the player didn't succeed to login 

    new 
string[128], pIP[32], pname[MAX_PLAYER_NAME]; // This will hold the message we are going to send to all players 
    // We will now have to loop through all the online players because 'playerid' isn't usable in this callback. 
    
for(new 0GetPlayerPoolSize(); <= ji++) // This is the loop, 'GetPlayerPoolSize' checks the highest ID IG, hence I'd rather use that loop instead of MAX_PLAYERS; 
    

        if(
IsPlayerConnected(i)) // Check if the player is even connected 
        

            
GetPlayerName(ipnameMAX_PLAYER_NAME); // Get the player's name 
            
GetPlayerIp(ipIP32); // Check the player's IP 
            
if(RconAttempt[i] < MAX_RCONATTEMPTS// Check if the player hasn't reached the MAX_RCONATTEMPTS 
            

               [
BRconAttempt[i]++; [/B// if it's not reached, we will increase this variable 
            

I think, It will increase every one's RconAttempts.
Reply


Messages In This Thread
RCON Login protection - by saffierr - 05.07.2017, 00:21
Re: RCON Login protection - by SteSte - 05.07.2017, 00:38
Re: RCON Login protection - by Astralis - 05.07.2017, 00:42
Re: RCON Login protection - by SteSte - 05.07.2017, 00:53
Re: RCON Login protection - by Konstantinos - 05.07.2017, 08:24
Re: RCON Login protection - by iLearner - 05.07.2017, 11:37
Re: RCON Login protection - by saffierr - 05.07.2017, 11:55
Re: RCON Login protection - by saffierr - 05.07.2017, 11:57
Re: RCON Login protection - by RxErT - 05.07.2017, 12:19
Re: RCON Login protection - by saffierr - 05.07.2017, 16:27
Re: RCON Login protection - by Eoussama - 05.07.2017, 17:04
Re: RCON Login protection - by Vince - 05.07.2017, 17:15
Re: RCON Login protection - by HoussemGaming - 05.07.2017, 18:41
Re: RCON Login protection - by Meller - 05.07.2017, 21:10
Re: RCON Login protection - by saffierr - 06.07.2017, 02:12
Re: RCON Login protection - by coool - 06.07.2017, 12:22
Re: RCON Login protection - by iLearner - 06.07.2017, 12:38
Re: RCON Login protection - by TheRealMan - 06.07.2017, 12:40
Re: RCON Login protection - by saffierr - 06.07.2017, 13:10
Re: RCON Login protection - by coool - 07.07.2017, 06:09
Re: RCON Login protection - by Beryllium - 07.07.2017, 07:18
Re: RCON Login protection - by TeKno - 30.07.2017, 09:02
Re: RCON Login protection - by C4rtm4n - 01.08.2017, 09:42

Forum Jump:


Users browsing this thread: 2 Guest(s)