09.06.2016, 00:51
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;
}
If you don't want it to ban players, then just remove all the code in the callback as shown above (and below).
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}