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 i = 0, j = GetPlayerPoolSize(); i <= j; i++) // 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(i, pname, MAX_PLAYER_NAME); // Get the player's name
GetPlayerIp(i, pIP, 32); // Check the player's IP
if(RconAttempt[i] < MAX_RCONATTEMPTS) // Check if the player hasn't reached the MAX_RCONATTEMPTS
{
[B] RconAttempt[i]++; [/B] // if it's not reached, we will increase this variable
}
I think, It will increase every one's RconAttempts.