AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Amx Log Advanced v1.4 (https://forums.alliedmods.net/showthread.php?t=137514)

aaarnas 09-06-2010 09:44

Amx Log Advanced v1.4
 
1 Attachment(s)
AMX LOG ADVANCED v1.4

This plugin is made for logging all connecting players data, their chatting and typing information about player in chat. You can log this data:
* Time connect/disconnect
* Nickname
* IP
* SteamID
* Country

All data will be saved to log files, witch are located in addons/amxmodx/logs/amx_log. Sure you can easily change directories as you like. Located in amx_log_advanced.sma:
Code:

*
/* ---------- There you can edit logs directories ---------- */
#define CONNECT_LOG_DIR "logs/amx_log"
#define DISCONNECT_LOG_DIR "logs/amx_log"
#define SAY_CHAT_DIR "logs/amx_log/amx_log_chat"

Code:

*
/* ---------- There you can edit flagged players logs directories ---------- */
#define F_CONNECT_LOG_DIR "logs/amx_flagged_log"
#define F_DISCONNECT_LOG_DIR "logs/amx_flagged_log"
#define F_SAY_CHAT_DIR "logs/amx_flagged_log/amx_flagged_log_chat"

Flagged players logs will be enabled, then amx_log_separate_by_flag and amx_log_player_flag cvars will be set.

Before use:
If you want to log admin chat (say @), you must write amx_log_advanced.amxx up to adminchat.amxx.
Suggesting plugins orders:
Code:

advertise_filter (if you using something like this)
amx_log_advanced.amxx
adminchat.amxx
admin_chat_colors.amxx (if using)

Cvars:
amx_log_type_data 3 //
0 - Logs disabled
1 - Logging only connect
2 - Logging only disconnect
3 - Logging both
amx_log_connnect_type 1 //
0 - Logs dissabled
1 - Log when conneced to server
2 - Log when connecting to server
amx_log_info_chat 1 // Information about connect will be shown in chat. 1 - on / 0 - off
amx_log_chat_sound 1 // Playing sound on connect
amx_log_data abcd // Saving information (in logs)
amx_log_chat_data acd // Showing information in chat
a - Nickname
b - IP
c - SteamID
d - Country
amx_log_console 0 // Connects data will be shown in console
amx_log_dubbing 0 // Data in log filles will not be repeating if this cvar on.
amx_log_chat 3 // Chat logging
0 - Off
1 - Logging only say
2 - Logging only say_team
3 - Logging all
amx_log_chat_dubbing 1 // Will not repeat equal messages in log files if on
amx_log_delete_days 7 // Cvar deleting old log files. Specify what old they should be to delete (in days).
amx_log_player_flag 0 // Specify the flag (from users.ini file) if you want, that only players with that flag will be logged (example - admins).
amx_log_separate_by_flag 0 // If you turn on this flag plugin will log flagged players to one directory and other players to other (directories are in .sma file)
amx_log_bots 0 // Enable/Disable bots logging.

NiQu 09-06-2010 10:09

Re: Amx Log Advanced v1.4
 
amxmodx/logs/ directory and you've got your logs there, no need for this plugin.

Or am i wrong? Maybe this plugin logs more then amxmodx does by default.
If so, tell me.

aaarnas 09-06-2010 10:23

Re: Amx Log Advanced v1.4
 
Quote:

Originally Posted by NiQu (Post 1292953)
amxmodx/logs/ directory and you've got your logs there, no need for this plugin.

Or am i wrong? Maybe this plugin logs more then amxmodx does by default.
If so, tell me.

Quote:

You can log this player data:
* Time connect/disconnect
* Nickname
* IP
* SteamID
* Country

+ chat logging
+ message type in chat on player connect
Quote:

All data will be saved to log files, witch are located in addons/amxmodx/logs/amx_log. Sure you can easily change directories as you like.

abdul-rehman 09-06-2010 13:11

Re: Amx Log Advanced v1.4
 
In client connect / client disconnect/ client say/ client team_say you should use static variables because it saves speed and are not created every single time:
Code:
    new data = get_pcvar_num(cvar_log_type_data)     new console = get_pcvar_num(cvar_log_console)     new chat = get_pcvar_num(cvar_log_info_chat)     new separate = get_pcvar_num(cvar_log_separate_by_flag)
------->>
Code:
    static data, console, chat, separate;     data  = get_pcvar_num(cvar_log_type_data)     console = get_pcvar_num(cvar_log_console)     chat = get_pcvar_num(cvar_log_info_chat)     separate = get_pcvar_num(cvar_log_separate_by_flag)

And the plugin is also good for catching spammers in your server :up:

Arkshine 09-06-2010 13:16

Re: Amx Log Advanced v1.4
 
It's fine as it is, abdul-rehman. You gain nothing. You should not use static there.

abdul-rehman 09-06-2010 13:23

Re: Amx Log Advanced v1.4
 
Quote:

Originally Posted by Arkshine (Post 1293147)
It's fine as it is, abdul-rehman. You gain nothing. You should not use static there.

For me static variables are cool 8)

Arkshine 09-06-2010 13:37

Re: Amx Log Advanced v1.4
 
So, you better read the tutorial by Hawk552 when you should use it. "Cool" is not really a solid argument. ^^

RedRobster 09-06-2010 13:45

Re: Amx Log Advanced v1.4
 
Can you make it so that it makes a new file for each day so that it is easier to keep track of? Like: amxchatlog06092010 would be today or something?

abdul-rehman 09-06-2010 14:36

Re: Amx Log Advanced v1.4
 
Quote:

Originally Posted by Arkshine (Post 1293168)
So, you better read the tutorial by Hawk552 when you should use it. "Cool" is not really a solid argument. ^^

I read it and thats why i asked aarnas about it :crab:

Arkshine 09-06-2010 15:04

Re: Amx Log Advanced v1.4
 
So, you have not understood. ;)


All times are GMT -4. The time now is 02:33.

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