11.06.2010, 19:15
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success) //If the password was correct
{
new pip[16];
for(new i,g=GetMaxPlayers(); i<g; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
if(PlayerInfo[i][pAdmin] < 1)
BanEx(i,"Hacker"); //They are now banned.
}
}
return 1;
}