Raised This Month: $51 Target: $400
 12% 

AMX Log v0.2.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Exolent[jNr] (178)
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-17-2009 , 16:20   AMX Log v0.2.2
Reply With Quote #1

.: Description :.
Using this plugin you can create a log with the selected user's information: Name, AuthID, IP, Frags / Deaths & Country. To read the created logs go to amxmodx\logs\ and open the file amx_log.

.: Command :.
amx_log <name or #userid> - Access Level: ADMIN_KICK

.: Changelog :.
Code:
v0.1 - First Release.
v0.1.1 - Plugin improved.
v0.2 - Minor update.
v0.2.1 - Fixed all non-working stuff. Added country support.
v0.2.2 - Added a console print for the admin who executed the command.
.: Download :.
Attached Files
File Type: sma Get Plugin or Get Source (amx_log.sma - 2268 views - 1.4 KB)
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 04-19-2009 at 14:32.
fezh is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 04-17-2009 , 16:25   Re: AMX Log v0.1
Reply With Quote #2

First!!!

Nice btw
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 04-17-2009 , 16:36   Re: AMX Log v0.1
Reply With Quote #3

also you can add, country to
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-17-2009 , 17:15   Re: AMX Log v0.1
Reply With Quote #4

Nice. The code is fine so far but there's one thing I'd like to point out:

When you are using Hungarian Notation you should keep with it's "standards". Currently all your variables begin with an "sz" which normally should be used for zero-terminated strings.
Deaths, Frags and the Target, however, are integers and should start with an "i". iDeaths, iFrags and iTarget.
__________________
In Flames we trust!
Nextra is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-17-2009 , 17:41   Re: AMX Log v0.1.1
Reply With Quote #5

Plugin updated, thanks Nextra!
__________________
"There is no knowledge, that is not power"
fezh is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 04-17-2009 , 17:52   Re: AMX Log v0.1.1
Reply With Quote #6

When I'm looking over it again, you should really increase the szLogData array. A size of 100 won't be enough with a long username.
__________________
In Flames we trust!
Nextra is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 04-17-2009 , 21:37   Re: AMX Log v0.2.1
Reply With Quote #7

Plugin updated again, thanks Starsailor!
Also, added country support, using geoip.
__________________
"There is no knowledge, that is not power"
fezh is offline
PsYChOPaTiQuE
Veteran Member
Join Date: Jan 2009
Location: Paris
Old 04-17-2009 , 21:50   Re: AMX Log v0.2.1
Reply With Quote #8

nice!
+Karma
__________________
PsYChOPaTiQuE is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-18-2009 , 10:30   Re: AMX Log v0.2.1
Reply With Quote #9

Pretty Good fezh
__________________
alan_el_more is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 04-18-2009 , 12:58   Re: AMX Log v0.2.1
Reply With Quote #10

a suggestion, You can add console_print so I can know the information.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Old 04-18-2009, 13:48
fezh
This message has been deleted by fezh. Reason: >.>
Reply



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 18:36.


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