Raised This Month: $32 Target: $400
 8% 

Log in the file server players


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 11-27-2008 , 19:18   Log in the file server players
Reply With Quote #1

Log on the file server players

DESCRIPTION
This plugin Log in a file, players who connect to the server, showing IP, AuthID, date and time of client connect/disconnect.

file .log is located in the default folder ---> \addons\amxmodx\logs

CVAR

ltf_enable 0/1 Enable/Disable the plugin


I hope you enjoy my plugin

Thanks to xPaw.. He has made my code readable


Attached Files
File Type: sma Get Plugin or Get Source (log-to-file.sma - 2766 views - 1.0 KB)
__________________
Find my plugins here..

Ex - Spanish Moderator.

Last edited by Starsailor; 02-11-2009 at 09:55.
Starsailor is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 11-27-2008 , 19:24   Re: Log on the file server players
Reply With Quote #2

Am I mistaken or does hlds have the capability of doing that in the moddir logs?

log on
mp_logdetail 1

I could be wrong, just wondering why, if it does.
__________________
bmann_420 is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 11-27-2008 , 19:30   Re: Log on the file server players
Reply With Quote #3

I do not know if he does, but I check all the logs and none said the player connected, the ip or authID



__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-27-2008 , 19:47   Re: Log on the file server players
Reply With Quote #4

I believe mp_logdetail only deals with attacking

Anyways, use pcvars and fix up your indentation (looks like crap).
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-28-2008 , 00:42   Re: Log on the file server players
Reply With Quote #5

You could use static vars in disconnect && putinserver.

Are you sure you can (always) retrieve steamid in client_disconnect forward ? You could use global vars so you don't have to retrieve steamid and ip again (won't have been changed) when player disconnect.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 11-28-2008 , 02:29   Re: Log on the file server players
Reply With Quote #6

Code:
L 11/08/2008 - 15:59:00: "arOxa#gAm!nG[FLex][LeADeR]<1316><STEAM_0:1:XXXXXXX><>" connected, address "XXX.XXX.XXX.XXX:27005"
L 11/08/2008 - 15:59:02: "arOxa#gAm!nG[FLex][LeADeR]<1316><STEAM_0:1:XXXXXXX><>" STEAM USERID validated
It allways did this, just changed the order a bit with new protokoll 48.
And yes, mp_logdetails is for dammage events only
__________________


Last edited by Mordekay; 11-28-2008 at 02:35. Reason: nah, the numbers are wrong....
Mordekay is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 11-28-2008 , 07:18   Re: Log on the file server players
Reply With Quote #7

ready, and I already changed pcvars. no more loose indentation
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-28-2008 , 08:00   Re: Log on the file server players
Reply With Quote #8

Your indentation still looks like crap.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-28-2008 , 08:28   Re: Log on the file server players
Reply With Quote #9

he mean your code is not readable.

i did it readable 4 you. to see how it would looks
Attached Files
File Type: sma Get Plugin or Get Source (log-to-file.sma - 1588 views - 1.0 KB)
__________________
xPaw is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-28-2008 , 08:59   Re: Log on the file server players
Reply With Quote #10

Lol xPaw for the save, it works fine, no errors so far
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode