Quote:
Originally Posted by SickAttack
pawn Код:
public OnRconLoginAttempt(ip[], password[], success) { if(success) { new ip_address[16]; for(new i = 0, j = GetPlayerPoolSize(); i <= j; i ++) { if(!IsPlayerConnected(i)) { continue; }
GetPlayerIp(i, ip_address, sizeof(ip_address));
if(!strcmp(ip, ip_address, true) && PlayerInfo[i][pAdmin] < 3) { Ban(i); } } } return 1; }
It should ban the player if the player's IP address is the same as the IP address passed on to the callback and if the player's admin level is below 3.
If you don't want it to ban players, then just remove all the code in the callback as shown above.
|
Because in my code it must be level 3 admin first because i got banned