AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Log in the file server players (https://forums.alliedmods.net/showthread.php?t=81093)

Starsailor 11-27-2008 19:18

Log in the file server players
 
2 Attachment(s)
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 :)



bmann_420 11-27-2008 19:24

Re: Log on the file server players
 
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.

Starsailor 11-27-2008 19:30

Re: Log on the file server players
 
I do not know if he does, but I check all the logs and none said the player connected, the ip or authID




YamiKaitou 11-27-2008 19:47

Re: Log on the file server players
 
I believe mp_logdetail only deals with attacking

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

ConnorMcLeod 11-28-2008 00:42

Re: Log on the file server players
 
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.

Mordekay 11-28-2008 02:29

Re: Log on the file server players
 
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

Starsailor 11-28-2008 07:18

Re: Log on the file server players
 
ready, and I already changed pcvars. no more loose indentation

YamiKaitou 11-28-2008 08:00

Re: Log on the file server players
 
Your indentation still looks like crap.

xPaw 11-28-2008 08:28

Re: Log on the file server players
 
1 Attachment(s)
he mean your code is not readable.

i did it readable 4 you. to see how it would looks

DruGzOG 11-28-2008 08:59

Re: Log on the file server players
 
Lol xPaw for the save, it works fine, no errors so far


All times are GMT -4. The time now is 05:47.

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