Posts: 2,593
Threads: 34
Joined: Dec 2007
Quote:
Originally Posted by DJDhan
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.
|
Yup, but He dont using rcon because its RP and own admin system if(PlayerInfo[i][pAdmin] < 1)