Raised This Month: $27 Target: $400
 6% 

Amx Log Advanced v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-06-2010 , 09:44   Amx Log Advanced v1.4
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (amx_log_advanced.sma - 2456 views - 24.7 KB)
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 09-06-2010 , 10:09   Re: Amx Log Advanced v1.4
Reply With Quote #2

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.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-06-2010 , 10:23   Re: Amx Log Advanced v1.4
Reply With Quote #3

Quote:
Originally Posted by NiQu View Post
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.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-06-2010 , 13:11   Re: Amx Log Advanced v1.4
Reply With Quote #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
__________________

My Plugins For ZP

Inactive due to College and Studies

Last edited by abdul-rehman; 09-06-2010 at 13:14.
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-06-2010 , 13:16   Re: Amx Log Advanced v1.4
Reply With Quote #5

It's fine as it is, abdul-rehman. You gain nothing. You should not use static there.
__________________
Arkshine is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-06-2010 , 13:23   Re: Amx Log Advanced v1.4
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
It's fine as it is, abdul-rehman. You gain nothing. You should not use static there.
For me static variables are cool
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-06-2010 , 13:37   Re: Amx Log Advanced v1.4
Reply With Quote #7

So, you better read the tutorial by Hawk552 when you should use it. "Cool" is not really a solid argument. ^^
__________________

Last edited by Arkshine; 09-06-2010 at 14:09.
Arkshine is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 09-06-2010 , 13:45   Re: Amx Log Advanced v1.4
Reply With Quote #8

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?
__________________
RedRobster is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-06-2010 , 14:36   Re: Amx Log Advanced v1.4
Reply With Quote #9

Quote:
Originally Posted by Arkshine View Post
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
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-06-2010 , 15:04   Re: Amx Log Advanced v1.4
Reply With Quote #10

So, you have not understood. ;)
__________________
Arkshine is offline
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 09:09.


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