LogPrintig Rcon use

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
ThaWalrus

LogPrintig Rcon use

Post by ThaWalrus » November 13th, 2011, 10:00 pm

Hello all,

I have a mod, and i have recently figured things out with logprint.

I started to like it, because I could see excaclty what happened on the server. Also i could make my own logprints, like when people had killstreaks etc.

I am wondering if i could use logprint for logging rcon use.

So, if somebody uses rcon status, rcon map 'mp_neuville'. I could see it at my server.log.

I dont really have an idea how to do this, but i want to place the function in the mod, in the bel.gsc file.

ThaWalrus

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: LogPrintig Rcon use

Post by Drofder2004 » November 14th, 2011, 1:42 am

Client input commands cannot be detected by mods.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

megazor
CJ Worshipper
CJ Worshipper
Posts: 414
Joined: July 22nd, 2009, 3:02 am
Location: Russia, Vladivostok

Re: LogPrintig Rcon use

Post by megazor » November 14th, 2011, 1:57 am

walrus talked about cod1.

but in cod4, there are some functions that can do various things to server files? and all actions of a client are saved in the server log file.

ThaWalrus

Re: LogPrintig Rcon use

Post by ThaWalrus » November 14th, 2011, 4:12 pm

Then i have another question.

What does the "logfile = 1" do?

It prints some rcon use to a config_mp.log file.

It prints rcon use to the log, but it only says the ip of the rconuser.
Is it possible to let it write the Guid or name to this log? Instead of the IP

Greetz Walrus

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: LogPrintig Rcon use

Post by Drofder2004 » November 14th, 2011, 4:17 pm

logfile = 1 turns on game logging.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

ThaWalrus

Re: LogPrintig Rcon use

Post by ThaWalrus » November 14th, 2011, 8:52 pm

Ye, i know that now. But i want to know what it really does, where i can change the form of printing.

So instead of ip, guids or player names.

Or maybe it just isnt possible.

megazor
CJ Worshipper
CJ Worshipper
Posts: 414
Joined: July 22nd, 2009, 3:02 am
Location: Russia, Vladivostok

Re: LogPrintig Rcon use

Post by megazor » November 15th, 2011, 7:02 am

you cant change anything with it.
naaaaaab

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: LogPrintig Rcon use

Post by Drofder2004 » November 15th, 2011, 1:49 pm

ThaWalrus wrote:Ye, i know that now. But i want to know what it really does, where i can change the form of printing.

So instead of ip, guids or player names.

Or maybe it just isnt possible.
All hardcoded.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests