Raised This Month: $2 Target: $400
 0% 

Amx Log Advanced v1.4


Post New Thread Reply   
 
Thread Tools Display Modes
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-06-2010 , 15:34   Re: Amx Log Advanced v1.4
Reply With Quote #11

For chat log, all you have to do is :

PHP Code:
    register_logevent("LogEvent_Say"3"1&say")
    
register_logevent("LogEvent_Say"4"1&say")

public 
LogEvent_Say()
{
    static 
szLogBuffer[512]
    
read_logdata(szLogBuffercharsmax(szLogBuffer))

    new 
fp fopen(g_szLogFile"at")
    
fprintf(fp"%s^n"szLogBuffer)
    
fclose(fp)

output is like this :
Code:
"Be Happy -{ S ' GeNesiS }- Ldr<1325><STEAM_0:1:15902870><CT>" say "/nub15"
"*****{djamal}*****{n1}<1333><STEAM_0:1:28025099><CT>" say "/top15"
"*****{djamal}*****{n1}<1333><STEAM_0:1:28025099><CT>" say "/top15"
"*****{djamal}*****{n1}<1333><STEAM_0:1:28025099><CT>" say "/rank"
"-=MIB=- Phenix<1320><STEAM_0:0:23378577><CT>" say "/stqrt"
".:#Wr/# Nesku!k!!! Dbute :)<1334><STEAM_0:0:18233664><SPECTATOR>" say "/spec"
".:#Wr/# Nesku!k!!! Dbute :)<1334><STEAM_0:0:18233664><CT>" say "/ct" (dead)
If you want full plugin i'm using :

PHP Code:
#include <amxmodx>

new const VERSION[] = "0.0.2"

const SECONDS_DIFF 3600

new g_szLogFile[92]

public 
plugin_init()
{
    
register_plugin("Chat Logger"VERSION"ConnorMcLeod")

    
register_logevent("LogEvent_Say"3"1&say")
    
register_logevent("LogEvent_Say"4"1&say")

    new 
szMapName[32], szTime[16]
    
get_mapname(szMapNamecharsmax(szMapName))
    
format_time(szTimecharsmax(szTime), "%d%m%Y_%Hh%Mm"get_systime(SECONDS_DIFF))
    
get_localinfo("amxx_logs"g_szLogFilecharsmax(g_szLogFile))
    
add(g_szLogFilecharsmax(g_szLogFile), "/ChatLogger")
    if( !
dir_exists(g_szLogFile) )
    {
        
mkdir(g_szLogFile)
    }
    
format(g_szLogFilecharsmax(g_szLogFile), "%s/%s_%s.log"g_szLogFileszTimeszMapName)
}

public 
LogEvent_Say()
{
    static 
szLogBuffer[512]
    
read_logdata(szLogBuffercharsmax(szLogBuffer))

    new 
fp fopen(g_szLogFile"at")
    
fprintf(fp"%s^n"szLogBuffer)
    
fclose(fp)

__________________
- tired and retired -
ConnorMcLeod is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-06-2010 , 16:13   Re: Amx Log Advanced v1.4
Reply With Quote #12

Quote:
Originally Posted by RedRobster View Post
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?
It's already included. For that made logs deleting function.

ConnorMcLeod, thanks, but i prefer stay to current way, because it's more flexible

Does any one else has a critic? I like critic
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
007asha
Member
Join Date: Mar 2010
Old 09-07-2010 , 17:30   Re: Amx Log Advanced v1.4
Reply With Quote #13

Code:
amx_log_console 0 // Connects data will be shown in console
Will it unlog from console some or all of these????:
Code:
Ignoring custom decal from Player
Code:
Dropped Player from server
Reason:  Client sent 'drop'
Code:
ERROR: couldn't open custom.hpk.
I just want console to not display anything expect information when the server turn on.... And i dont know how to do it....
007asha is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-08-2010 , 16:08   Re: Amx Log Advanced v1.4
Reply With Quote #14

Quote:
Originally Posted by 007asha View Post
Code:
amx_log_console 0 // Connects data will be shown in console
Will it unlog from console some or all of these????:
Code:
Ignoring custom decal from Player
Code:
Dropped Player from server
Reason:  Client sent 'drop'
Code:
ERROR: couldn't open custom.hpk.
I just want console to not display anything expect information when the server turn on.... And i dont know how to do it....
This isn't related with this plugin. amx_log_console 1 will show additional information about connecting players in server console.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
Donche
BANNED
Join Date: Aug 2010
Old 09-08-2010 , 20:14   Re: Amx Log Advanced v1.4
Reply With Quote #15

This Plugins showed any Player how long player in my server ?
Donche is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-09-2010 , 12:37   Re: Amx Log Advanced v1.4
Reply With Quote #16

Quote:
Originally Posted by Donche View Post
This Plugins showed any Player how long player in my server ?
The total playing time no, but I could add playing time to disconnect log.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
mrksmn
Member
Join Date: Aug 2010
Old 09-09-2010 , 19:46   Re: Amx Log Advanced v1.4
Reply With Quote #17

hi,
thanks for plugin.

i think this plugin is incompatible with allchat plugin. u see numbers when u say something in game.

and aaa
it will be good, if this plugin show "connect,disconnect times" in user based log files(which i select from users).

thanks for supports...
mrksmn is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 09-10-2010 , 08:24   Re: Amx Log Advanced v1.4
Reply With Quote #18

Quote:
Originally Posted by mrksmn View Post
hi,
thanks for plugin.

i think this plugin is incompatible with allchat plugin. u see numbers when u say something in game.

and aaa
it will be good, if this plugin show "connect,disconnect times" in user based log files(which i select from users).

thanks for supports...
Try putting allchat plugin after amx_log_advanced plugin in plugins.ini file. This plugin shouldn't affect player chat. It just reads it.

I didn't understand. You want different logs for each player ?
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
mrksmn
Member
Join Date: Aug 2010
Old 09-11-2010 , 04:51   Re: Amx Log Advanced v1.4
Reply With Quote #19

Hi;
i put allchat plugin after amx_log_advenced plugin. But i still have the same problem.
i dont have problem when i remove amx_log_advenced plugin.

There is 2 when i say nothing
There is 3 when i say 1 character
There is 4 when i say 2 chareacter
.
.
.


[IMG]http://img534.**************/img534/7655/fypoolday0006.png[/IMG]
mrksmn is offline
mrksmn
Member
Join Date: Aug 2010
Old 09-11-2010 , 05:00   Re: Amx Log Advanced v1.4
Reply With Quote #20

Quote:
Originally Posted by aaarnas View Post
Try putting allchat plugin after amx_log_advanced plugin in plugins.ini file. This plugin shouldn't affect player chat. It just reads it.

I didn't understand. You want different logs for each player ?
yes i mean that, i want different logs for each player.(sory for my poor english) like this:


--------------toxic.log--------------------

L 08/31/2010 - 21:030: [admin.amxx] connect: "toXic" (address "78.187.210.167")
L 08/31/2010 - 21:25:12: [admin.amxx] disconnect: "toXic" (address "78.187.210.167")

-------------------------------------------

becouse it is easy to find user logs. and connect-disconnect information is in the same log file.

Last edited by mrksmn; 09-11-2010 at 05:04.
mrksmn 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 12:36.


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