24.03.2014, 09:16
Replace ur onrconloginattemp with this one
EDIT:
And what is CheckBan(playerIP)?
give me the codes of that.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
new playersIP[17], playerid;
for(; playerid < MAX_PLAYERS; playerid++)
{
GetPlayerIp(playerid, playersIP, 17);
if(!strcmp(ip, playersIP))
{
break;
}
}
RconAttempts[playerid]++;
if(RconAttempts[playerid] >= 3)
{
new cmd[32];
format(cmd,sizeof(cmd),"banip %s",ip);
SendRconCommand(cmd);
Ban(playerid);
}
}
return 1;
}
And what is CheckBan(playerIP)?
give me the codes of that.