Quote:
Originally Posted by Jefff
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) Ban(i); //They are now banned. } } return 1; }
|
That will the ban the player if he puts in the correct password.