Quote:
Originally Posted by T!m
Hi, I would like to know if their is a script or plugin that can count
human players that connect to a server?
|
Maybe this is what you want - Playerlog can log the arrival and leaving of human players on a game server, and can log their in-game chat as well, in 2 separate files.
I used it on my 4.1.1.1D server for TFC & Now i use it on my Steam server for TFC/DoD . Just make sure that you have a cstrike folder!! To bad it dosen't log the Stean ID's correctly though. It spits them out as -1
Here's a preview of how it logs on Steam (It creates 2 types of logs, Serverpopulation & Serverchat):
This is from my "Serverpopulation log":
[Tue Jan 13 11:40:09 2004] Eddy Hassle (WONId -1) joined the game
[Tue Jan 13 11:44:24 2004] smelly (WONId -1) joined the game
[Tue Jan 13 11:45:10 2004] Eddy Hassle (WONId -1) has left the game
[Tue Jan 13 11:46:24 2004] <.TLP | Ryan_fr.> (WONId -1) joined the game
[Tue Jan 13 11:47:31 2004] <.TLP | Ryan_fr.> (WONId -1) has left the game
[Tue Jan 13 11:51:03 2004] smelly (WONId -1) has left the game
[Tue Jan 13 11:53:16 2004] [Xinjan]$lay3r (WONId -1) joined the game
[Tue Jan 13 11:53:37 2004] [Xinjan]$lay3r (WONId -1) has left the game
This is from my "Serverchat log":
[Tue Jan 13 20:10:02 2004] Eddy Hassle (WONId -1) says: this is fun!!
[Tue Jan 13 20:10:02 2004] BoneCrusher (WONId -1) says: yea
[Tue Jan 13 20:10:02 2004] Eddy Hassle (WONId -1) says (TEAM-ONLY): oh lol.. you gunner too.. hehe
[Tue Jan 13 20:10:02 2004] BoneCrusher (WONId -1) says (TEAM-ONLY): yea...heh
[Tue Jan 13 20:10:02 2004] Eddy Hassle (WONId -1) says (TEAM-ONLY): cool
[Tue Jan 13 20:10:02 2004] BoneCrusher (WONId -1) says (TEAM-ONLY): we actually won...heh
[Tue Jan 13 20:13:28 2004] BoneCrusher (WONId -1) says (TEAM-ONLY): humans on red
[Tue Jan 13 20:13:28 2004] Eddy Hassle (WONId -1) says (TEAM-ONLY): ahh
[Tue Jan 13 20:13:28 2004] TheRifleman (WONId -1) says:
I think where it just has "says:" above^ is cuz the person used an Admin command, like timeleft ...
Anyway, you can find the plugin here -
http://racc.bots-united.com/ Goto "Downloads", scroll down the page a bit.
It includes source code if you know how to modify it. Me, heh, Clueless...
Oh, read the readme, a couple cvars will let ya turn on/off the logging you want.