OnRconLoginAttempt-Where is wrong?
#1

pawn Код:
new RconAttempTime[50][24];
new RconAttempTime2[50];
public OnRconLoginAttempt(ip[], password[], success)
{
    if(success)return 1;
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(strcmp(RconAttempTime[i],ip)==0)
        {
            RconAttempTime2[i]++;
            if(RconAttempTime2[i]==5)
            {
                new string[256];format(string,256,"banip %s",ip);
                printf("%s banned ",ip);
                SendRconCommand(string);
                RconAttempTime2[i]=0;
            }
            return 1;
        }else
        {
        format(RconAttempTime[i],24,"%s",ip);
        RconAttempTime2[i]++;
        }
    }
    return 1;
}
It just don't work (
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)