18.10.2012, 12:03
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;
}