Zonoya
(Gangsta)
****

Registration Date: 17.07.2011
Date of Birth: Not Specified
Local Time: 14.10.2024 at 21:54
Status: Offline

Zonoya's Forum Info
Joined:
17.07.2011
Last Visit:
15.06.2018, 08:12
Total Posts:
664 (0.14 posts per day | 0.03 percent of total posts)
(Find All Posts)
Total Threads:
65 (0.01 threads per day | 0.02 percent of total threads)
(Find All Threads)
Time Spent Online:
None Registered
Members Referred:
0
Reputation:

Zonoya's Signature
Code:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success) //If the password was incorrect
    {
        printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        new pip[16];
        for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
        {
            GetPlayerIp(i, pip, sizeof(pip));
            if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
            {
                SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                Ban(i); //They are now banned.
            }
        }
    }
    return 1;
}