RconCommand Log
#4

pawn Код:
public OnRconCommand(cmd[])
{
    new File:log = fopen("rconlog.txt", io_append );
    if(log)
    {
        new string[128];
        format(string,sizeof(string),"RCON COMMAND: %s",cmd);
        fwrite(log, "Server started.\r\n");
        fclose(log);
    }
    return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
    new File:log = fopen("rconlog.txt",io_append );
    if(log)
    {
        new string[128];
        format(string,sizeof(string),"RCON ATTEMPT LOGIN: IP: %s PASS: %s SUCCEED:",ip,password,success);
        fwrite(log, "Server started.\r\n");
        fclose(log);
    }
    return 1;
}
Reply


Messages In This Thread
RconCommand Log - by BiosMarcel - 18.10.2012, 11:54
Re: RconCommand Log - by Red_Dragon. - 18.10.2012, 12:00
AW: RconCommand Log - by BiosMarcel - 18.10.2012, 12:01
Re: RconCommand Log - by Roel - 18.10.2012, 12:03
AW: RconCommand Log - by BiosMarcel - 18.10.2012, 12:04
Re: RconCommand Log - by Roel - 18.10.2012, 12:05
AW: RconCommand Log - by BiosMarcel - 18.10.2012, 12:06
Re: RconCommand Log - by Lordzy - 18.10.2012, 12:06
Re: RconCommand Log - by Roel - 18.10.2012, 12:08
AW: RconCommand Log - by BiosMarcel - 18.10.2012, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)