19.02.2013, 17:36
Geographic Information about 78.36.37.120:
Country: RU (Russian Federation)
Region: 28
Latitude: 61.8167
Longitude: 34.3333
Code above will help you also.
Country: RU (Russian Federation)
Region: 28
Latitude: 61.8167
Longitude: 34.3333
pawn Код:
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
{ new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "{37DB45}%s {FF0000}was auto-banned by {0000FF}GOD{FF0000}. Reason: {DB881A}Attepmt to hack Rcon{FF0000}.", name);
SendClientMessageToAll(0xFFFFFFFF,str);
SendClientMessage(i, 0xFFFFFFFF, "{FF0000}Wrong Password. {0xFFFFFFFF}You are automatically {FF0000}banned."); //Send a message
SendClientMessage(i, 0xFFFFFFFF, "{DB881A}Send me an e-mail at {FF0000}change{37DB45}@{FF0000}change{37DB45}.{FF0000}change{DB881A} for an unban."); //Send a message
Ban(i); //They are now banned.
}
}
}
return 1;
}